So I am making an autoshop, and I am trying to have the character, be able to work there for money, but if he has more auto knowledge he gets to work a better job, at the shop
This is how i tried to implement it
Code: Select all
label autojob:
if auto_point < 20:
"sorry kid you need more automotive knowledge"
jump autoshop
elif auto_point>20 and auto_point<40:
"yeah kid go and sweep up in the back"
"you sweep the floors around the shop"
$ money_point+=7
$ energy_point-=10
$ energy_point+=1
jump autoshop
elif auto_point>40 and auto_point<60
"yeah kid we need help out on the front register"
$ money_point+=10
$ energy_point-=10
$ energy_point+=1
jump autoshop
Code: Select all
I'm sorry, but errors were detected in your script. Please correct the
errors listed below, and try again.
File "game/script.rpy", line 682: if statement expects a non-empty block.
if auto_point < 20:
^
File "game/script.rpy", line 686: expected statement.
elif auto_point>20 and auto_point<40:
^
File "game/script.rpy", line 694: expected statement.
elif auto_point>40 and auto_point<60
also i want to be able to but auto parts from the autoshop to as in
buy sport muffler 200$ (+10hp)
buy preformance muffler 300$(15hp)
i want it to where you can only buy one thought
i know this will be complecated but i think it will be a cool game if i get it to work
Code: Select all
label autostore
"what do you want"
menu:
"mufflers":
jump mufflers
label muffler
menu:
"sport 200$"
if money_point>199
$ money_point-=200
$ hp_point+= 10
jump autoshop
"preformance 300$"
if money_point>299
$ money_point-=300
$ hp_point+= 15
jump autoshop