Jump to content
Rpg²S Forum

*Sistema EXP come in FF VIII


leo
 Share

Recommended Posts

Dato che ne avevo bisogno ho creato, anche con aiuti esterni, anzi ringrazio Valentino per il suo contributo, un sistema per far sì che i personaggi salgano di livello ogni 1000 exp come in FF VIII. Per far questo dovete fare due semplici modifiche:

Aprite gli script e andate in Game_Actor e cercate questo paragrafo:


def make_exp_list
actor = $data_actors[@actor_id]
@exp_list[1] = 0
pow_i = 2.4 + actor.exp_inflation / 100.0
for i in 2..100
if i > actor.final_level
@exp_list[i] = 0
else
n = actor.exp_basis * ((i + 3) ** pow_i) / (5 ** pow_i)
@exp_list[i] = @exp_list[i-1] + Integer(n)
end
end
end

 

 


e sostituitelo con questo:


def make_exp_list
actor = $data_actors[@actor_id]
@exp_list[1] = 0
pow_i = 0
for i in 2..100
if i > actor.final_level
@exp_list[i] = 0
else
@exp_list[i] = 1000
end
end
end

 




Ora andate più in giù, cercate la riga


while @exp >= @exp_list[@level+1] and @exp_list[@level+1] > 0

 

 



e sostituitela con


while @exp >= 1000

 

 




Quindi andate in Window_Base e cercate la riga


self.contents.draw_text(x + 136, y, 84, 32, actor.next_exp_s)

 

 


e sostituitela con


self.contents.draw_text(x + 136, y, 84, 32, actor.next_rest_exp_s)

 




Così facendo, i personaggi saliranno di livello ogni 1000 exp e nelle varie finestre come quella di status vi saranno mostrati gli exp ottenuti in questo livello e quelli necessari per il prossimo livello.

Edited by Apo
applicato tag code
Link to comment
Share on other sites

  • 1 year later...

Nessuno ti ha commentato, ma per me questo script è veramente stupendo :D e anche utile perchè a mio parere è meglio un avanzamento di livello alla final fantasy che è gestibile meglio rispetto al modo strutturato da rpg xp!

Grazie leo

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...