Raccoon Game RPG รวมพลนักพัฒนา
สคริปต์ VX Quick Save Rpgvx_1024x768b

Join the forum, it's quick and easy

Raccoon Game RPG รวมพลนักพัฒนา
สคริปต์ VX Quick Save 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.

สคริปต์ VX Quick Save

Go down

สคริปต์ VX Quick Save Empty สคริปต์ VX Quick Save

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

VX Quick Save

ข้อ
ดี คือ ไม่ได้เขียนทับหรือเขียนเมธอทเซฟไฟล์ใหม่
เพราะงั้นไม่กระทบกับคนที่แก้ method เซฟไฟล์/แก้ชื่อไฟล์เซฟใน Scene_File
ไปแล้วแน่นอน =w=b

วิธีใช้
เวลาจะเซฟก็ Call Script:
CODE
$save.do(สลอตเซฟที่ต้องการ)

เช่น:
CODE
$save.do(1)


ถ้าเกิดจะเซฟเข้าสลอตเซฟเดิมที่ใช้ $save.do ครั้งล่าสุด ก็call script:
CODE
$save.redo


ใช้ง่ายดีมะ >_<"

CODE
#===========================================================================
# ● [VX] ◦ Quick Save ◦
#-----------------------------------------------------------------
# ◦ by Woratana [woratana@hotmail.com]
# ◦ Thaiware RPG Maker Community
#-----------------------------------------------------------------
# ◦ Version: 1.0
# ◦ Released on: 22/02/2008
#---------------------------------------------------------------------------
=begin
●[Features]●
◦ Save game automatically in save slot you want~
Player will not notice this until he open save/load window Razz

◦ Compatible even if you have edit method(s) in Scene_File

●[How To Use]●
◦ When you want to use quick save, just call script:

$save.do(save slot you want)
e.g. $save.do(1) << save file in save slot no. 1

Note: You can use value in variable for save slot, by call script:
$save.do($game_variables[id of variable])

◦ You can do quick save on last save slot that you used quick save on it
by call script:
$save.redo

=end
#===========================================================================

class Quick_Save
def do(slot = 0)
return if slot == 0
$game_system.last_qsave_slot = slot
save = Scene_File.new(false,false,false,1,slot)
end

def redo
save = Scene_File.new(false,false,false,1, $game_system.last_qsave_slot)
end
end
$save = Quick_Save.new

$worale = {} if $worale.nil?
$worale["QuickSave"] = true
class Game_System
attr_accessor :last_qsave_slot
alias wor_qsave_gamsys_ini initialize
def initialize
wor_qsave_gamsys_ini
@last_qsave_slot = 1
end
end

class Scene_File < Scene_Base
alias wor_qsave_scefil_ini initialize

def initialize(saving, from_title, from_event, skip = 0, slot = 0)
if skip == 1 and slot > 0
file = File.open(make_filename(slot - 1), "wb")
write_save_data(file)
file.close
return
elsif
wor_qsave_scefil_ini(saving, from_title, from_event)
end
end
end

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

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

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

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

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

- Similar topics

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