Generic Roleplay — Gaem Script Portable
elif user_input.startswith("/ooc "): message = user_input[5:] return f"(OOC) player.name: message"
elif msg.startswith("/go "): direction = msg[4:] room = self.rooms[p["room"]] if direction in room["exits"]: p["room"] = room["exits"][direction] return f"You go direction.\n" + self.process(name, "/look") else: return "You cannot go that way." generic roleplay gaem script
> `go to shop` You buy healing potions.
By running three generic scripts simultaneously, you create a specific, memorable session. elif user_input