• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Buy Skills Trigger Help

Status
Not open for further replies.
Level 3
Joined
Jul 17, 2005
Messages
36
i got it so you can buys skills from a vender. but i dont know how to do it so if u buy it agian, you get lvl2 of the skill. can somone please help me.
 
Level 3
Joined
Jul 17, 2005
Messages
36
-If Level of yyy ability for triggering unit equal to 0 then add ability yyy to triggering unit. Else, Increase level of yyy ability for triggering uni

what kind of comparasons ar those ? :oops: lol sorry i kinda noob at this.
 
Level 13
Joined
Dec 29, 2004
Messages
597
wEaksaUce said:
-If Level of yyy ability for triggering unit equal to 0 then add ability yyy to triggering unit. Else, Increase level of yyy ability for triggering uni

what kind of comparasons ar those ? :oops: lol sorry i kinda noob at this.

Let's make it clear;

If
Level of yyy ability for triggering unit equal to 0
then
add ability yyy to triggering unit.
Else
Increase level of yyy ability for triggering unit.

However, it just simple if-then-else. Level of ability yyy equal to 0 means that unit doesn't have that kind of ability. So, if the unit doesn't have that ability, just give the ability to it. Otherwise, if the unit already has the ability, increase its level.
 
Level 3
Joined
Jul 17, 2005
Messages
36
I mean what kind of comparason is "If Level of yyy ability for triggering unit equal to 0"

becuase the If conditions are all comparasons
 
Level 3
Joined
Jul 17, 2005
Messages
36
:( it doesn't work with my current trigger.

my trigger says only sell skill to melee tpye heros and if their not send messange.

*mvn* i got it to work. thanks alot!
 
Status
Not open for further replies.
Top