Here's my code. When I run the game up to the point of the first menu coming up, it gives me the following error message:
"Line 61 in script
menu
TypeError: %c requires int or char"
I have no idea what this means!
I've tried everything and I don't know what is upsetting the game!
Help would be greatly appreciated thank you ^^
Code: Select all
init:
$ sy = Character("Sylvester", color="#CC0000", what_color="#CC0000")
$ l = Character("Laurence", color="#3399CC", what_color="#3399CC")
$ w = Character("Walter", color="#FFFFFF", what_color="#FFFFFF")
$ wi = Character("William", color="#0000ffff", what_color="#0000ffff")
$ m = Character("Marcel", color="#CC3399", what_color="CC3399")
define c = Character("Customer")
$ mys = Character("???")]
label start:
init:
$ lpsy = 0
$ lpl = 0
$ lpw = 0
$ lpwi = 0
$ lpwi = 0
$ lpm = 0
"Welcome to the game!"
"Quick tutorial:"
"Perfoming actions within my game will use time. Time is limited, of course, so try to use it well!"
"At work, You must deal with customers. This means memorising their orders. Usually this is a simple task, however there are exceptions."
scene alarm
show phone at top
m "{i} I'm late, judging by the boss' passive aggressive messages. {/i}"
m "{i} Ugh... Monday. It's gonna be busy today. {/i}"
"You reluctantly worm your way out of bed and get dressed."
m "{i} I better get going. {/i}"
scene cafe with fade
show clock8 at right
show monday at left
"You walk behind the counter and wait. It's early morning so you figure that it will get busy soon."
"As you are thinking this, a customer waltzes in. This man looks so pissed and you wonder if he's gonna what some complicated-ass coffee"
show acustomer
c "I WANT A COFFEE RIGHT NOW YOU SKINNY. SKIM MILK, PINCH OF SUGAR, A LOT OF FOAM AND MAKE SURE THE BEANS ARE ETHICALLY SOURCED."
m "{i} OH GOD. I have to remember this damn order… {/i}"
scene kitchen with fade
"You walk into the kitchen, walk up to the coffee machine and pick out a pack of beans."
m "What beans do you choose?"
menu:
"Mr Smith's 100% child labour beans":
$ beans = "unethical"
"You use Mr Smith's beans."
"You go up to the fridge and pick out a jug of milk"
$ unethical = True
menu:
"Choose skim milk":
"You use skim milk"
$ milk = skim
"You go to the sugar dish and add a pinch of sugar to the coffee."
$ skim = True
"Choose full cream milk":
"You use full cream milk"
$ milk = "full"
"You go to the sugar dish and add a pinch of sugar to the coffee."
$ full = True
"Nanna's ethical and epic beans":
$ beans = "ethical"
"You use Nanna's beans"
"You go up to the fridge and pick out a jug of milk"
$ ethical = True
menu:
"Choose skim milk":
"You use skim milk"
$ milk = "skim"
"You go to the sugar dish and add a pinch of sugar to the coffee."
$ skim = True
"Choose full cream milk":
"You use full cream milk"
$ milk = "full"
"You go to the sugar dish and add a pinch of sugar to the coffee."
$ full = True
if ethical == True:
scene cafe with dissolve
show coffee
show acustomer
c "WOW! THIS IS EXACTLY WHAT I NEEDED! THANK YOU LANKY MAN!"
"He seemed really pleased."
return
if unethical == True:
scene cafe with dissolve
show coffeebad
show customermad
c "YOU FRICKED UP MY COFFEE FOR THE LAST TIME YOU FILTHY PIECE OF UNETHICAL DIRTY SCUM!"
"The customer lunges at you at lightspeed, he leaps as agile as a cat and lands on top of you like an elephant, crushing you instantly."
m "{i} I'm dead. {i}"
scene wasted
"Rip"
return
Thanks a lot <3