• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Inexplicable Instant-shutdown script/trigger

Status
Not open for further replies.
Level 6
Joined
May 15, 2009
Messages
191
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 6
Joined
May 15, 2009
Messages
191
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