The RPG Maker Resource Kit

RMRK RPG Maker Creation => Requests => Script Request => Topic started by: Dimosthennis on September 27, 2010, 06:36:32 PM

Title: [RESOLVED] Random Trap Spawning.
Post by: Dimosthennis on September 27, 2010, 06:36:32 PM
I was making a dungoen last night, and wanted to make traps.. but a trap on the same place forever is boring.
So i was thinking if there is a possibility to make a Script that you can Randomly put in a current map, put in the Animation ID (for an animation effect), Damage dealt to HP/MP, add state effect , Max traps/Min Tarps in the Curent map, and repeatble when you walk on it again.
This would be Awesome for anyone who wants a trap system that spowns on Random tiles.  :D
If not clear enough please let me know!
Greatings
Title: Re: Request: Random Trap Spawning.
Post by: Grafikal on September 27, 2010, 06:50:24 PM
I can't see this being all that possible, tbh. Traps are generally elegant event systems. I don't know if you can just make something like that plug-n-play. Personally I can only see this being possible if you find a way to contain event systems which often include multiple map events and then having the script move them specifically to a random location. However, this is bunk since likely there are areas on the map that the player literally can't walk over and therefore the trap is useless.

A different solution, I think, would be to design your trap, copy/paste it in several convenient (or rather inconvenient) locations, then assign each trap a number through variables. Then when the map loads or the player is transported there have a Parallel Processed map event random a number then turn itself off. Have each of your traps only work if the variable is that trap's chosen number. That way only that trap will be active and the other 4 or 5 you created are off. If you wanted it to be different every game play, then make that event turn itself off permanently, otherwise, make the Parallel Processed map event reactivate after each return to that map so that it picks a new number each time thereby activating a different, or more randomly, sometimes the same trap again.
Title: Re: Request: Random Trap Spawning.
Post by: Dimosthennis on September 27, 2010, 07:19:09 PM
Sound good. so far i tried that sames to be working. Thanks alot!
but another Question diffrent Supject.
If i make a event for geathering. Example: Cutting down a tree gives you 3 Oak logs. Event page 2: Tree Stomp left.
Now i put a timer lets say 10mins, and it will respown again. and you can cut it down again, (Just like in Runescape best example)
is that Possble with variable? Cuz a Controll timer Shows and only 1 can be timed on, and the Timing wait Makes you stop Moving aftering cutting the tree down.
Or i am just massing it up with something :/
(i am a noob but love to learn :P)
Title: Re: Request: Random Trap Spawning.
Post by: Grafikal on September 27, 2010, 08:17:57 PM
Check it out. I actually made that a while ago. http://rmrk.net/index.php/topic,31261.0.html

Download the demo and pick apart the events. If I remember correctly, it's a very simple set up. You can use mine if you want or change it however. It's pretty plug-n-play. It includes mining as well.
Title: Re: Request: Random Trap Spawning.
Post by: Dimosthennis on September 27, 2010, 09:02:24 PM
 ;D Damn thanks ALOT!

you saved me of making 60000 Events :P  ;D