[XP]Parameters other than the default ones

Started by cyclope, July 23, 2010, 04:06:35 pm

Previous topic - Next topic

cyclope

 :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.
Things I Hate

1. People who point at their wrist asking for the time... I know where my watch is pal, where the hell is yours? Do I point at my crotch when I ask where the toilet is?

2. People who are willing to get off their a** to search the entire room for the TV remote because they refuse to walk to the TV and change the channel manually.

3. When people say "Oh you just want to have your cake and eat it too". Damn Right! What good is cake if you can't eat it?

4. When people say "it's always the last place you look". Of course it is. Why the hell would you keep looking after you've found it? Do people do this? Who and where are they?

5. When people say while watching a film, "did ya see that?" No Loser, I paid $12 to come to the cinema and stare at the damn floor!

6. People who ask "Can I ask you a question?"... Didn't give me a choice there, did ya sunshine?

G_G

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.

cyclope

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
Things I Hate

1. People who point at their wrist asking for the time... I know where my watch is pal, where the hell is yours? Do I point at my crotch when I ask where the toilet is?

2. People who are willing to get off their a** to search the entire room for the TV remote because they refuse to walk to the TV and change the channel manually.

3. When people say "Oh you just want to have your cake and eat it too". Damn Right! What good is cake if you can't eat it?

4. When people say "it's always the last place you look". Of course it is. Why the hell would you keep looking after you've found it? Do people do this? Who and where are they?

5. When people say while watching a film, "did ya see that?" No Loser, I paid $12 to come to the cinema and stare at the damn floor!

6. People who ask "Can I ask you a question?"... Didn't give me a choice there, did ya sunshine?

G_G

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

SBR*

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?

Blizzard

It does. You'd need to use:

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


BTW, the correct term is operator priority. :)
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

SBR*

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...?

G_G

I meant just through event commands. 1 at a time.
[variable[5 : total] + var[1]]
[var[5] + var[2]] etc

SBR*

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.