Stat Upgrade Secuence Like Zombie Exodus Safe Haven

Hi,

Im currently working in my first game.

My plan is to make the startup a crate your character part,

I was wondering how can i make a choice in which when you cant repeat a choice and every choice adds less than the previuos one

i know the hide reuse to hide the choice, but im lost with the decreasing values

Really messy code, but eh.

In startup:

*create marksmanship 0
*create swordsmanship 0
*create leadership 0
*create training_condition 0
*label training
*choice 
 *hide_reuse #Train marksmanship.
  *set training_condition +1
  *if training_condition = 0
   *set marskmanship +20
   TEXT.
   *goto time_check
  *if training_condition > 1
   *set  marskmanship +10
   TEXT.
   *goto time_check
 *hide_reuse #Train swordsmanship.
  *set training_condition +1
  *if training_condition = 0
   *set swordsmanship +20
   TEXT.
   *goto time_check
  *if training_condition > 1
    *set swordsmanship +10
    TEXT.
    *goto time_check
 *hide_reuse #Train leadership. 
  *set training_condition +1
  *if training_condition = 0
   *set leadership +20
   TEXT.
   *goto time_check
  *if training_condition > 1
   *set  leadership +10
   TEXT.
   *goto time_check
*label time_check
*if training_condition = 3
 *goto training_end
*else
 *goto training
4 Likes

Thanks, it worked :grin:

1 Like

Do you think it would be possible to use your training condition variable with a math operation instead of the “if”-construction? Could be much shorter this way?

I was pretty tired and this is a messy code, so this can be modified to be more efficient for sure.

2 Likes