Region Set to Unit (this should be simpol) please help

Thunder_Lord

New Member
Reaction score
0
Okay so before i can fully explain my problem i need to thrown acouple triggers out there
Global Variables-
IMMORTALS = No unit <unit[7]> (note. this is a size 7 unit array)
IMMORTALS REGIONS = No region <region[7]> (note. this is a size 7 region array)
TRIGGER 1 Set initial vars
Events
Game - Map initialization
Local Variables
Conditions
Actions
Variable - Set IMMORTALS[1] = Immortal [16.00, 10.00]
Variable - Set IMMORTALS[2] = Immortal [28.00, 10.00]
Variable - Set IMMORTALS[3] = Immortal [40.00, 10.00]
Variable - Set IMMORTALS[4] = Immortal [52.00, 10.00]
Variable - Set IMMORTALS[5] = Immortal [64.00, 10.00]
Variable - Set IMMORTALS[6] = Immortal [76.00, 10.00]
Variable - Set IMMORTALS[7] = Immortal [88.00, 10.00]
Variable - Set IMMORTAL REGIONS[1] = Immortal A range
Variable - Set IMMORTAL REGIONS[2] = Immortal B range
Variable - Set IMMORTAL REGIONS[3] = Immortal C range
Variable - Set IMMORTAL REGIONS[4] = Immortal D range
Variable - Set IMMORTAL REGIONS[5] = Immortal E Range
Variable - Set IMMORTAL REGIONS[6] = Immortal F range
Variable - Set IMMORTAL REGIONS[7] = Immortal G range
TRIGGER 2
Immortal movment 2
Events
Timer - Every 0.0001 seconds of Game Time
Local Variables
Conditions
Actions
General - Pick each integer from 1 to 7, and do (Actions)
Actions
Region - Move IMMORTAL REGIONS[(Picked integer)] to (Position of IMMORTALS[(Picked integer)])
Region - Move IMMORTAL REGIONS[(Picked integer)] to (Position of IMMORTALS[(Picked integer)])


In my mind this should be fairly simpol. i have 7 immortals assigned to a unit array. and i have 7 regions assigned to a region array. and using my second trigger every .0001 seconds of game time each region is moved to its immortal...well its not working like that. i start up my map and i get this error
Trigger error in
'gt_Immortalmovement2_func':could not get'region'from parameter in 'Regionsetcenter' (value 0)

What is that??? how do i fix this without making 7 seperate triggers (if i do that i will have to make hundreds of other triggers for the triggers based off of these vatibles) anyone know how to fix this silly little problem??
 

SerraAvenger

Cuz I can
Reaction score
234
please use WC3 tags...

Trigger:
  • Timer - Every 0.0001 seconds of Game Time


A little bit too fast, don't ya think?
0.03 should be more than enough.

Trigger:
  • Region - Move IMMORTAL REGIONS[(Picked integer)] to (Position of IMMORTALS[(Picked integer)])
    • Region - Move IMMORTAL REGIONS[(Picked integer)] to (Position of IMMORTALS[(Picked integer)])


Wth? Ain't that one too many?

BTW: I would be pleased if you coulda copy them in Raw Mode (Ctrl+D)
 
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