Trigger isn't working

Omnizohar

New Member
Reaction score
0
I'm having trouble with my trigger working the way I want it to work. What I want my trigger to do is disable experience gain for My Hero when he reaches Level 3 or Starts off Level 3. Heres my current trigger I have right now.

Code:
-Events
 >Time - Elapsed game time is 1.00 seconds.
-Condition
 > (Hero Level of MyHero) Greater than or equal to 3
-Action
 >Hero - Disable experience gain for MyHero

So if anyone can help me fix this trigger, I'd be grateful. Thanks.
 

saw792

Is known to say things. That is all.
Reaction score
280
That will not run when they gain a level, it only runs once at Elapsed time 1 second.
Add the event Generic Unit Event - Unit Gains a Level, so it works when they gain a level as well, not just when pre-placed.
 

Expelliarmus

Where to change the sig?
Reaction score
48
Well you can use
Code:
Time - Every 1.00 seconds of game time
but still would stick to "gains a level"...
 

saw792

Is known to say things. That is all.
Reaction score
280
What do you mean starts off... as in a preplaced unit, a unit loaded from a save/load code, what?
 

saw792

Is known to say things. That is all.
Reaction score
280
Then in the trigger that you load it from a game cache have an if/then/else action that checks if the heroes level is greater than or equal to 3, and if so disable XP gain. Use both that and the trigger above with one event, Unit gains a level.
 

Omnizohar

New Member
Reaction score
0
Thank you for your help saw792. You juts helped me solve my problem. Rep+ for you. (If I can again)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top