Hi everyone,
Abalue here with my first post on this forum. I've joined seaking some helpful advice for event scripting in my first rpg maker project. The project, as all good first rpg maker projects should be, is a massive and way too out of scope Metroidvania/rpg adventure where the player learns many spells that are equally as helpful outside of battle as they are in. One such spell is modelled after the "Frost Walker" enchantment from minecraft where, water surrounding the player will freeze allowing them to walk on it.
Image of frostwalker spell in minecraft
I have successfuly achieved this in RPG Maker MV however, there are a few problems I have with my method and would like a more experienced opinion on how best to overcome these. I will explain how I have implemented it first here, but feel free to skip to the next paragraph to see what the problems are first. All my spells call a certain common event that casts the spell out of combat. The "Frost Feet" spell calls a common event that turns on a control switch. There is another common event that triggers parallel when this switch is on and runs the scripting. The scripting in the parallel common event searches the room for events by name and teleports them to underneath the player (5 in total for directly on top of the player and the 4 cardinal directions too). The 5 map events have two event pages, one for the off-state where they are invisible but are running parallel to check if they are on a region (regions are painted on the map so I can choose what tiles can freeze) and the on-state where they also run in parallel to check what region they are on but have an icy image that the player can walk on.
There are 2 problems I have with this method. The first, and probably my biggest grievance with this method is, that I have to copy the 5 map events into every region I make so that when the script is called they can be moved. Even if they are on a map with no water to be used on. Ideally I would only have to have one instance of each event so I don't have to create multiple of them every time there might be freezable water as the game consists of lots of small zelda-esque maps rather than a few larger ones. Secondly, whenever one of the map events moves from a valid region tile to an invalid non-freezable tile, there are a few frames where the ice event page is still active. This looks visually displeasing but isn't the end of the world. Perhaps it would allow the player to move onto a tile they should be able to at all briefly and make them get stuck there but I haven't tested it enough to confirm this.
I've left a short video demonstration of it working in game and you can see the problems there too:
Hope this post isn't too lengthy for what is expected on this forum. I am happy to post my current eventing and scripts if it helps as well.
Thanks for reading and any help that you can provide,
Abalue.
TLDR - I have successfully implemented the Frost Walker enchantment from minecraft but the scripting I used is inefficient and glitchy. I would like an experienced opinion on how to improve this.
Abalue here with my first post on this forum. I've joined seaking some helpful advice for event scripting in my first rpg maker project. The project, as all good first rpg maker projects should be, is a massive and way too out of scope Metroidvania/rpg adventure where the player learns many spells that are equally as helpful outside of battle as they are in. One such spell is modelled after the "Frost Walker" enchantment from minecraft where, water surrounding the player will freeze allowing them to walk on it.
Image of frostwalker spell in minecraft
I have successfuly achieved this in RPG Maker MV however, there are a few problems I have with my method and would like a more experienced opinion on how best to overcome these. I will explain how I have implemented it first here, but feel free to skip to the next paragraph to see what the problems are first. All my spells call a certain common event that casts the spell out of combat. The "Frost Feet" spell calls a common event that turns on a control switch. There is another common event that triggers parallel when this switch is on and runs the scripting. The scripting in the parallel common event searches the room for events by name and teleports them to underneath the player (5 in total for directly on top of the player and the 4 cardinal directions too). The 5 map events have two event pages, one for the off-state where they are invisible but are running parallel to check if they are on a region (regions are painted on the map so I can choose what tiles can freeze) and the on-state where they also run in parallel to check what region they are on but have an icy image that the player can walk on.
There are 2 problems I have with this method. The first, and probably my biggest grievance with this method is, that I have to copy the 5 map events into every region I make so that when the script is called they can be moved. Even if they are on a map with no water to be used on. Ideally I would only have to have one instance of each event so I don't have to create multiple of them every time there might be freezable water as the game consists of lots of small zelda-esque maps rather than a few larger ones. Secondly, whenever one of the map events moves from a valid region tile to an invalid non-freezable tile, there are a few frames where the ice event page is still active. This looks visually displeasing but isn't the end of the world. Perhaps it would allow the player to move onto a tile they should be able to at all briefly and make them get stuck there but I haven't tested it enough to confirm this.
I've left a short video demonstration of it working in game and you can see the problems there too:
Hope this post isn't too lengthy for what is expected on this forum. I am happy to post my current eventing and scripts if it helps as well.
Thanks for reading and any help that you can provide,
Abalue.
