Compile Error?

Darkenneko

TH.net Regular
Reaction score
3
Using a Tutorial to create a Creep respawn system from the WE tutorial Index,
I seem to stumble upon a Compile Error?
I'd take a picture and show but Photobucket won't work for me.
But it shows a error on.

Custom script: set udg_Creep_Y[udg_Integer] = GetUnitY(GetEnumUnit())
Custom script: call RemoveLocation (udg_tempPoint[2])
Custom script: set udg_Creep_X[udg_Integer] = GetUnitX(GetEnumUnit())
Custom script: set udg_Creep_Y[udg_Integer] = GetUnitY(GetEnumUnit())

It seems to be whenever I use a custom Script,
If someone could help me, I'd be much obliged. =]
-Calvin
 

Ghan

Administrator - Servers are fun
Staff member
Reaction score
893
Could you post the whole trigger, please?
 

Cidzero

Imma firin mah lazer!!!1!1
Reaction score
39
So far I haven't had that issue, theres a bunch of conversion commands in GUI ^_^
 

Darkenneko

TH.net Regular
Reaction score
3
First Trigger, =]
Theres two.

Code:
Creep Respawn
    Events
        Unit - A unit Dies
    Conditions
        ((Owner of (Triggering unit)) Equal to Neutral Hostile) and (((Triggering unit) is Summoned) Equal to False)
    Actions
        Wait 60.00 seconds
        Set Creep_Respawn_Point[1] = (Center of (Entire map))
        Set Creep_Respawn_Point[2] = (Creep_Respawn_Point[1] offset by (Creep_X[(Custom value of (Triggering unit))], Creep_Y[(Custom value of (Triggering unit))]))
        Unit - Create 1 (Unit-type of (Triggering unit)) for Neutral Hostile at Creep_Respawn_Point[2] facing (Random angle) degrees
        Unit - Set the custom value of (Last created unit) to (Custom value of (Triggering unit))
        Custom script:   call RemoveLocation (udg_tempPoint[1])
        Custom script:   call RemoveLocation (udg_tempPoint[2])
 

Darkenneko

TH.net Regular
Reaction score
3
Second one,
[my Computer Freaks out if I Post something too big. =/]
Code:
Initilalization
    Events
        Map initialization
    Conditions
    Actions
                -------- Creep Initilization --------
        Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
            Loop - Actions
                Set Creep_Respawn_Integer = (Creep_Respawn_Integer + 1)
                Unit - Set the custom value of (Picked unit) to Creep_Respawn_Integer
                Custom script:   set udg_Creep_X[udg_Integer] = GetUnitX(GetEnumUnit())
                Custom script:   set udg_Creep_Y[udg_Integer] = GetUnitY(GetEnumUnit())
 

trb92

Throwing science at the wall to see what sticks
Reaction score
142
[udg_Integer]

Where is this variable set? Do you mean to use [udg_Creep_Respawn_Integer]?
 

trb92

Throwing science at the wall to see what sticks
Reaction score
142
Code:
Creep Revival System Initialization
    Events
        Map initialization
    Conditions
    Actions
        Unit Group - Pick every unit in (Units in (Playable map area) owned by Neutral Hostile) and do (Actions)
            Loop - Actions
                Set [B]Integer[/B] = ([B]Integer [/B]+ 1)
                Unit - Set the custom value of (Picked unit) to [B]Integer[/B]
                Custom script:   set udg_Creep_X[udg_[B]Integer[/B]] = GetUnitX(GetEnumUnit())
                Custom script:   set udg_Creep_Y[udg_[B]Integer[/B]] = GetUnitY(GetEnumUnit())

See how Tinki3 adds the same variable, Integer, as is used in the custom script? That's what you should have. Since you are adding Creep_Respawn_Integer, you need to use [udg_Creep_Respawn_Integer] in your custom script.

EDIT: Also, in the first trigger you are removing unset locations. You need to change the lines
Code:
        Custom script:   call RemoveLocation (udg_tempPoint[1])
        Custom script:   call RemoveLocation (udg_tempPoint[2])
So that they use the locations set earlier in that code.
 

Darkenneko

TH.net Regular
Reaction score
3
Omg,
Thank You, =]
With that I Fixed the other one aswell.
The Udg_temp_point, changed it to the Point he had me made, Thanks a lot. =]
Errors solved! Thanks Everyone! =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