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
> +Extra Move Speed+ Version 1.0, *Let's Break Character's Speed Limit!
woratana
post Feb 11 2008, 05:35 PM
Post #1


Looking for scripter to hire? PM me *O*
Group Icon

Group: +Gold Member
Posts: 1,038
Type: Scripter
RM Skill: Undisclosed




Extra Move Speed
Version 1.0
by Woratana
Release Date: 11/02/2008


Introduction
You will allow to change character's speed by decimal point. e.g. +0.5, -1.2

And you can increase speed more than 6, which is the limit of speed that you can change by event command.


Features
Version 1.0
- Increase/Decrease Speed and/or character's Frequency from the original Speed/Frequency.
e.g. speed + 1 or frequency - 2.5
- Set Speed and Frequency to be more than limit.
- Easy setup speed/frequency for event.
- You can set one event's speed to be different in different event pages.


Demo
You can download demo for more understanding in this script's features.
Download Demo Version 1.0


Script
Place it above main.
if you have problem with codebox, you can download script in text file here:
Version 1.0
Attached File  extraspeed10.txt ( 2.3K ) Number of downloads: 191


CODE
#======================================================================
========
# [VX] Extra Move Speed by Woratana
#------------------------------------------------------------------------------
# Version: 1.0
# Released on: 11/02/2008
# by Woratana [woratana@hotmail.com]

# You can edit event's speed and/or frequency to be more than limit,
# by put event command "Comment" in the event page you want to edit.
# (Yes, you can set the different speed for different page in one event)

# Add comment like this:
# [speed(speed you want)][freq(frequncy you want)]
# e.g. [speed8][freq4]
# You can edit only speed by put [speed(speed you want)]
# and edit only frequency by put [freq(frequency you want)]

# You can increase character's Speed and/or Frequency by call script:
# (character).add_speed(speed_plus,frequency_plus)

# To decrease Speed and/or Frequency, you can just put negative number in it:
# e.g. $game_player.add_speed(-1.5)

# To change character's Speed to any number you want:
# (character).fix_speed(speed you want)

# To change character's Frequency to any number you want:
# (character).fix_frequency(frequency you want)

# Frequency shouldn't be more than 5 or 6, but there is no limit for Speed.
# You can use decimal place for speed/frequency,
# To change player's frequency, it will make no diffrent.
# It will make different in speed even though the speed is just 0.5 more.
#==============================================================================

class Game_Character
attr_accessor :move_speed, :move_frequency

def add_speed(spd = 0,freq = 0)
@move_speed += spd
@move_frequency += freq
end

def fix_speed(spd = 0)
@move_speed = spd
end

def fix_freq(freq = 0)
@move_frequency = freq
end

end

class Game_Event < Game_Character
attr_accessor :event
alias wor_event_setup setup

def setup(new_page)
wor_event_setup(new_page)
for i in 0...@list.size
next if @list[i].code != 108
if @list[i].parameters[0].include?("[speed")
list = @list[i].parameters[0].scan(/\[speed([0.0-9.9]+)\]/)
@move_speed = $1.to_i
end
if @list[i].parameters[0].include?("[freq")
list = @list[i].parameters[0].scan(/\[freq([0.0-9.9]+)\]/)
@move_frequency = $1.to_i
end
end
end
end



Instruction

QUOTE
# You can edit event's speed and/or frequency to be more than limit,
# by put event command "Comment" in the event page you want to edit.
# (Yes, you can set the different speed for different page in one event)

# Add comment like this:
# [speed(speed you want)][freq(frequncy you want)]
# e.g. [speed8][freq4]
# You can edit only speed by put [speed(speed you want)]
# and edit only frequency by put [freq(frequency you want)]

# You can increase character's Speed and/or Frequency by call script:
# (character).add_speed(speed_plus,frequency_plus)

# To decrease Speed and/or Frequency, you can just put negative number in it:
# e.g. $game_player.add_speed(-1.5)

# To change character's Speed to any number you want:
# (character).fix_speed(speed you want)

# To change character's Frequency to any number you want:
# (character).fix_frequency(frequency you want)


CODE
# Frequency shouldn't be more than 5 or 6, but there is no limit for Speed.
# You can use decimal place for speed/frequency,
# To change player's frequency, it will make no diffrent.
# It will make different in speed even though the speed is just 0.5 more.


Author's Notes
Free for use in your non-commercial work if credit included. If your project is commercial, please contact me.

Please do not redistribute this script without permission. If you want to post it on any forum, please link to this topic.


__________________________
Check out my NEW blog!!!



MVP (Most Valuable Poster) Award 2008


Go to the top of the page
 
+Quote Post
   
ch.maker
post Feb 12 2008, 08:39 AM
Post #2


Level 1
Group Icon

Group: Member
Posts: 6
Type: Event Designer
RM Skill: Advanced




biggrin.gif Thank you very much!
Can you make AB system? Please, I hope you can help, this will be very useful for everyone.
Thanks in advance!
happy.gif
Go to the top of the page
 
+Quote Post
   
HeLLRazor
post Feb 15 2008, 08:07 AM
Post #3


Level 2
Group Icon

Group: Member
Posts: 15
Type: Musician
RM Skill: Beginner




Wonderfull! I hunting movement scripts for VX and this will help a lot!! thank u so and make more movement scripts (pixel movement, angular movement other than tile angle mov maybe??)
Go to the top of the page
 
+Quote Post
   
woratana
post Feb 15 2008, 07:50 PM
Post #4


Looking for scripter to hire? PM me *O*
Group Icon

