Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

ability points

i want ability points....maybe this is the topic to post in.

...i think it goes without saying what i'm after.....

but if you need an explanation i'll try.
 
You should post this in "Scripts Requests" at "RGSS Submitted Scripts".

There are lots of AP Systems, there are the FFIX, FFV or even ragnarok like AP system(although its not called AP but follows the same rule).
Tell us what system you are looking for, but be sure of it not being in the forum, to make sure, use the search engine(if you didn't before).
 
i tried the search thing...but i rarely and [no surprise] this time couldn't find what i wanted...

anyway, ok. well basically...i just want the...

ability points...
ability points to next level...
ability levels.....

etc... u know? just the basic ap set up.

i know im asking for something really easy....but i can't script....so.....

i guess after that...i'd need more help...... :(

i just really think the way i tried to make it was wrong....and yeah i got quite a few errors...here ill show u how i tried to go about making it yesterday.


#current amount of ability points
$ability_points=0
#current ability level
@ability_level=1
#math...
@next_ability_level= 100 * @ability_level

if $ability_points > @next_ability_level
@ability_level + 1
end

if @ability_level == 5
print(you have ability level 5)
end

if @ability_level == 10
print(you have ability level 10)
end


and the errors come when i ...ya know add ability points....
$ability_points+1
end

thats the script i use it gives a syntax error.

when i use a larger amount like 88....
$ability_points+88
end

i get the error...

no method error occurred while running script. undefined method '+' for nil nil:Nilclass
 
asan;166903 said:
and the errors come when i ...ya know add ability points....
$ability_points+1
end

thats the script i use it gives a syntax error.

when i use a larger amount like 88....
$ability_points+88
end

i get the error...

no method error occurred while running script. undefined method '+' for nil nil:Nilclass

To perform operations on a variable you need to use (op)= were op is + - * / etc. Operation signs are only used by themselves when adding multiple values together. ex. @variable = @number + 1. See "Help - RGSS Reference Manual - Ruby Syntax - Operator Expressions" for more details.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top