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

i have a problem. with a trigger

Status
Not open for further replies.
Level 2
Joined
Feb 14, 2005
Messages
15
k im good at triggers and everything but this dosnt work.


item placed in slot one

condition
item equal to xxxx

action:
destroy special effect variable[player number of triggering player] (just incase there is already a special effect for the player)

create special effect attached to weapon of hero minipulating item

set special effect variable[player number of triggering player] = last created special effect

this should work, but it dosnt.
 
Level 2
Joined
Feb 14, 2005
Messages
15
k here it is:
  • event:
    Advanced - Any unit moves any item to inventory slot 1
    condition:
    Advanced - Any unit moves any item to inventory slot 1

    action:
    Special Effect - Destroy specialeffect[(Player number of (Owner of (Triggering unit)))]
    Special Effect - Create a special effect attached to the weapon of (Triggering unit) using war3mapImported\Konstrukt_AssaultRifleAttachment.MDX
    Wait 0.05 seconds
    Set specialeffect[(Player number of (Owner of (Triggering unit)))] = (Last created special effect)
 
Level 9
Joined
Jan 13, 2005
Messages
553
Why is it that the event & condition are the same?

I think the whole trigger will not work simply because you dont have the correct condition. Besides you have the action; Special Effect - Create a special effect attached to the weapon of (Triggering unit) using..etc.. & therefore you should have the corresponding condition for this.
 
Level 2
Joined
Feb 14, 2005
Messages
15
no, the conditions is item = assualt rifle
sorry, i copied it wrong
you cant have an action and condition the same anyway. its not possible. sorry
 
Status
Not open for further replies.
Top