Updating Money Status Attribute

Hello! I am a sociology professor who is trying to take a game I'd normally play using paper and make it virtual since I've been moved online due to the pandemic. It is a poverty and intersectionality simulation called "The Game of Social Life" by Kosha D. Bramesfeld. Students must strategize in order to get their character through stages of life.

In class, each person would get a character with a race, class, sex, sexuality, and socioeconomic status. There are 64 character options, but I am trying to start small and just aim for three so that I can figure out what I'm doing! I should note that I'm utilizing the web version because I'm using a Mac.

This is what I've done so far:
The student starts out in the room and the objects - money, wellness points, experience points, etc. - are explained. They enter their name and, in the process, are given a player number (1, 2, or 3 for now) at random. Once the player number is assigned, the game POV switches to that character and the student is given a certain amount of money credits as well as informed about their character's race, sex, sexuality, ability to vote, etc. I want the students to be able to see the information specific to them, so I set up a status attributes pane.

This is my game's start script:

msg ("Welcome to the Game of Social Life! ")
msg ("What is your name?")
get input {
player.alias = result
msg ("Hi, {player.alias}.")
msg ("This is your player number:")
player.number = GetRandomInt(1,3)
msg (player.number)
if (player.number=1) {
ChangePOV (one)
msg ("You are playing as a heterosexual man. Your family was originally from China, but are now naturalized citizens. You have a strong social support system. You can vote. You are part of the M and Q social groups.")
set (one, "money", 10)
set (one, "Bonus", 2)
}
else if (player.number=2) {
ChangePOV (two)
msg ("You are playing the game as a gay man. You are White (of European descent) and your family members are citizens by birth. You have a weak social support system. You can vote. You are part of the P social group.")
set (two, "money", 80)
set (two, "Bonus", 6)
}
else if (player.number=3) {
ChangePOV (three)
msg ("You are playing as a heterosexual woman. You are a recent immigrant from Iran who is not yet a citizen. English is not spoken in your home. You have a strong social support system. You cannot vote. You are part of the N, Q and S social groups.")
set (three, "money", 40)
set (three, "Bonus", 0)
}
msg ("The first thing you need to do is find a place to live. Press the down (South) arrow on the compass to the right to start!")
set (one, "statusattributes", NewStringDictionary())
dictionary add (one.statusattributes, "vote", "Vote: Yes")
dictionary add (one.statusattributes, "social groups", "Social Groups: M Q")
set (two, "statusattributes", NewStringDictionary())
dictionary add (two.statusattributes, "vote", "Vote: Yes")
dictionary add (two.statusattributes, "social groups", "Social Groups: P")
set (three, "statusattributes", NewStringDictionary())
dictionary add (three.statusattributes, "vote", "Vote: No")
dictionary add (three.statusattributes, "social groups", "Social Groups: N Q S")
}


I am satisfied that I am getting 1 of 3 characters assigned and that the information about the character's money, bonuses, vote, and social groups are all evident in the status attribute pane.

In the next room they choose which neighborhood they'd like to live in. I've attempted to set this up like a shop (following the directions here https://docs.textadventures.co.uk/quest/shop.html, and if I "Buy neighborhood A," it does say that the requisite of money credit was used and will not allow me to buy the neighborhood if the character doesn't have enough credits. BUT the status attribute pane is not updated.

I'm not sure what I need to do to make sure that the status attribute pane is updated. I do have the box checked for money (though I put ! credits as the value) under the player tab.

Any help would be very much appreciated. I very much wish I was in the classroom!


Log in to post a reply.

Support

Forums