draist
Active Member
- Reaction score
- 1
Ok, so what I'm trying to do is to have an item respawn every 60 seconds but if there's already an item at that region, a new item shouldn't be created. As for an example, let's say that;
Rune of Speed spawns in RegionX and someone runs by and picks it up/uses it. Then after 60 seconds a new Rune of Speed should be created in the same region.
If no one picks it up/uses it, however, after 60 seconds it shouldn't spawn again until someone gets by and picks it up/uses it.
Tell me if you don't get it and i'll try to explain in a better way.
I tried some lousy trigger but it didn't work and then I tried tweaking it, but it still didn't work. So now I'm stuck with this lameass-trigger;
(To be honest, I have no idea what to do here)
Now, I know I'm not the best at making triggers and stuff, but any directions will useful. Also, I suspect that this leaks. In fact, I suspect all my triggers leak, but how do you know if it leaks? Something particular I should be looking at when trying to determine if some triggers leak?
Thanks
Rune of Speed spawns in RegionX and someone runs by and picks it up/uses it. Then after 60 seconds a new Rune of Speed should be created in the same region.
If no one picks it up/uses it, however, after 60 seconds it shouldn't spawn again until someone gets by and picks it up/uses it.
Tell me if you don't get it and i'll try to explain in a better way.
I tried some lousy trigger but it didn't work and then I tried tweaking it, but it still didn't work. So now I'm stuck with this lameass-trigger;
(To be honest, I have no idea what to do here)
Trigger:
- Berserk
- Events
- Time - Every 60.00 seconds of game time
- Conditions
- Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- ((Item-type of (Random item in Berserk1Spawn <gen>)) Equal to Berserk!) and (((Matching item) is in Berserk1Spawn <gen>) Equal to True)
- Then - Actions
- Do nothing
- Else - Actions
- Item - Create Berserk! at (Center of Berserk1Spawn <gen>)
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Events
Now, I know I'm not the best at making triggers and stuff, but any directions will useful. Also, I suspect that this leaks. In fact, I suspect all my triggers leak, but how do you know if it leaks? Something particular I should be looking at when trying to determine if some triggers leak?
Thanks