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.

Script: Skill Shop

Thanks Trickster. Here's the Setup Section.
module Skill_Shop_Setup
# Skill Sorting put a ! if you want to negate
# for example power will sort the skills with respect to their power
# from least to greatest, but !power will sort from greatest to least
# add more elements for multilevel sorts.
Skill_Sort = 'power', 'sp_cost'

# Cost in Gold for the Skill. Syntax: {skill_id => gold_cost}
Gold_Cost = {
1 => 100, 7 => 500, 8 => 4000, 28 => 5000, 31 => 700, 58 => 1000,
59 => 8000, 60 => 6400}
# Default Gold Cost
Gold_Cost.default = 0

# Exp Cost for the skill. Syntax: {skill_id => exp_cost}
Exp_Cost = {
1 => 10, 7 => 50, 8 => 400, 28 => 500, 31 => 70, 58 => 100, 29 => 800,
60 => 6400}
# Default Exp Cost
Exp_Cost.default = 0

# Skill Exp Requirement. Syntax: {skill_id => exp needed}
Exp_Req = {
1 => 10, 7 => 50, 8 => 400, 28 => 500, 31 => 70, 58 => 100, 29 => 800,
60 => 6400}
# Exp Requirement Default
Exp_Req.default = 0

# Skill Class Requirement. Syntax: {skill_id => [class_ids]}
Class = {
1 => 'all', 7 => [1,2,8], 8 => 8, 28 => [7,8], 58 => [7,2,1], 59 => [1,2],
60 => 1}
# Class Default (All Classes)
Class.default = 'all'

# Skill Learn Requirement. Syntax {skill_id => [skill_ids]}
Skill = {
}
# Default Skill Learn
Skill.default = []

# Skill Level Requirement. Syntax: {skill_id => level}
Level = {
1 => 1, 7 => 1, 8 => 2, 28 => 2, 31 => 3, 59 => 4, 60 => 4}
# Level Default
Level.default = 1

#Command Names
Commands = 'Buy', 'Exit'
end
 

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