I am looking for a way, likely via a script where if I push “C” my character will jump a few squares but it will be instantaneously. Moreover they need mana to do so. I found a few jumping scripts but it’s not what I am looking for.
Teleportation skill
RPG Maker VXAce SupportAlright, so I made system that did something similar to this.
Here's the basics:
First, you'll need a way to trigger the event. Google a common event on button press script. Something should show up. I used Yanfly's.
Next, in the common event section of the database, make something like this. Very messy, but I think it'll work.
Make sure to set all the different directions. Now, this means the player teleport whenever they want. What do you want to happen if they teleport into a wall? Or should it just not let the player do that?
BTW, you'll have to test this yourself, having RPG Maker issues today, and I can't playtest. Sorry!
Here's the basics:
First, you'll need a way to trigger the event. Google a common event on button press script. Something should show up. I used Yanfly's.
Next, in the common event section of the database, make something like this. Very messy, but I think it'll work.
Make sure to set all the different directions. Now, this means the player teleport whenever they want. What do you want to happen if they teleport into a wall? Or should it just not let the player do that?
BTW, you'll have to test this yourself, having RPG Maker issues today, and I can't playtest. Sorry!
no need for a script, this is usually done through pure eventing.
a parallel process common event checking for a button press with a wait(10) or so to prevent lag (you might experiment to see if wait(5) or wait(15) are better), that then teleports the player with a tranfer to the same map
a parallel process common event checking for a button press with a wait(10) or so to prevent lag (you might experiment to see if wait(5) or wait(15) are better), that then teleports the player with a tranfer to the same map
Alright, fixed it up, and got to test it. Sorry, there were some major issues in the other one
Note that this will also let the player loop around the map.
Note that this will also let the player loop around the map.
Thanks however, how do I prevent teleporting into walls/abyss, etc
Here's a verrry rough draft
Here's the script call, so you don't have to type it out.
$game_map.passable?($game_player.x, $game_player.y, 2)
You'll have to adjust it for all 4 directions.
Here's the script call, so you don't have to type it out.
$game_map.passable?($game_player.x, $game_player.y, 2)
You'll have to adjust it for all 4 directions.
My scripting knowledge is limited, how would I modify the script for each direction? Thanks for the help!!!
Oh crap. That was misleading. The script doesn't need to be modified. Here's a pic of all 4 directions.
Solid! Then I guess I drain mana -5 and put a conditional branch prior to each that if mana is <5, nothing happens
Question, why isn’t it a move event rather than a scroll map and teleport player? Won’t that fade the screen in and out?
Question, why isn’t it a move event rather than a scroll map and teleport player? Won’t that fade the screen in and out?
the event variant is "set event location" and it is different from transfer player because event's can't leave their maps
Can you explain further, not sure I follow
then explain your question in more details on what exactly you want to know
How you stated that the event variant is a set event location? Isn’t that in a move event command?
Set Event Location is a separate command from a Move Route command. The latter sees you set a path for an event to follow, but the former allows you to take an event on a map and move it anywhere else on that map instantly. That's why it facilitates a teleporting system, because events are basically teleported when you use Set Event Location.
Looked at yanflys, it is only for 8 buttons, have you come across another script where you can use full keyboard? Currently trying out keyboard module by fomar however regarding the mana usage it drastically depletes it even if I push the key once
then you don't have any waits and the button press registers as many uses.
and for more help, please provide a screenshot of what you currently have
Crumbs, I think the screenshots are wrong.
Here's what I'll do. This weekend, I'll write up a full tutorial and post it. I'll @ you so you'll know where to look.
Here's what I'll do. This weekend, I'll write up a full tutorial and post it. I'll @ you so you'll know where to look.
Thanks so much!
no - your screenshots don't have a mana cost, so the mana cost was added by the OP and we need to see what he has done before we can correct the mistakes
Or you could just let him guide me via a tutorial...
Original thread: https://forums.rpgmakerweb.com/threads/teleportation-skill.161791/