[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
155
Reaction score
22
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
681
Reaction score
446
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
155
Reaction score
22
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
7,842
Reaction score
5,225
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.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,862
Messages
1,017,049
Members
137,569
Latest member
Shtelsky
Top