Here is an example of what I want to do:
Code: Select all
define c= Character("Character")
#Let's suppose that my character have different statistics, and based on that, I want certain options appear.
define strength= 3
menu:
"What should I do?"
#I want this option to show the percent of success that i can have in base of my strength.
"Beat him":
jump beatHim
"Let him leave":
jump letHimLeave
"Give him my money":
jump giveMoney
label beatHim:
"You beat his ass"
jump after
label letHimLeave:
p "Leave, I don't want to see your face again."
jump after
label giveMoney:
p "Take my money, please don't hurt me!."
jump after
label after:
"You keep your path."
return
How can I do something like that? I suppose that it is possible, but I don't know where should put the calculations and how to show the percentage on the menu. Hope someone can help me, and sorry if you don't understand me or if this is posted somewhere else! Thanks!