Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
- # ■ Enemy Auto States
- # ■ Author: Bigace360
- # ■ Type: Battle Add-on
- # ■ Date: Feb. 18, 2012
- # ■ Version: 1.0
- #
- # This script allows you to create effects that stay always active for enemies
- #:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
- module ACE
- # Do not remove this line
- Auto_Status_Enemy = {}
- # Do not remove this line
- # Auto_Status_Enemy[Enemy_ID] = [States,...]
- # A = Enemy ID
- # States = States ID
- Auto_Status_Enemy[1] = [7]
- end
- #==============================================================================
- # ** Game_Enemy
- #==============================================================================
- class Game_Enemy < Game_Battler
- include ACE
- alias initialize_enemystatus initialize
- def initialize(troop_id, member_index)
- initialize_enemystatus(troop_id, member_index)
- update_auto_state
- end
- def update_auto_state
- st = Auto_Status_Enemy
- multi_auto_state_id = (st != nil and st[@enemy_id] != nil) ? st[@enemy_id] : []
- for state in multi_auto_state_id
- add_state(state, true)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment