Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Basic Faction System?

Hi there peeps!

Not quite sure how to go about this one, so I thought to ask here!

I'm making a game with a range of factions. I planned that each character (including the player) has a relationship variable (likely just an integer) with each faction. If low, gangs are hostile, if high, allies, etc etc.

What I'd like to know is how to make each faction member make checks on all the characters they see (via pawnsensing)? How do you make the relation variable able to be read the same for each person as a universally recognized value rather than having to cast to each individual character for their own unique version of that variable? Would it involve getting actors from class? I'm kinda uncertain about how to go about this XD

Thanks in advance!

Product Version: UE 4.21
more ▼

asked Jul 12 '19 at 12:29 PM in Blueprint Scripting

avatar image

Rossil Fuel
6 1 1

avatar image MonsOlympus Jul 12 '19 at 01:34 PM

I know its not the exact question you asked but there is a free plugin https://www.unrealengine.com/marketplace/en-US/slug/factions-extension which does alot of what you would be looking for.

avatar image Rossil Fuel Jul 12 '19 at 03:22 PM

Thanks for the suggestion, that actually looks very useful XD I've been trying to informally learn unreal for a few months now (never did any game design prior to this) and I guess in this time I didn't even really consider checking out plugins. I'll give this plug in a try, thank you!

avatar image MonsOlympus Jul 12 '19 at 04:15 PM

No problems, Ive used this myself and found it to be useful thats why I recommended it :) If you want to make factions as a learning exercise though it might be a good idea to do it anyway and if you get stuck theres always the plugin to fall back on.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Ok, I've found the answer myself. I did download the faction plugin, but have not bothered using it, at least not yet, as I'm using more specific relations than just Freindly, Neutral and Hostile.

What I did was create a new blueprint class, which I called 'Respec'. This component contains variables for relations with all factions. Every character will have this component and whichever character with pawn sensing sees that character will check that component to see what they are supposed to think of them.

Example below shows how to check this component using pawn sensing. The character using this is part of a thing called the Iron Sigil and is checking how much it's faction respects that person.

alt text

repec.png (56.3 kB)
more ▼

answered Jul 14 '19 at 12:52 PM

avatar image

Rossil Fuel
6 1 1

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question