[VXAce] Moghunter's XAS ABS - States cannot be inflicted twice

Status
Not open for further replies.

Hisao Shou

Veteran
Veteran
Joined
Jan 8, 2015
Messages
169
Reaction score
23
Primarily Uses
Hello everyone.
I'm actually facing a pretty problematic issue with the XAS ABS System, where I inflict to the player a certain state by "picking up an" event, but if the player attempts to pick up the same event after the state is over, the same state does not get inflicted anymore.

I do not know why is this happening, I have attempted also to let the XAS Scripts only in the game, but still happening.
Can someone please help me with this issue?

Here is the XAS script I am using: https://atelierrgss.wordpress.com/download-page-6/
And also here is a demo where I have this issue happening: https://www.dropbox.com/s/p3un5t9hehuomer/XAS ACE.exe?dl=0
 

A-Moonless-Night

WINTER IS COMING
Veteran
Joined
Mar 17, 2012
Messages
690
Reaction score
448
First Language
English
Primarily Uses
RMVXA
Code:
class Game_Battler
  alias amn_xas_gamebattler_removestate remove_state
  def remove_state(state_id)
    if state?(state_id)
      state = $data_states[state_id]
      xas_remove_state(state)
      #
      revive if state_id == death_state_id
      erase_state(state_id)
      refresh
      #
    end 
    x_remove_state(state_id)     
  end
end

This appears to fix it, but I haven't tested extensively.
 

Hisao Shou

Veteran
Veteran
Joined
Jan 8, 2015
Messages
169
Reaction score
23
Primarily Uses
Code:
class Game_Battler
  alias amn_xas_gamebattler_removestate remove_state
  def remove_state(state_id)
    if state?(state_id)
      state = $data_states[state_id]
      xas_remove_state(state)
      #
      revive if state_id == death_state_id
      erase_state(state_id)
      refresh
      #
    end
    x_remove_state(state_id)    
  end
end

This appears to fix it, but I haven't tested extensively.

Thank you very much! It worked correctly and no issues were found during my tests.
Thank you so much!
 

slimmmeiske2

Little Red Riding Hood
Global Mod
Joined
Sep 6, 2012
Messages
8,380
Reaction score
5,537
First Language
Dutch
Primarily Uses
RMXP

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

 
Status
Not open for further replies.

Latest Threads

Latest Profile Posts

Child base test two, flappin' their arms like it's VX Ace.
ChildTest-02.gif
Zaj
Hi quick question. Is it possible for me to make a custom VXAce script without learning some bulkiness of Ruby?
Never Forget you've Got a friend, Even you feel your alone, Jesus Christ is there to Love and Be with you when your alone
6000 Plugins for RPG Maker MV, Pixel RPG Icons, & Reboot Pixel Font | RPG Maker News #38

Forum statistics

Threads
111,312
Messages
1,060,140
Members
144,635
Latest member
Rauro
Top