Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> [Eventing]Changing Vehicle Speeds
Koru-chan
post Jan 28 2008, 08:05 PM
Post #1


Level 7
Group Icon

Group: Revolutionary
Posts: 102
Type: Event Designer
RM Skill: Advanced




This is more for beginners that don't know anything about scripts. This may seem useless to some people, but I wanted different speeds for the vehicles than what was provided. This is such an easy script mod that even a non-scripter can pull it off. I'm going to write this as elementary as possible in case someone who knows nothing about RM wants to use it.



Above shows where you need to be. Click the script button to pull up this window. If you don't know what button that is, it's the one that looks like a piece of paper with a green pencil on it.

Once here, click on "Game_Vehicle", as highlighted in blue in the image on the left side of the script screen. The section below line 54, in the red bracket, is where we need to work.

The game sets the boat as number 0, the ship as number 1, and the airship as number 2.

when 0;
@priority_type = 1
@move_speed = 4
when 1;
@priority_type = 1
@move_speed = 5
when 2;
@priority_type = @driving ? 2 : 0
@move_speed = 6

This is what you need to edit. when 0; means "when boat." When it's a boat, from the move_speed, you can see it's speed is 4, which is the speed at which your person normally walks. This can only be an integer between 1 and 6.

1 = 1/8 your normal speed
2 = 1/4 your normal speed
3 = 1/2 your normal speed
4 = normal speed
5 = 2X speed
6 = 4X speed

So from here, you just edit the number next to move_speed under the vehicle you want to change the speed of. So for example:

when 0;
@priority_type = 1
@move_speed = 3
when 1;
@priority_type = 1
@move_speed = 6
when 2;
@priority_type = @driving ? 2 : 0
@move_speed = 5

For some odd reason, I've decided to make my ship faster than my airship and the boat slower than my character walks. The code above says that the boat moves at 1/2 speed, the ship at 4X speed, and the airship at 2X speed.

I hope this helps anyone that wanted to change the vehicle speed and that this tutorial at least proves useful to someone.

This post has been edited by Koru-chan: Jan 28 2008, 08:39 PM


__________________________



PM me if you want your own graph, please do NOT take and alter for your own.
Go to the top of the page
 
+Quote Post
   
karim ghazal
post Jan 30 2008, 10:10 PM
Post #2


Level 3
Group Icon

Group: Member
Posts: 30
Type: Developer
RM Skill: Undisclosed




Hi , thank you very much! for this tut. i'm from iraq and i'm visting this web-site and downloading from it .. thanx for your support .. KG ...
Go to the top of the page
 
+Quote Post
   
nico_14_ian
post Jan 31 2008, 02:22 AM
Post #3


Level 1
Group Icon

Group: Member
Posts: 11
Type: Developer
RM Skill: Beginner




Very good. I'm a non-educated scripter but I know some of the things that need to be changed, however your script Almost confused me, save for a few tidbits at the end that made it all clear. IF you read slow and careful you'll understand it. Oh, and if you have RMVX you might understand that as well, but I unferstand that it's not released till next month. Sad sad.gif

This post has been edited by nico_14_ian: Jan 31 2008, 02:23 AM
Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 22nd May 2013 - 04:00 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker