I am trying to enable stats whereby someone can make some choices on increasing their luck, stamina and health at the start of the game
I have defined these in the startup file and as text in the stats file. Through searching I found the following code from an earlier post in the forum that I think I can adapt
My question is, where do I add the following code? Is it to the top of the first scene (which will bugger up all my indenting), do I create a new scene called choose your stats?
*label init
*set ap 20
*set str 8
*set health 8
*set smarts 8
*set leadership 8
*temp top_limit
*set top_limit 10
*label choose_stats
You have ${ap} AP left to spend to increase your stats. Which stat do you want to increase?
*choice
*hide_reuse #Strength
How many AP will you spend to increase Strength? (1 - ${top_limit})
*input_number stat1 1 top_limit
*set str +stat1
*goto adjust_ap
*hide_reuse #Health
How many AP will you spend to increase Health? (1 - ${top_limit})
*input_number stat1 1 top_limit
*set health +stat1
*goto adjust_ap
*hide_reuse #Smarts
How many AP will you spend to increase Smarts? (1 - ${top_limit})
*input_number stat1 1 top_limit
*set smarts +stat1
*goto adjust_ap
*hide_reuse #Leadership
How many AP will you spend to increase Leadership? (1 - ${top_limit})
*input_number stat1 1 top_limit
*set leadership +stat1
*goto adjust_ap
#I'm finished spending AP
*goto done
#Reset stats and AP
*goto init
*label adjust_ap
*set ap -stat1
*if ap < 1
*goto done
*if ap < 10
*set top_limit ap
*goto choose_stats
*label done
*set maxstr str
*set maxhealth health
*set maxsmarts smarts
*set maxleadership leadership