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

Add random spells

Status
Not open for further replies.
Level 5
Joined
Jul 17, 2013
Messages
128
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