• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

Add random spells

Status
Not open for further replies.
Level 5
Joined
Jul 17, 2013
Messages
125
Hello, how can i add to hero random hero spells from all (original) spells in Warcraft 3? Do i really need hashtable or making one big trigger? (like Set 1 = stormbolt, Set 2 = Banish,...?) Thank you
 
Level 5
Joined
Jan 27, 2014
Messages
164
> ...or making one big trigger?
I believe this is the way to go.

Example:
Event
- Map Init
Condition
Actions
- Set Abi[1] = Stormbolt
- Set Abi[2] = Banish
- Set Abi[3] = Wind Walk
- ...


Then give random ability to your desired unit:
- Unit - Add Abi[Random integer 1 to 20] to (Triggering unit)
 
Level 19
Joined
Mar 18, 2012
Messages
1,716
You will most likely run into the following problems:
a) Hotkey problems
b) Icon card positions will be messed up.
c) Useless synergies of spells.

If you plan some kind of dynamic ability adding and removing, keep in mind that the game might crash, while removing an ability. (Iirc removing activated avatar is one of these)
 
Status
Not open for further replies.
Top