I’m going to make another general code help thread so I don’t end up with a bunch of topics. I’ll just drop questions in here for awhile. I’m running into issues with append on a list. I have a list called flags = [] on a Person Actor. I’m trying to append to it when I enter the room, but it’s not appending. I’ve set break points, but never get the value.
if(heroMom.flags.indexOf('first intro') == nil)
{
clearScreen();
"<q>There you are, <<me.name>>.</q> <<me.name>><<me.charPossessive>> mother says, her eyes catching his. \n\b";
inputManager.pauseForMore(true);
"She paces a few steps.\n\b";
inputManager.pauseForMore(true);
"<q>How could you sleep so long?</q> She asks. <q>Adryx's retirement is this evening.</q>\n\b";
inputManager.pauseForMore(true);
"<q>Oh no...</q> <<me.name>> says. <q>I almost forgot.</q>\n\b";
inputManager.pauseForMore(true);
"<q>You did forget, silly.</q> She sighs, her worried look washes away. <q>No worries, I have plenty of time to finish
the flowers. We have a beautiful group of girls to pass out leis.</q> Her brow sharpens
<q>Can you get me some Lyrsa flowers from the forest?</q>\n\b";
inputManager.pauseForMore(true);
"<q>I only need a few, and then Sarah wants to see you. She left a note.</q> She cracks into a smile, <q>She's such a cute friend.
But the flowers first, okay?</q>\n\b";
inputManager.pauseForMore(true);
"<q>Alright.</q> <<me.name>> replies.\n\b";
inputManager.pauseForMore(true);
clearScreen();
womanSweeping.location = [heroMom];
heroMom.curState = womanSweeping;
heroMom.flags.append('first intro'); // Append here is not working
}
}