Warcraft III resources & community, 2003–2006 · archived

Skills in Shop

14 posts
#1

Skills in Shop

Hey :)
I wana but skills in shop and so hero can buy them :wink: how could i do that ? :)
are there any triggers involved? :P
#2
If a unit buys a item then give ability BLABLUP to buying Unit, else do nothing.

thats the trigger for it
#3
YEY :P i hope it wroks :roll: :wink:
#5
Dude i dont know how do thank you :roll:
awsome map btw :P



Edited :

Eheh :P i got all my skills in the shop but i got a new problem :P lets say i buy "Healing" skill for my hero , what happens when i buy it again ? does the level go bigger :O?

if the level goes bigger then its ok :P but if doesnt what should i need to do :wink:
#6
It doesen't.
You should do something like
"If
level of ability(bought ability) for triggering unit is equal to 0
then
add (bought ability) to triggering unit
else
if
level of (bought abliity) for triggering unit is smaler then (max level of bought ability)
then
increase level of ( bought ability) for triggering unit
else
-give gold back & write an error message-
#7
:wink: ill try it :D
#8
Exactly what i said :P

I just gave him the basic and some stuff can be made by the person himself...
#9
:wink:
#10
You could just have us told if it worked or not
#11
It works.

I am using it meself in a little different way.
( " a Unit gets an Item" as Event and checking a whole bunch of conditions. I think about 14 different ones ^^ )
#12
ok, but do it work for him too? ^^
#13
if it doesn't he should fiew my "RPG-Engine and AOS-Sample"-Posting, download the map and fiew my triggers
he may copy em if he wants to... i don't bother ( only if some of the more complex triggers are copied plz gimme credits )
#14
ok ill take a look :P and if i will use any of ur triggers , ill give credit :)