Ok i want to make it so that a spawned unit drops a item. This is my trigger please tell me what i did wrong.
Event Unit - A unit owned by Neutral Hostile Dies
ConditionsOr - Any (Conditions) are true Conditions (Unit-type of (Dying unit)) Equal to Dark Troll (Unit-type of (Dying unit)) Equal to Arachnid (Unit-type of (Dying unit)) Equal to Unbroken
Actions Item - Create RandomItem[(Random integer number between 1 and 10)] at (Position of (Dying unit))
Okay, that action looks pretty weird and i dont quite understand it. I think the trigger should go something like this:
Event and conditions are ok
Actions Set Variable "Random Item" = (Random integer number between 1 and 10) IF "Random Item" equal to 1 THEN create item "Mask of death" to position of the dying unit ELSE do nothing IF "Random Item" equal to 2 THEN create item "Crown of the kings" to position of the dying unit ELSE do nothing
And so on and so on, i think u get the point, "Random item" is a variable type integer
ConditionsOr - Any (Conditions) are true Conditions (Unit-type of (Dying unit)) Equal to Dark Troll (Unit-type of (Dying unit)) Equal to Arachnid (Unit-type of (Dying unit)) Equal to Unbroken
Actions Item - Create RandomItem[(Random integer number between 1 and 10)] at (Position of (Dying unit))
Thanks but i did set up my arrays with items. I dunno the problem either, ill run over it one more time then try to set it up a new way. Thanks again for you guys help.