Array variable size?

LearningCode

New Member
Reaction score
24
Ctrl+B
Double Click (Or create) a variable
Look for an "Array" checkbox
Tick it
Look for a "Size" form box
Key in the value you want
 

Tru_Power22

You can change this now in User CP.
Reaction score
144
Doesn't matter.

You can use any number from the array up to 8192 (I think). The number in the editor only initializes up to the one specified.
 

LearningCode

New Member
Reaction score
24
I thought that applied only for locals? xD
But changing the size can be useful, too.

For giving the arrays a value before the game starts, no?
 

Azlier

Old World Ghost
Reaction score
461
And it is. There are 8192 slots to store data in, though. 0 is a valid slot.

A quirk is that slot 8191 is erased when the game is loaded from a saved game.
 

Tru_Power22

You can change this now in User CP.
Reaction score
144
And it is. There are 8192 slots to store data in, though. 0 is a valid slot.

A quirk is that slot 8191 is erased when the game is loaded from a saved game.

Wow you learn something new every day. Like how warcraft 3 likes to do some retarded things to map makers.
 

Tru_Power22

You can change this now in User CP.
Reaction score
144
For triggers just copy and paste. Make sure you have "Create unknown variable data when pasting triggers. Checked in you world editor settings.

I think you can copy and paste spells too, you can only do it one at a time though.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top