Project1

标题: Gather Place for garbage script./雜乱腳本區 [打印本页]

作者: 熊喵酱    时间: 2013-9-30 08:05
标题: Gather Place for garbage script./雜乱腳本區
本帖最后由 76213585 于 2013-9-29 17:07 编辑

I'll dump all my garbage script here...../全部的為了解決的問題寫的小插件將被丟到這裡
作者: 熊喵酱    时间: 2013-9-30 08:06
Garbage Number: 1 / 雜物編号: 1
  1. #====================
  2. #  显示文章确定音效 BY:Panda King
  3. #====================
  4. class Window_Message < Window_Base
  5.   def update
  6.     super
  7.     process_handling
  8.     update_all_windows
  9.     update_back_sprite
  10.     update_fiber
  11.   end
  12.   def process_handling
  13.     return unless open? && active
  14.     return process_ok   if Input.trigger?(:C)
  15.   end
  16.   def process_ok
  17.       Sound.play_ok
  18.   end
  19. end
复制代码

作者: 熊喵酱    时间: 2013-10-13 13:41
Garbage Number: 2 / 雜物編号: 2
  1. #====================
  2. #  间隔战斗才可使用道具 BY:Panda King
  3. #====================
  4. module Battle_after
  5.   Renew_swith = 20
  6. end
  7. class Scene_Battle < Scene_Base
  8.   include Battle_after
  9.   def pre_terminate
  10.     super
  11.     $game_switches[Renew_swith] = false
  12.     Graphics.fadeout(30) if SceneManager.scene_is?(Scene_Map)
  13.     Graphics.fadeout(60) if SceneManager.scene_is?(Scene_Title)
  14.   end
  15. end
复制代码
Usage:
Chose a item that you want to apply the effect to.(Can be use once between every battle)
Link it to a common event, set a Condition Branch between ether switch you set is on.
If on, no effect, if off, have effect.
This is a dummy script... I think anyone with the ability to type can make this script....




欢迎光临 Project1 (https://rpg.blue/) Powered by Discuz! X3.1