- Joined
- Apr 13, 2019
- Messages
- 116
- Reaction score
- 149
- First Language
- English
- Primarily Uses
- RMVX
Hi everyone.
I want to access/modify Sprite_Battler's local var via script call while in battle scene.
for example in this code:
I want to modify @original_set via script call while in battle.
How/what is script for doing that?
Thank you!
I want to access/modify Sprite_Battler's local var via script call while in battle scene.
for example in this code:
Code:
class Sprite_Battler < Sprite_Base
def setup_initial_motion
return if @motion_initial != nil
@motion_initial = true
@collapse_done = false
@motion_speed = 0
@start_speed = [0,0]
@battler.motion_collapse[1] = 0
self.x = @battler.screen_x rescue 0
self.y = @battler.screen_y rescue 0
self.z = @battler.screen_z rescue 100
@battler.motion_bms = [0,false]
@battler.set_org_pos
setup_motion_stand
@original_set = [self.x, self.y, self.zoom_x,self.zoom_y,self.mirror,self.angle,255]
setup_motion_start
setup_motion_damage
setup_motion_action
end
How/what is script for doing that?
Thank you!

