• 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.

[Trigger] Skill Shops for different classes

Status
Not open for further replies.
Level 13
Joined
Mar 14, 2008
Messages
848
Could anyone explain me how to create a skill shop for different player class . For example , war stomp skill would be only available to buy for tauren chieftain hero . For example : hero buys a ability : IF hero is tauren chieftain , then the player learns/upgrades the skill , if hes not the tauren chieftain , learn nothing and refund the money . I really need this one :)
 
Level 3
Joined
Apr 26, 2008
Messages
31
use something like this (oh yea the things in the parenthesis are just notes/reminders if there not in the -->(parenthesis) then thats how the triggers are written but not exactly
event
unit acquires item
cond
(no cond unless u wanna make it more strict)
action
if then else
if
unit learning ability not equal to (the unit that u want to learn the ability)
then
player -add resoure (the amount that the unit had to pay goes here)
item- remove item being manipilated
else
unit-add ability (of ur choosing)
item-remove item being manipilated

and thats how u do it well if theres any problem just repost and ill come check it out
oh yea and thats not exactly how the triggers are written its something like that
oh yea and if u use this can u at least give me some rep u dont gotta give credit
 
Status
Not open for further replies.
Top