Item Spawning & Using Problem

Pigger

New Member
Reaction score
13
Hello again, another problem it seems. This relatively simple (I think) trigger is giving me issues.

Code:
Cunning Disguise
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Cunning Disguise 
    Actions
        Set DisguisePos = (Position of Caster1)
        Unit - Create 1 Dummy for (Owner of Caster1) at DisguisePos facing Default building facing degrees
        Set CunningDummy = (Last created unit)
        Hero - Create disguise and give it to CunningDummy
        Hero - Order CunningDummy to use (Item carried by CunningDummy of type disguise) on Caster1
        Custom script:   call RemoveLocation(udg_DisguisePos)
        Unit - Add a 2.00 second Generic expiration timer to CunningDummy

What is supposed to happen:

Unit casts spell, Dummy unit spawns on caster's position, Dummy unit (which has a hero inventory) is given a created items, Dummy unit uses the item on casting unit. Fin.

The Problem:

When the spell is cast, the item is created in the middle of the map...
 

Azylaminaz

Vox Populi
Reaction score
91
Attempt making the dummy unit a different unit. Then, if it works, try giving the unit a size of 0(with triggers), and make it perm invis. Like I have said, I suck with ability triggers. >.<
 

Pigger

New Member
Reaction score
13
It's wierd though, because the trigger works perfectly on another map of mine :S
 

Azylaminaz

Vox Populi
Reaction score
91
o.o Did you actually copy it from map to map? And they use the same unit?
If you copied it, you should try to use the exact same units/variables. If it still doesn't work, your map has to be corrupted.. o.o I think.. >.<
 
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