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

Inexplicable Instant-shutdown script/trigger

Status
Not open for further replies.
Level 7
Joined
May 15, 2009
Messages
192
Hello, I'm at my wit's end here.

I made this custom script:
  • call MoveLightningEx(udg_ManaChanLightning[(udg_ManaChanTempi1)], true , GetLocationX(udg_ManaChanTempp1), GetLocationY(udg_ManaChanTempp1), GetLocationZ(udg_ManaChanTempp1) + 150, GetLocationX(udg_ManaChanTempp2), GetLocationY(udg_ManaChanTempp2) - 50, GetLocationZ(udg_ManaChanTempp2) + 320)
Which, for whatever reason, instantly shuts down the editor whenever I type it in and hit the "okay" button. Also shuts down when cancelling.

When I simply used Tempp1 (without the "ManaChan" prefix) it worked just fine, but when I created a separate set of variables (ManaChanTempp1 and ManaChanTempp2) it just started shutting down whenever I tried to type in the custom script.

Can anyone explain? Is the custom function too long?
 
Level 7
Joined
May 15, 2009
Messages
192
Okay, I shortened the name down (Changing ManaChan to just "MC) and it now works properly. I guess the function became too long, which the editor couldn't handle. Not even when I ran it in NewGen.

Anyway, problem solved. Thread closed.
 
Status
Not open for further replies.
Top