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

2 quick questions

Status
Not open for further replies.
Level 2
Joined
Sep 3, 2011
Messages
5
1. If i have a variable to be set every time i select a unit, will it cause a crash when i select multiple units, or when i select another unit
2. If the scripts action section has "hero" in front of the action, but the action is to be performed by a regular unit will it cause a crash?
For question 2 the specific action im referring to is
"Hero - Drop (Item being manipulated) from (Triggering unit)"
Thanks in advance, Im still learning
 
Level 37
Joined
Mar 6, 2006
Messages
9,243
1. Each time a unit is selected, it will store the selected unit into that variable. When you select multiple units, the "unit is selected" event triggers for every unit, for one after the other. There is still some order in which the units are selected. Each of the units get set into the variable, each overwriting the previous value of the variable.
 
Level 2
Joined
Sep 3, 2011
Messages
5
Thanks Maker, and Mr Bean
@ Maker, that was the original intent, i just didnt know if it would crash or not, also how would i create a table to be displayed in the upper right hand corner that lists variable values ingame, im working on a map where i want to have more resources than just the 2 basic ones for construction and having those values displayed onscreen would definitely make things easier on the player
 
Status
Not open for further replies.
Top