misterurafag
New Member
- Reaction score
- 0
what i am basically looking for is a trigger so that when you type. example "-cleave" your hero will get that skill and be able to level that skill up. any suggestions?
-Cleave
Events -
Player 1 Red types a message containing - cleave as an exact match
[CENTER]<<<<Do this for each player>>>>[/CENTER]
Conditions -
Actions -
Pick every player owned by Triggering player matching (Picked Unit) is a Hero equal to True and do Actions -
Loop - Actions -
Unit - Add Cleaving Attack to (Picked Unit)
Add 1 level to Cleaving Attack for (Picked Unit)
Do anything else here (Add -1000 gold to (Triggering Player)), stuff like that
If you do the add ability, then you will have to do an Unit - Add level of ability for unit - heres the code (Handwritten)
Code:-Cleave Events - Player 1 Red types a message containing - cleave as an exact match [CENTER]<<<<Do this for each player>>>>[/CENTER] Conditions - Actions - Pick every player owned by Triggering player matching (Picked Unit) is a Hero equal to True and do Actions - Loop - Actions - Unit - Add Cleaving Attack to (Picked Unit) Add 1 level to Cleaving Attack for (Picked Unit) Do anything else here (Add -1000 gold to (Triggering Player)), stuff like that
Do you need them to be heroes? Because I know it's much simpler to add abilities onto just plain units. I believe there's a GUI trigger that's pretty direct to just add it right on.
Also if they're going to be getting 5 skills are they going to be using them all at once? If not then you can just have the other abilities require an upgrade. And when they complete or do something that will allow it you can always just run another trigger to enable it.