aussj4link
New Member
- Reaction score
- 3
In my map I made a trigger that would create a random item somewhere on the map every 2 minutes but the item will only be there for 30 seconds then disappear unless it has been picked up. It seems to be working fine until it randomly picks a tome and then for some reason if the tome is not picked up in the time limit it stays, all other items have been disappearing like their supposed to. These are the Triggers if anyone can point out whats wrong It would be most helpful.
(this is so that it will wait 5 minutes before it starts spawning items.)
This one changes the last created item to something else, anything but the last created item. changing it to Matching Item should in theory make it so that the 2nd trigger no longer thinks it the last created item and wont remove it from the game, this way people can pick up the item and not have it be removed a few seconds after they picked it up lol.
Like I said the main problem here is that this is working for everything but tomes, for some reason if its an item that consumable on the spot it will stay, thanks for your help!
Trigger:
- Trigger Turn On
- Events
- Time - Elapsed game time is 300.00 seconds
- Conditions
- Actions
- Trigger - Turn on Spawn Items <gen>
- Events
(this is so that it will wait 5 minutes before it starts spawning items.)
Trigger:
- Spawn Items
- Events
- Time - Every 120.00 seconds of game time
- Conditions
- Actions
- Item - Create (Random level -1 item-type) at (Random point in (Playable map area))
- Set PickedUpItem = (Last created item)
- Wait 30.00 seconds
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Last created item) Equal to PickedUpItem
- Then - Actions
- Item - Remove (Last created item)
- Else - Actions
- Do nothing
- If - Conditions
- Events
Trigger:
- Change Item
- Events
- Unit - A unit Acquires an item
- Conditions
- (Last created item) Equal to PickedUpItem
- Actions
- Set PickedUpItem = (Matching item)
- Events
This one changes the last created item to something else, anything but the last created item. changing it to Matching Item should in theory make it so that the 2nd trigger no longer thinks it the last created item and wont remove it from the game, this way people can pick up the item and not have it be removed a few seconds after they picked it up lol.
Like I said the main problem here is that this is working for everything but tomes, for some reason if its an item that consumable on the spot it will stay, thanks for your help!