ACTOR ID SCRIPTING HELP

Posts

Pages: 1
Adon237
if i had an allowance, i would give it to rmn
1743
I am modifying something Shintashi from RMRK posted, and I need help.

Here are the two SNIPPETS:

class Game_Actor < Game_Battler

def setup(actor_id)
@sexp = 0
end

#--------------------------------------------------------------------------
# * Calculate SEXP
#--------------------------------------------------------------------------
def sexp=(sexp)
@sexp = [[sexp, 9999999].min, 0].max
end

end




class Scene_Battle

def start_phase5
...
# Initialize EXP, amount of gold, and treasure
exp = 0
mexp = 0

...
exp += Integer(0.50 * enemy.exp)
mexp += Integer(0.50 * enemy.exp)
...

# Obtaining EXP
for i in 0...$game_party.actors.size
actor = $game_party.actors[i]
if actor.cant_get_exp? == false
last_level = actor.level
actor.exp += exp
actor.mexp += sexp
end

end

I am creating a script which will give specific actors skills based on how much sexp they have. (sexp = Skill Experience).

My question is, how do you 'say' something like this.
'IF actor 1 has 200 sexp, then give them this skill'
And so forth.
Pages: 1