Group: +Gold Member
Posts: 1,038
Type: Scripter
RM Skill: Undisclosed




Sorry, I can't taking the request for the complicated scripts yet.

It's too hard for me smile.gif


__________________________
Check out my NEW blog!!!



MVP (Most Valuable Poster) Award 2008


Go to the top of the page
 
+Quote Post
   
ch.maker
post Feb 16 2008, 05:47 AM
Post #5


Level 1
Group Icon

Group: Member
Posts: 6
Type: Event Designer
RM Skill: Advanced




sad.gif In any case, you make excellent scripts that are making my game much better.
Thank you! biggrin.gif
And when you try to make an ABS, let me know! happy.gif smile.gif

Forgive me because of my English biggrin.gif

ch.maker

This post has been edited by ch.maker: Feb 16 2008, 06:17 AM
Go to the top of the page
 
+Quote Post
   
Daldraeic
post Feb 18 2008, 03:04 PM
Post #6



Group Icon

Group: Member
Posts: 4
Type: None
RM Skill: Undisclosed




Nevermind. I downloaded your demo and it answered the question I asked.

This post has been edited by Daldraeic: Feb 18 2008, 03:44 PM
Go to the top of the page
 
+Quote Post
   
Gremlin37
post Mar 12 2008, 04:10 AM
Post #7


Level 2
Group Icon

Group: Member
Posts: 17
Type: None
RM Skill: Undisclosed




Hey, I am not sure if this is conflicting with another of my scripts... but when I go into the game the player is already moving at a semi what high speed... any ideas anyone?

Edit: Fixed it myself^^

This post has been edited by Gremlin37: Mar 12 2008, 04:32 AM
Go to the top of the page
 
+Quote Post
   
ouroboros
post Aug 10 2008, 11:05 AM
Post #8


Level 6
Group Icon

Group: Member
Posts: 86
Type: None
RM Skill: Undisclosed




Hey Wora,

I am getting a really bizarre error and I just can't figure it out. Even if I am not calling the functions defined in the script anywhere in the game, any time an event disappears due to a variable changing (for instance an event is only there if myVar is greater than 2, and myVar has just become 1) the game crashes with this error:

"????? 'Extra Move Speed' ? 60 ??? NoMethodError ????????
undefined method 'size' for nil:NilClass"

Any idea what could be doing this? Here is a link to a test game I made that distills the problem to its simplest form: https://ssl117.alentus.com/jkingsweb/gbt/test.zip

Please help; it's driving me mad. Thanks!

This post has been edited by ouroboros: Aug 10 2008, 07:01 PM
Go to the top of the page
 
+Quote Post
   
ouroboros
post Aug 10 2008, 02:49 PM
Post #9


Level 6
Group Icon

Group: Member
Posts: 86
Type: None
RM Skill: Undisclosed




The problem has something to do with the @list array referenced in line 60. That array is the array of events in the game...and it seems its somehow becoming undefined for a second when an event is removed?

This post has been edited by ouroboros: Aug 10 2008, 02:55 PM
Go to the top of the page
 
+Quote Post
   
ouroboros
post Aug 26 2008, 12:15 PM
Post #10


Level 6
Group Icon

Group: Member
Posts: 86
Type: None
RM Skill: Undisclosed




Hey Wora,

I am also scotopia on rpgmakervx.net but ever since the server crash i can't post over there for some reason. I'll answer your question here. You asked me:

"Have you put some other script that may edit Game_Event class?
@list is the array (or hash, I can't remember) that store event commands in that event. smile.gif I think event commands may got removed after event deleted."

No, I haven't. I can make a brand new game and only add this script and the error will still occur. All you need to do to see it is make an event that only exists when some variable is true and then turn that variable off. Alternatively you can just put the "erase event" command on an event...either will crash the game immediately. I believe the error lies somewhere in the refresh.

This post has been edited by ouroboros: Aug 26 2008, 12:16 PM
Go to the top of the page
 
+Quote Post
   
samkxu
post Oct 10 2008, 07:50 PM
Post #11


Level 1
Group Icon

Group: Member
Posts: 6
Type: Event Designer
RM Skill: Beginner




I am getting the same error as ouroboros,
the game crashes when any event deletes itself (even when it isn't related to extra movement speed)
Any help?
Go to the top of the page
 
+Quote Post
   
maker2008
post Oct 11 2008, 05:24 AM
Post #12


Level 1
Group Icon

Group: Member
Posts: 11
Type: Event Designer
RM Skill: Advanced




I am getting the same error
Go to the top of the page
 
+Quote Post
   
Jonny
post Oct 12 2008, 05:17 AM
Post #13


Level 6
Group Icon

Group: Member
Posts: 87
Type: None
RM Skill: Skilled




I have a question,
is there some kind of addon that you can make that ups the speed after a certian legth of time spent dashing?
example,
i walk for 10 tiles, the dash for 20 and after that 20, the character dashes faster.
i was just wandering because it seemd to me like a good addon.
Go to the top of the page
 
+Quote Post
   
Arthin
post Oct 13 2008, 11:44 AM
Post #14


Level 3
Group Icon

Group: Member
Posts: 43
Type: Event Designer
RM Skill: Beginner




Having issues when giving a categorized item to the player.
I think it might crash with KCG_ItemCategorization. Somewhy I think, though not 100%.
I actually solved it by removing @>Erase Event
which is... stupid.

EDIT: Solved

This post has been edited by Arthin: Oct 14 2008, 01:59 PM


__________________________
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: 25th May 2013 - 07:49 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker