This topic contains 1 reply, has 2 voices, and was last updated by  prime 3 months, 4 weeks ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #35585


    How would I go about changing the avatar?
    red vs green teams, with some variation



    The Darkness Warlord character currently picks enemies based on aggression. He’s made to be “evil” only, so aggression impacts whether he attacks good, neutral, or evil creatures. (This is set in the Creature aspect which can be assigned from the RAIN->Sentio Characters->Markup Creatures menu.)

    If you would prefer that enemies are chosen based on teams, then you will need to
    a) come up with some method for assigning and maintaining teams (we did this in our Squad Command package)
    b) modify the CheckForEnemies.cs code. This currently assigns enemies based on Alignment. You would change it to assign enemies based on Team.
    c) modify the AIDamageReceiver.cs code. This assigns a current enemy based on damage received. If a team member were to accidentally damage the Darkness Warlord, he would attack them. You probably don’t want that, so you would change the code to check to make sure the damage was sent by an enemy. (You might want to ignore the damage completely if it is from team mates.)

    The code isn’t complicated, so it would probably only take you 20-30 minutes to make the changes and test.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.