Help
Pieonix
22 Jan 2019, 01:34I need help with a command that I want it to move the player to the next room but not specifically one room so I can use it multiple times... or atleast how I can rename a command so like have command north2 but have it show up as North

Io
22 Jan 2019, 02:04This is where Attributes and Variables come in! There's many, many different ways to do this. Here is how I would:
- Create Player.NextRoom, set as an Object type variable. This, basically, stores the data of where you want that command to move the player to.
- When applicable, change what room Player.NextRoom is, whenever you want to change where the command will bring you.
- Under your command, and pardon my psuedocode, change the 'move the player' from:
Move object:Player to object:WhateverRoom
to:
Move object:Player to expression:Player.NextRoom
This will make the game check what it wants to move - Player - and where it wants to move it to - whatever you assigned Player.NextRoom to be. If you want special dialogue - "You walk to the dungeon and wrinkle your nose at the smell" vs "You walk to the kitchen and smile at the smell of baked goods" - you can use If-Then-Else:
if Player.NextRoom=Dungeon, print "It stinks in here"
etc
etc
Hope this helps!