Trigger issue with player control.

Haxxors

New Member
Reaction score
1
Im currently making a Europa type map, and on of the features im adding into the game is natural. In order for this to work there will be a building by a natural resource, and when it is killed it will be controlled by a player. Likewise, if another player comes and damages it to low enough health, then he will get control.

However, I cannot get the trigger to work. Once the building gets to the necessary amount of Hit points its control is not switching.

This is what I have -

Kilomanjaro Control
Events
Unit - Mount Kilomanjaro Control 0011 <gen>'s life becomes Less than 1000.00
Conditions
Actions
Unit - Change ownership of Mount Kilomanjaro Control 0011 <gen> to (Owner of (Attacking unit)) and Change color
Unit - Set life of (Attacked unit) to 100.00%
 

ManyTimes

I'm so lonesome I could cry...
Reaction score
293
There are no "attacking unit", attacking unit refers to a unit who just attacked, as in the event has to be "A unit is attacked".

Something like this should do:
Code:
Untitled Trigger 001
    Events
        Unit - A unit Is attacked
    Conditions
        (Life of HakunaMatata! 0000 <gen>) Less than 1000.00
    Actions
        Unit - Change ownership of (Attacked unit) to (Owner of (Attacking unit)) and Change color
        Unit - Set life of (attacked unit) to 100%

Next time you have a trigger to post, please wrap it inside "code tags"... When you post, there is a button that looks like this: #, put trigger inside of it. Or write [CO DE] Paste trigger here [/ COD E], without spaces. [wc 3] [/wc 3]
 

Haxxors

New Member
Reaction score
1
Im encountering another problem :(

Basically, when I player controls Mount Kilomanjaro i want to give them a passive 5% damage bonus for all units. First I created a custom spell (a modified command aura that gives 5% damage bonus).

I want it to work like this -

1. A player controls Kilomanjaro.
2. Once they control it all their units get the 5% damage bonus.
3. If another player takes control of Kilomanjaro they get the 5% bonus, and the player that previously had the bonus loses it.

This is what I was able to come up with, and it sucks lol.

Code:
Kilomanjaro Bonus
    Events
    Conditions
        (Owner of Mount Kilomanjaro Control 0011 <gen>) Equal to Player 1 (Red)
    Actions
        Player - Enable Kilomanjaro Bonus  for Player 1 (Red)


Also the "Kilomanjaro Bonus" is the spell that adds 5% damage bonus"
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top