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.

Passing arguments from in game script

================================SOLVED SOLVED========================
Too avoid being a spammer I'm going to not ask more questions again till tomorrow.
================================SOLVED SOLVED========================
$game_actors[ii%].upgrade_points += kk%
$scene = Scene_Upgrade.new

Whereas ii% is the actors id base 1
Whereas kk% is the number of Points to be Given
Synthesize are the Whips the Lamas ....Thanks man
================================SOLVED SOLVED========================
================================SOLVED SOLVED========================



I want to call up Synthesizes' ability point script in game and pass along an argument that provides a few free ability points....
How does one pass an argument to a class?

@upgrade_points += Upgrade_Points::Points_Gained
$scene = Scene_Upgrade.new

Would become

P_Given = 30
$scene = Scene_Upgrade.new(Points_given)

Generates Undefined Method for etc...

=Just want to call it up, tell it to give a bunch o points...
 

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