• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Default value of Variables

Status
Not open for further replies.
Level 14
Joined
Mar 4, 2009
Messages
1,156
for example i have an integer variable (array)

variables>integer>edit>default>

i tried to set default number of integer variable to be 13 but its not working,why?

i know i could set it with triggers but i wanna do it on this way (just editing the variable)...
 
If you set integer array size to 10 for example and set initial value to 132, then this trigger will create a unit:

  • Untitled Trigger 096
    • Events
      • Player - Player 1 (Red) skips a cinematic sequence
    • Conditions
      • AAAAAA1[7] Equal to 132
    • Actions
      • Unit - Create 1 Footman for Player 1 (Red) at (Center of Region 004 <gen>) facing Default building facing degrees
So it really should work.
 
If you set integer array size to 10 for example and set initial value to 132, then this trigger will create a unit:

  • Untitled Trigger 096
    • Events
      • Player - Player 1 (Red) skips a cinematic sequence
    • Conditions
      • AAAAAA1[7] Equal to 132
    • Actions
      • Unit - Create 1 Footman for Player 1 (Red) at (Center of Region 004 <gen>) facing Default building facing degrees
So it really should work.
yeah thanks,i didn't know i have to set size...
 
Status
Not open for further replies.
Back
Top