Unlocking the second floor of Spookyraven Manor: how?

Equestrian

New member
As the title says, I want to make a script that will unlock it for me; however, I did a search, and I'm just not sure how I would make Mafia do this.
 

Equestrian

New member
Wow, I'm stupid. Anyways, since I probably shouldn't make a separate thread for this, how would I read/write variables to, say, a separate .txt file? I'm making a script where I want it to change a few variables, and I want these variables to remain the same between uses.
 

Ethelred

Member
Sounds like a good use for the ash functions set_property and get_property. It's a good idea to use some kind of prefix for your property names so you don't collide with any mafia defined properties.
 

Paragon

Member
Another way to do it would be to put your variables into a map and use the ash function that puts a map into a file. then use the the function that reads a file into a map to get the variables back.
 
Top