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

Custom Script Crash

Status
Not open for further replies.
Level 12
Joined
Nov 20, 2007
Messages
660
When i try to use this, World Editor crash.
  • call MoveLightningEx(udg_Sleigh_Lighting[udg_Sleigh_Index1], true, GetUnitX(udg_Sleigh_Caster[udg_Sleigh_Index1]), GetUnitY(udg_Sleigh_Caster[udg_Sleigh_Index1]), Sleigh_Flying1, GetUnitX(udg_Sleigh_Reindeer[udg_Sleigh_Index1]), GetUnitY(udg_Sleigh_Reindeer[udg_Sleigh_Index1]), udg_Sleigh_Flying2)
 
Fixed:

  • Custom script: call MoveLightningEx(udg_Sleigh_Lighting[udg_Sleigh_Index1], true, GetUnitX(udg_Sleigh_Caster[udg_Sleigh_Index1]), GetUnitY(udg_Sleigh_Caster[udg_Sleigh_Index1]), udg_Sleigh_Flying1, GetUnitX(udg_Sleigh_Reindeer[udg_Sleigh_Index1]), GetUnitY(udg_Sleigh_Reindeer[udg_Sleigh_Index1]), udg_Sleigh_Flying2)
You forgot the 'udg_' prefix for the variable Sleigh_Flying1.

edit
By the way, good luck with this spell for the Hive Christmas contest ;)
 
Level 12
Joined
Nov 20, 2007
Messages
660
Fixed:

  • Custom script: call MoveLightningEx(udg_Sleigh_Lighting[udg_Sleigh_Index1], true, GetUnitX(udg_Sleigh_Caster[udg_Sleigh_Index1]), GetUnitY(udg_Sleigh_Caster[udg_Sleigh_Index1]), udg_Sleigh_Flying1, GetUnitX(udg_Sleigh_Reindeer[udg_Sleigh_Index1]), GetUnitY(udg_Sleigh_Reindeer[udg_Sleigh_Index1]), udg_Sleigh_Flying2)
You forgot the 'udg_' prefix for the variable Sleigh_Flying1.

edit
By the way, good luck with this spell for the Hive Christmas contest ;)

Still crash :(
 
Level 12
Joined
Nov 20, 2007
Messages
660
Fixed, another question :
I made a spell based on channel and i want it to be casted only on ally units. As i know you made this from "Targets Allowed" field so that's what i did.
Targets Allowed :
-Allied
-Friend
-Not Self
-Organic
-Player Units

And the problem is that the spell can be casted on enemies
 
Status
Not open for further replies.
Top