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.

Skill Shop points increase with variable

Okay so i need to know how to make seph's skill shop get points according to a variable, such as 16.
I am using this command:
$game_actors[1].skill_shop_points +=
I need it so you increase points to variable 16. How would i use this in a script?
I want to put it in this part of the XAS ABS script:
Code:
class Game_Event < Game_Character
  def enemy_defeat_process(enemy)
    last_level = $game_player.battler.level
    $game_party.gain_exp(enemy.exp)
    $game_party.gain_gold(enemy.gold)
    if last_level < $game_player.battler.level
      $game_system.me_play(XAS_BA::LEVEL_UP_ME)
      $game_player.battler.damage = "Level up!"
      $game_player.battler.damage_pop = true
      $game_player.need_refresh = true
      $actors_points[0]+= 5
      $actors_points[0]+= $game_variable_15 # as you can see i made attempts (this is a stat point gaining script)
      $game_actors[1].skill_shop_points += 2
      $game_actors[1].skill_shop_points += $game_variable_16 # as you can see i made attempts
      $scene = Scene_Stats_Upgrade.new
    end
    id = XAS_BA::DEFEAT_NUMBER_ID
    $game_variables[id] += 1 if id != 0
    switch_id = XAS_BA_ENEMY::DEFEAT_SWITCH_IDS[self.enemy_id]
    if switch_id != nil
      $game_switches[switch_id] = true
      $game_map.refresh 
    end
  end
end
 

khmp

Sponsor

You mean the value at index 16 in the $game_variables? If so it's as simple as:
Code:
$game_actors[1].skill_shop_points += $game_variables[16]

Good luck with it Bullet_Darkness! :thumb:

If you have any other questions don't hesitate to ask.
 

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