Help with level up

worldeditors

Cool Member
Reaction score
1
Hi i've this trigger where the slayer enters the region and it levels. However, it doesn't get pass level 2. I need to blink out and then blink in again to make it level 3. This is the trigger i'm using.
lvl up
Events
Unit - A unit enters Level up <gen>
Conditions
(Unit-type of (Triggering unit)) Equal to Slayer
Actions
Hero - Set (Triggering unit) Hero-level to ((Hero level of (Triggering unit)) + 1), Hide level-up graphics
Trigger - Run lvl up 2 <gen> (ignoring conditions)
Trigger - Turn off (This trigger)

lvl up 2
Events
Conditions
Actions
Wait 55.00 seconds
Trigger - Turn on lvl up <gen>

Is there anything wrong with the triggers?
 

MoonSlinger

I Love using Cheap Tricks... only Results matters
Reaction score
74
First, don't use spoiler tags, many people don't like them. I ignore clicking on them unless i have time.
Use code tags instead, the # sign above

Your trigger is using the event - "Unit enter Region"
- Unless a unit enters the region, there will be no level ups.
- Units that are presently in the region is also not affected

If you want to level your "Slayer" something like in Vamp Fire.
- Use periodic event (every 60 seconds game time)
- Pick every unit in the region
- If its a slayer = level up, else do nothing.
 

Exide

I am amazingly focused right now!
Reaction score
448
It looks quite right, except.
You can remove the second trigger completely and use this instead:

Code:
lvl up
Events
Unit - A unit enters Level up <gen>
Conditions
(Unit-type of (Triggering unit)) Equal to Slayer
Actions
Hero - Set (Triggering unit) Hero-level to ((Hero level of (Triggering unit)) + 1), Hide level-up graphics
Trigger - Turn off (This trigger) 
Wait 55.00 seconds
Trigger - Turn on (This trigger)

It will be turned on and off as you want it to anyway.
You should maybe try to use a variable for this as well. First set the variable to '((Hero level of (Triggering unit)) + 1)', then set '(Triggering unit) Hero-level to *Your_Level_Variable*'.
 

worldeditors

Cool Member
Reaction score
1
Ahhh...help...it still doesn't work. I've tested it, but it does not level. Can you please test it and tell me whether it works?
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top