Raccoon Game RPG รวมพลนักพัฒนา
สคริปต์ Extra Move Speed Rpgvx_1024x768b

Join the forum, it's quick and easy

Raccoon Game RPG รวมพลนักพัฒนา
สคริปต์ Extra Move Speed Rpgvx_1024x768b
Raccoon Game RPG รวมพลนักพัฒนา
Would you like to react to this message? Create an account in a few clicks or log in to continue.

สคริปต์ Extra Move Speed

Go down

สคริปต์ Extra Move Speed Empty สคริปต์ Extra Move Speed

ตั้งหัวข้อ by boyhit Mon Oct 31, 2011 5:59 am

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
เปลี่ยนความเร็วตัวละครแบบเป็นทศนิยมได้ เช่น +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.
เพิ่มความเร็วตัวละครเกิน 6 (ลิมิตที่แก้ได้ด้วยคำสั่งอีเว้นท์) ได้~

Features
Version 1.0
- เพิ่มลดความเร็ว/ความถี่ จากความเร็วที่มีอยู่ได้ เช่น บวก 1 หรือลด 2.5
- ตั้งความเร็วสูงกว่าลิมิตได้
- ตั้งค่าความเร็ว/ความถี่ของอีเว้นท์อย่างง่าย ๆ ด้วยคอมเม้นท์
- อีเว้นท์ตัวหนึ่งมีความเร็วการเดินแตกต่างกันในแต่ละหน้าได้~ >_<"

Demo
Download Demo Version 1.0


Script
วางไว้เหนือ Main

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
ไปลองในเดโมเอา >_<" ไม่ก็อ่านคอมเม้นท์สคริปต์ิงิ

เครดิต วอราม่อน
boyhit
boyhit
Admin
Admin

ชื่อเล่น : เเอล
ความฝัน : ศิลปิน
จำนวนข้อความ : 1130
เครดิต : 3356
วันที่สมัคร : 09/10/2011
คะเเนนน้ำใจ : 11
เพศ : Male อายุ : 24
เหรียญรางวัล : สคริปต์ Extra Move Speed Medalhead2

https://raccoongame-rpg.thai-forum.net

ขึ้นไปข้างบน Go down

ขึ้นไปข้างบน

- Similar topics

 
Permissions in this forum:
คุณไม่สามารถพิมพ์ตอบ