Warcraft III resources & community, 2003–2006 · archived

Does anyone know how to...

10 posts
#1

Does anyone know how to...

Does anyone know the triggers needed to Buy Abilities, if there is any need, as ive seen on certain maps you can purchase abilities (from shops and things).
I would be grateful if someone could tell me how :)

thanks.
#2
Make an item without abilities that is actively used and with the icon and description of the hero ability.

Events:
Unit acuires item
Conditions:
-----
Actions:
If: Item = ....
Then: remove that item and add ability ...
Else: Do Nothing
#3
Why not skip the if/then/else statement and put it in the condition, that's what conditions are for.
#4
Ok Thanks, That will rearly help me in the Future :)
#5
Blade.dk2Why not skip the if/then/else statement and put it in the condition, that's what conditions are for.


If u use the if,then,else u can put all buy abilitys in one trigger. In ur way u'll have 2 make a trigger forevery spell
#6
If you use the conditions then you would have loads of triggers, for the condition though I would say use a condition to filter out a certain item-class. I dunno but it seems to me that its best not to have it go through loads of checks each time you gain any item.
#7
if you use game cache you can have one set of actions.
#8
What is gane cache? is it a JASS system? i think i could use it if it will speed up the processes when an item is picked up in my map. i have 2*8 (i have 8 sets of iems) seperate triggers to deal with an item being picked up, and each trigger handles 5 items (there are 5 items in each set). btw, they are set items like in Diablo II in hat they level up with each additional item collected.
#9
Game cache is a type in warcraft, it can be used in GUI too, but of course it is better in JASS like everything else.

It's made for carrying data from one map/game to another, but can also be used to set up databases that can be accessed easier and faster than a ton of variables/loops/if,then,else statements and so on.
#10
ah yes, i can see it in my WE, how should i go about using it though? whats the label and everything for?