Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Help! How to preform "Set Move Route" in Script Format/Call?

Okay, here is my problem...

I'm trying to put the following into script:


#------------------------------------------------------------
@>Set Move Route: Player
: :$>Through ON
: :$>Graphic: "ArchesChr_Spear',0,2,3
: :$>Wait: 2 frame(s)
: :$>Graphic: "ArchesChr_Spear',0,2,2
: :$>Wait: 2 frame(s)
: :$>Graphic: "ArchesChr_Spear',0,2,1
: :$>Wait: 2 frame(s)
: :$>Graphic: "ArchesChr_Spear',0,2,0
: :$>Wait: 2 frame(s)
: :$>1 Step Forward
@>
Wait for Move's Completion
wait: 8 frames(s)

#------------------------------------------------------------

I have tried everything, but I'm not coming up with anything. I'm thinking that the script call
would be something like:
$game_player.setmove_route
But like I said, I got nowhere fast.

If anyone can help me out here, it is well appreciated.

Yes, it has to be in Script format, and not the way it is.

Thanks again,

Fenwick
 
Whats the specific reason you have to do it in a script? Eh, I'm sure you have your reasons so here this should get you started...

Code:
mr = RPG::MoveRoute.new

mr.repeat = true/false

mr.skippable = true/false
Code:
mc1 = RPG::MoveCommand.new(code, parameters)

mr.list << mc1

mc2 = RPG::MoveCommand.new(code, parameters)

mr.list << mc2
Events and player are the same, but in this example you're applying it to player...
Code:
$game_player.force_move_route(mr)

Of course, you're gonna have to know what code and parameters to put into the RPG::MoveCommand, for best reference look at Game_Character 2's code for move_type_custom starting around line 248 or so is the best reference I can give you as far as what code is supposed to be, and what parameters might be for certain codes.
 
Thanks for the speedy reply, you put it into an easy to understand way, as I am just learning how to script.

Whats the specific reason you have to do it in a script? Eh, I'm sure you have your reasons so here this should get you started...

I am currently transforming a demo I creaded: "Fenwick Lorecarver's Hookshot Tool v0.9 RMXP" for the XAS System, from event pics in Common Events to Script. It is being made to be more user friendly, as there are several pictures to be changed, and depending on what the Creator uses for pictures, script can easily do this. There are a lot of reasons, but can't get into it right now.

Thank you ever so much for the push a head though.!
I'll see if I can perform this with the above mentioned.


Fenwick Lorecarver
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top