Milena

The woman of many questions
Veteran
Joined
Jan 26, 2014
Messages
1,281
Reaction score
106
First Language
Irish
Primarily Uses
N/A
In RMVX before, there's a script call called:

@active_battlerand if you like to call the armor id for example, you can say:

@active_battler.armor1_id != 0 How can I do this in RMVXAce's RGSS3?
 

TheoAllen

Self-proclaimed jack of all trades
Veteran
Joined
Mar 16, 2012
Messages
6,052
Reaction score
7,141
First Language
Indonesian
Primarily Uses
RMVXA
Something like ... this?

Code:
BattleManager.actor
 

Milena

The woman of many questions
Veteran
Joined
Jan 26, 2014
Messages
1,281
Reaction score
106
First Language
Irish
Primarily Uses
N/A
Thanks. I have another similar question. I noticed that update_actor_command_selection in Scene_Battle from RGSS2 is taken away in RGSS3. Is there like a change or complimentary code for that? :o
 

nio kasgami

VampCat
Veteran
Joined
May 21, 2013
Messages
8,964
Reaction score
3,066
First Language
French
Primarily Uses
RMMV
well the method create for actor is this in the battle manager but I never play with this code so i am not sure 

def self.actor @actor_index >= 0 ? $game_party.members[@actor_index] : nil end
Code:
def self.next_command    begin      if !actor || !actor.next_command        @actor_index += 1        return false if @actor_index >= $game_party.members.size      end    end until actor.inputable?    return true  end
is now this for update command
 
Last edited by a moderator:

Milena

The woman of many questions
Veteran
Joined
Jan 26, 2014
Messages
1,281
Reaction score
106
First Language
Irish
Primarily Uses
N/A
If this is in the battle manager, there's a big problem. The thing I want for an update is that I would like to make a sound or play a sound if the active_battler has this or that... or is it possible in the BattleManager?
 

Evgenij

Veteran
Veteran
Joined
Aug 28, 2013
Messages
349
Reaction score
100
First Language
German
Primarily Uses
N/A
Why should it not be possible?
 

nio kasgami

VampCat
Veteran
Joined
May 21, 2013
Messages
8,964
Reaction score
3,066
First Language
French
Primarily Uses
RMMV
well yes it is pretty easy to do 

def self.play_soundRPG::SE.new("absorb1",100,100).playendbut I don't know the exact way for input it with the actor because battle script are not my forte
 

Milena

The woman of many questions
Veteran
Joined
Jan 26, 2014
Messages
1,281
Reaction score
106
First Language
Irish
Primarily Uses
N/A
Okay, I'll try all the solutions presented, thank you so much! :)

So wait, how can I access the armor id of the shield of the BattleManager.actor or the current actor?
 
Last edited by a moderator:

Latest Threads

Latest Profile Posts

Valentines Entry, first contest I'm in and it is so much fun to just participate!
Anatomy is really hard. I'm not an artist.
just destroyed hours of work again. i don't know why I bother.
World Map for the inside of my main character's head. Every spot is an area that either occupies his thoughts or staples of everyone's "headspace"

Forum statistics

Threads
109,003
Messages
1,041,186
Members
141,471
Latest member
Crazya
Top