Warcraft III resources & community, 2003–2006 · archived

i have a problem. with a trigger

8 posts
#1

i have a problem. with a trigger

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.
#2
there could be many things that could cause this,
however i do not remember an event "item placed in slot one"
instead try to copy the exact trigger as it is in your map.
#3
no, i used weu and i made sure the advanced triggers are on.
#4
just right click on the trigger and select "copy as text"
and then paste it here.
#5
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)
#6

trigger help please, (weu trigger)

nobody else used weu?
#7
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.
#8
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