Warcraft III resources & community, 2003–2006 · archived

Buy Skills Trigger Help

9 posts
#1

Buy Skills Trigger Help

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.
#2
Just do like:
Event- Unit enters (playable map)
Action-
If- entering unit is of type (skill dummy 1)
then- if level of (skill 1) for (buying hero) equal to 0
then- add (skill one) to (buying hero)
else- increase level of (skill 1)
else- do nothing
#3
whats Skill Dummy 1?
or the exact path like a screen shot or sumthing would be much appreciated.
#4
How bout this;

Event:
Unit acquire an item

Condition:
Item type of item being manipulated equal to xxx

Actions:
-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.

- remove item xxx from triggering unit
#5
-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.
#6
wEaksaUce-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.
#7
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
#8
Thats obviously integer comparison. :wink:
#9
:( 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!