ts50's Script Corner
Feel free to use how you wish in either commercial or non-commercial games. No credit necessary, but if you want you can credit me as ts50.
Add all scripts just above Main. Compatibility issues should be minimal.
SKIP TITLE SCREEN
Removes the title screen at the beginning and automatically starts a new game. Good for very short games or for games with custom, evented title screens. Obviously not compatible with title screen scripts; however, it should not create an error message but rather just ignore the title screen scripts.
Ruby:
=begin
SKIP TITLE SCREEN
by ts50
This script skips the title screen and continues directly to the
starting map as specified in the database ($game_map.autoplay).
No script settings.
=end
class Scene_Title < Scene_Base
def start
DataManager.setup_new_game
$game_map.autoplay
SceneManager.goto(Scene_Map)
end
def terminate
Graphics.fadeout(Graphics.frame_rate)
end
end
PAUSE WHILE TALKING
While a message window is activated, all other movement pauses. Originally written for a zombie survival game in which zombies would approach the player; while talking to an NPC, zombies would cluster around the player. This script pauses that. Tested with Yanfly Message System.
Ruby:
=begin
PAUSE WHILE TALKING
by ts50
This script pauses all event autonomous movement during a
message window. Tested with Yanfly Message System.
No script settings.
=end
class Game_Event < Game_Character
alias update_self_movement_ts50 update_self_movement
def update_self_movement
return if $game_message.busy?
update_self_movement_ts50
end
end
DISABLE DASH
Maybe the shortest script in existence, it simply disables dash for the whole game. Not much else to say. The second version allows for this to be disabled via switch. Change "1" to whatever switch ID you want. The switch should be ON to disable dash.
Ruby:
=begin
DISABLE DASH
by ts50
This script disables all dash for the game.
No script settings.
=end
class Game_Player
def dash?
false
end
end
Ruby:
=begin
DISABLE DASH
SWITCH EDITION
by ts50
This script disables all dash for the game.
Change the number in $game_switches to whatever switch
ID determines dash. If switch is ON, dash is disabled. Change
true to false to reverse this (if switch is OFF, dash is disabled).
=end
if $game_switches == true
class Game_Player
def dash?
false
end
end
end
本贴来自国际rpgmaker官方论坛作者:lakeisgay处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/ts50s-script-corner.92047/
页:
[1]