Can anyone spot wat is wrong with this?

popo80000

New Member
Reaction score
20
Hmm... this is weird i cant spot any mistake in this trigger below:

When i cast the ability on the unit it will move to a location wif the caster and it will move back to the point where the caster started casting his ability in 15 seconds. This is my trigger: :banghead:

Trigger:
  • Invitation to the Netherworld
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Invite to Netherworld
    • Actions
      • Set Netherworld_Caster = (Casting unit)
      • Set Netherworld_CasterLoc = (Position of Netherworld_Caster)
      • Set Netherworld_Target = (Target unit of ability being cast)
      • Set Netherworld_TargetLoc = (Position of Netherworld_Target)
      • Set Netherworld_LandPoint = (Center of Netherworld <gen>)
      • Set Netherworld_DummyWorld = (Center of Dummy World <gen>)
      • Wait 0.50 seconds
      • Unit - Create 1 Dummy Mark of Realword for (Owner of Netherworld_Caster) at Netherworld_CasterLoc facing Default building facing degrees
      • Set Netherworld_DummyCaster = (Last created unit)
      • Set Netherworld_DummyCasterLoc = (Position of Netherworld_DummyCaster)
      • Unit - Add a 18.00 second Generic expiration timer to Netherworld_DummyCaster
      • Unit - Move Netherworld_Caster instantly to Netherworld_LandPoint
      • Unit - Move Netherworld_Target instantly to Netherworld_LandPoint
      • Camera - Pan camera for (Owner of Netherworld_Caster) to Netherworld_LandPoint over 0.00 seconds
      • Camera - Pan camera for (Owner of Netherworld_Target) to Netherworld_LandPoint over 0.00 seconds
      • Unit - Create 1 Dummy Marker for (Owner of Netherworld_Caster) at Netherworld_DummyWorld facing Default building facing degrees
      • Set Netherworld_Dummy1 = (Last created unit)
      • Unit - Set level of NW for Netherworld_Dummy1 to (Level of Invite to Netherworld for Netherworld_Caster)
      • Unit - Add a 15.00 second Generic expiration timer to Netherworld_Dummy1
      • Wait 15.00 seconds
      • Unit - Move Netherworld_Caster instantly to Netherworld_DummyCasterLoc
      • Unit - Move Netherworld_Target instantly to Netherworld_DummyCasterLoc
      • Special Effect - Create a special effect at Netherworld_CasterLoc using Objects\Spawnmodels\Other\ToonBoom\ToonBoom.mdl
      • Special Effect - Destroy (Last created special effect)
      • Special Effect - Create a special effect at Netherworld_CasterLoc using Objects\Spawnmodels\Undead\UndeadDissipate\UndeadDissipate.mdl
      • Special Effect - Destroy (Last created special effect)
      • Wait 2.20 seconds
      • Special Effect - Create a special effect at Netherworld_CasterLoc using Objects\Spawnmodels\Undead\UDeathMedium\UDeath.mdl
      • Special Effect - Destroy (Last created special effect)
      • Special Effect - Create a special effect at Netherworld_CasterLoc using Objects\Spawnmodels\Undead\UndeadDissipate\UndeadDissipate.mdl
      • Special Effect - Destroy (Last created special effect)
      • Custom script: call RemoveLocation(udg_Netherworld_CasterLoc)
      • Custom script: call RemoveLocation(udg_Netherworld_TargetLoc)
      • Custom script: call RemoveLocation(udg_Netherworld_DummyCasterLoc)
      • Custom script: call RemoveLocation(udg_Netherworld_LandPoint)
      • Custom script: call RemoveLocation(udg_Netherworld_DummyWorld)


Is there any problem with the trigger above? :(
 

PoZoR

New Member
Reaction score
5
if you look carefully, the locaton you are moving the caster to is the caster location itself. you're not moving anywhere. you set the wrong point variable for the caster location. im guessing you intended to move the units instantly to the second dummy that you created, so you should just correct that variable reference.
 

popo80000

New Member
Reaction score
20
erm.. nope..
That is the Netherworld_DummyCasterLoc, not Netherworld_CasterLoc...

EDIT: i wanted to move the target and the caster to LandPoint 1st and after 15 seconds, it will move to the DummyCaster_Loc

DummyCaster_Loc = the point where the ability is casted

which,
DummyCaster_Loc is not equal to the point where they move too

Problems: They did move to the LandPoint, but they did not move back to the location where they start casting (DummyCaster_Loc)
 

popo80000

New Member
Reaction score
20
What exactly is happening when you use this trigger in game?

The target and the caster will move to the point i want, but it will not move back to the point where they initially at..

EDIT: MY bad.. i jus found out tat, i got a trigger that bring it back to the location whr i bring it to...:(
 
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