I want to limit the number of turns my player can take in a room. If he reaches a certain amount of turns, i want him to move to another room.
So for my code looks like this: (I have set the number of turns to 1 to test it.
set (player, "statusattributes", NewStringDictionary())
dictionary add (player.statusattributes, "turns", "")
set (player, "turns", 0)
player.turns = player.turns + 1
if (player.turns = 1) {MoveObject (player, Klinisch onderzoek)}
However, he does not move to another room. Can someone point me out where i went wrong?
Note, It is my first game, i don't know anything about coding.
Where have you put this script? In the room's on-enter script? In a turnscript?