Wait Problem

Igor_Z

You can change this now in User CP.
Reaction score
61
How to Wait untill unit has skill learned? But only thing that i can find is Hero Skill Comparison(Learned Hero Skill) equal to X. Please help
 

WolfieeifloW

WEHZ Helper
Reaction score
372
Under Actions:
Code:
Wait until ((Learned Hero Skill) Equal to Human Archmage - Blizzard), checking every 1.00 seconds
It's the Wait For Condition
 

Charapanga

New Member
Reaction score
46
Or even more Efficient
Wait for Condition...
Wait untill Level of ability for unit is greater than 0
Its an integer comparisson...
 

Igor_Z

You can change this now in User CP.
Reaction score
61
Hmm, but i need to activate another trigger after my spellbook ability is removed... So i can't use eighter of your suggestions
 

Ghan

Administrator - Servers are fun
Staff member
Reaction score
889
Or better yet, use a new trigger....

Trigger:
  • Learning a Skill
    • Events
      • Unit - A unit Learns a skill
    • Conditions
      • (Learned Hero Skill) Equal to Human Archmage - Blizzard
    • Actions


As a side note, I'm not sure the first suggestion will work - it requires you to use the event that I have (learning a skill) and that won't ever change for that particular trigger....

How exactly are you removing the ability in the first place?
 

Igor_Z

You can change this now in User CP.
Reaction score
61
Every 4 seconds im adding a spellbook ability and when my unit attacks then i remove it... After 4 seconds i add it again etc... If i just make a timer Every 4 seconds my trigger is mulfunctioning... Please show me a good wait for condition action
 

Ghan

Administrator - Servers are fun
Staff member
Reaction score
889
Try this. I'm not positive that GetAttacker is local, though. If it is, you should be good, otherwise, I'll have to throw one in there.

Trigger:
  • Remove and Give
    • Events
      • Unit - A unit Is attacked
    • Conditions
    • Actions
      • Unit - Remove Acid Bomb from (Attacking unit)
      • Wait 4.00 seconds
      • Unit - Add Acid Bomb to (Attacking unit)
 

Igor_Z

You can change this now in User CP.
Reaction score
61
Myb i will use waits..
EDIT: I can't use them because i have different spellbooks... Any other suggestions?
 

Izanagi

New Member
Reaction score
3
Try this...I'm not 100% sure, and you'd have to make a new trigger for every specific spellbook, but maybe it'll work?

Trigger:
  • Mockup
    • Events
      • Unit - A unit Is attacked
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Attacked unit) has buff Acid Bomb) Equal to True
        • Then - Actions
          • Unit - Remove Acid Bomb from (Attacking unit)
          • Wait 4.00 seconds
          • Unit - Add Acid Bomb to (Attacking unit)
        • Else - Actions
          • Trigger - Do Nothing
 
Reaction score
341
Trigger:
  • Trigger - Do Nothing


Don't use those in triggers.

You can do that for all spellbooks ( ill keep it simple without loops/vars. )

Trigger:
  • Mockup
    • Events
      • Unit - A unit Is attacked
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Attacked unit) has buff Acid Bomb) Equal to True
        • Then - Actions
          • Unit - Remove Acid Bomb from (Attacking unit)
          • Wait 4.00 seconds
          • Unit - Add Acid Bomb to (Attacking unit)
        • Else - Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Attacked unit) has buff AnotherBuff) Equal to True
        • Then - Actions
          • Unit - Remove OtherSpell from (Attacking unit)
          • Wait 4.00 seconds
          • Unit - Add OtherSpell to (Attacking unit)
        • Else - Actions


Maybe i didn't understand the thread correctly , idk.
 

Izanagi

New Member
Reaction score
3
No, I think that's what he was going for.

And woops...I forgot that you can create effectively infinite triggers by attaching more If/Then/Else triggers as part of a prior If/Then/Else.
 

Igor_Z

You can change this now in User CP.
Reaction score
61
Can u gimme something else cuz i don't got buff on my spell?
 
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