Chaos Project

RPG Maker => RPG Maker Scripts => Script Requests => Topic started by: cyclope on July 23, 2010, 04:06:35 pm

Title: [XP]Parameters other than the default ones
Post by: cyclope on July 23, 2010, 04:06:35 pm
 :sos: I am ussing blizz abs 2.7 and I i was wondering if some one can help me with this:
How can i have more parameters than the default ones, parameters like archery, magic, mining, hunting and be able to lvl them up by doing different stuff(whene you ese a bow you get xp for archery, whene you use skills you lvl up at magic, whene you kill animals you lvl up at hunting, and so on..) and the lvl of the character is the average of all the parameters.
Title: Re: [XP]Parameters other than the default ones
Post by: G_G on July 23, 2010, 04:08:35 pm
easily evented, have a variable for each parameter.
Then have a parallel process in a common event.
if Input.trigger?(Input::Attack)
  if weapon == bow
    bow += 1
  end
end

I'm sure you get the jist of it. Its not completely efficient but it works.
Title: Re: [XP]Parameters other than the default ones
Post by: cyclope on July 23, 2010, 04:15:50 pm
that might work but
Quote from: cyclope on July 23, 2010, 04:06:35 pm
... and the lvl of the character is the average of all the parameters.

:...: how can i get that to work
Title: Re: [XP]Parameters other than the default ones
Post by: G_G on July 23, 2010, 06:54:01 pm
variable[1] + variable[2] + variable[3] + variable[4] / 4

Pretty much, add all the variables up into one, then divide by the number of parameters you have.
Then set actors level to 1. and change actor level, add by variable
Title: Re: [XP]Parameters other than the default ones
Post by: SBR* on July 24, 2010, 06:36:50 am
Quote from: game_guy on July 23, 2010, 06:54:01 pm
variable[1] + variable[2] + variable[3] + variable[4] / 4

Pretty much, add all the variables up into one, then divide by the number of parameters you have.
Then set actors level to 1. and change actor level, add by variable


Doesn't RMXP use math rules? e.g.
variable[1] + variable[2] + variable[3] + variable[4] / 4

You divide variable[4] by 4 and add variable[1], variable[2] and variable[3] to it?
Title: Re: [XP]Parameters other than the default ones
Post by: Blizzard on July 24, 2010, 06:46:01 am
It does. You'd need to use:

(variable[1] + variable[2] + variable[3] + variable[4]) / 4


BTW, the correct term is operator priority. :)
Title: Re: [XP]Parameters other than the default ones
Post by: SBR* on July 24, 2010, 08:59:47 am
Quote from: Blizzard on July 24, 2010, 06:46:01 am
It does. You'd need to use:

(variable[1] + variable[2] + variable[3] + variable[4]) / 4


BTW, the correct term is operator priority. :)


Yeah... I knew that...?
Title: Re: [XP]Parameters other than the default ones
Post by: G_G on July 24, 2010, 09:42:26 am
I meant just through event commands. 1 at a time.
[variable[5 : total] + var[1]]
[var[5] + var[2]] etc
Title: Re: [XP]Parameters other than the default ones
Post by: SBR* on July 24, 2010, 09:53:07 am
Quote from: game_guy on July 24, 2010, 09:42:26 am
I meant just through event commands. 1 at a time.
[variable[5 : total] + var[1]]
[var[5] + var[2]] etc


Ah, ok.