- Jul 20, 2018
- 724
- 1,184
Ok so I have this code that works:
which refers to this code:
But if I call the screen below before calling the code above I get a "String indices must be integers" error on the code above. I am stumped as to why.
Python:
menu (nvl=True):
"Stressed":
$ adder([('PC','emotional stability',-200)])
"Routine":
$ adder([('PC','openness',-200)])
Python:
def adder(list):
for i in list:
if i[0] == 'PC':
PCstats[i[1]] += i[2]
else:
NPCstats[i[0]][i[1]] += i[2]
Python:
screen characterselection():
imagemap:
idle "WD90D1 gamestart PCunselected"
hover "WD90D1 gamestart PCselected"
hotspot (0, 0, 960, 1080):
action SetVariable("PCstats","F"), Jump("actual_test")
hotspot (960, 0, 960, 1080):
action SetVariable("PCstats","M"), Jump("actual_test")
text "Choose who you want to play as":
align (0.5, 0.85)
You don't have permission to view the spoiler content.
Log in or register now.