I'm having trouble implementing points to menu choices and then using the if statements to decide which point actions are applied.
Alright, so the game starts out with the points all being at 0.
Code: Select all
label start:
$ Aggpoints = 0
$ Nuepoints = 0
$ Paspoints = 0
Code: Select all
menu:
"Growl at the man":
"{i}Fuji growled viciously at the man{/i}"
$ Nuepoints = +3
show Fuji at left
play sound "growl.wav"
"{i}The man took a step back.{/i}"
hide Human
show Human at right
"{i}He considered,{w} and then grabbed Fuji by the scruff of her neck.{/i}"
play sound "whine.wav"
show Fuji at left with vpunch
play sound "yelp.wav"
fctc "...!!!"
show Don at right
dctc "Fuji! What did you do?"
jump violent
"Bite him!":
$ Aggpoints = +3
"{i}Fuji lunged at the man, fangs bared! {w} She was about to latch her jaws around his arm when{p}{/i}"
show Fuji at left with fade
play sound "growl.wav"
show Don at right with hpunch
"{i}Don pushed Fuji down!{/i}"
dctc "Calm down! Act nice!"
jump down
"Ignore him, it isn't that big of a deal.":
$ Paspoints = +3
jump norm
Code: Select all
menu:
"Aim for Riki's neck.":
$ Aggpoints = +2
jump more
"Duck his attack.":
$ Nuepoints = +2
jump more
"Let him bite, he can't be that strong.":
$ Paspoints = +1
jump more
label more:
if Aggpoints == 4
fctc fijdhiuh
else: Nuepoints == 4
fctc idshfisf
else: Paspoints == 3
"Dead"