DrDhoom Doomed Zombie
Posts : 629 Thanked : 22 Engine : Multi-Engine User Skill : Intermediate Type : Scripter
| Subyek: [VX] Common Event Before Skill 2012-03-23, 17:31 | |
| First topic message reminder :Common Event Before Skill Versi: 1.0 Tipe: Battle Snippet PengenalanScript ini buat eksekusi Common Event saat gunain skill, tapi bedanya eksekusinya sebelum skill nya digunakan. Kalau skill nya juga diset common event nya di database jadi bisa manggil 2 common event Fitur
- Manggil Common Event sebelum eksekusi Skill
ScreenshotsGa ada bang~ DemoGa ada, gampang kok makenya Scripts- Spoiler:
- Code:
-
#=============================================================================== #---------------------=•Common Event Before Skill •=--------------------------- #---------------------------=• by: DrDhoom •=----------------------------------- # Version: 1.0 # Date Published: 23 - 03 - 2012 # RPGMakerID Community #------------------------------------------------------------------------------- # Introduction: # Execute commont event before using skill #------------------------------------------------------------------------------- # How to use: # - Insert this script above Main #=============================================================================== module Dhoom module CEBA COMMON_EVENT = [] #<--- Don't Delete this line #COMMON_EVENT[skill id] = common event id COMMON_EVENT[1] = 4 end end
class Scene_Battle < Scene_Base alias dhoom_execute_action execute_action def execute_action if @active_battler.action.kind == 1 and Dhoom::CEBA::COMMON_EVENT[@skill.id] != nil $game_troop.interpreter.setup($data_common_events[Dhoom::CEBA::COMMON_EVENT[@skill.id]].list) process_battle_event end dhoom_execute_action end end
Credits | |
|