Let's make our description dynamic reflecting the changes to the grill as it happens.
room description is Before you towers a solid gate of steel, beneath and to the side a grill lies %grillstatus%
We need to make grillstatus a variable. Let's make it a local.
lgrillstatus=closed
We also need to update our status variable.
grill.if opened lgrillstatus=open
grill.if closed lgrillstatus=closed
Now when you open / close the grill it will be reflected in the description as the special commands for the room name & description remain and only get processed when they are rendered.
This will also be live in the next update... coming shortly!
Let's make our description dynamic reflecting the changes to the grill as it happens.
room description is Before you towers a solid gate of steel, beneath and to the side a grill lies %grillstatus%
We need to make grillstatus a variable. Let's make it a local.
lgrillstatus=closed
We also need to update our status variable.
grill.if opened lgrillstatus=open
grill.if closed lgrillstatus=closed
Now when you open / close the grill it will be reflected in the description as the special commands for the room name & description remain and only get processed when they are rendered.
This will also be live in the next update... coming shortly!
when constructing commands you will soon be able to use surrounding %%'s to have the command lookup special values. You can use any number of them in a command and it will replace all before processing the command.
for example we could set up a variable:
gvar=hello
in our command we can then do the following:
build %var%
using the %s looks up the value against all the special properties including but not limited to:
local vars
global vars
private vars
random (value randomly rolled)
chosen (value randomly picked from the choice command)
You could also assign a var to player.var or target.var and then use this as a special.
Another use could be to assign special values as part of a description. For example.
lgrillstatus=closed
grill.if opened lgrillstatus=open
grill.if closed lgrillstatus=closed
You are standing in a dungeon, a grill in the floor lies %grillstatus%
I am sure we will all be able to use this to great effect.
when constructing commands you will soon be able to use surrounding %%'s to have the command lookup special values. You can use any number of them in a command and it will replace all before processing the command.
for example we could set up a variable:
gvar=hello
in our command we can then do the following:
build %var%
using the %s looks up the value against all the special properties including but not limited to:
local vars
global vars
private vars
random (value randomly rolled)
chosen (value randomly picked from the choice command)
You could also assign a var to player.var or target.var and then use this as a special.
Another use could be to assign special values as part of a description. For example.
lgrillstatus=closed
grill.if opened lgrillstatus=open
grill.if closed lgrillstatus=closed
You are standing in a dungeon, a grill in the floor lies %grillstatus%
I am sure we will all be able to use this to great effect.
Just be aware that it also currently doesn't prevent you from creating duplicate variable names across each scope so its a good idea to use unique vars until I can address this issue at a later date.
Just be aware that it also currently doesn't prevent you from creating duplicate variable names across each scope so its a good idea to use unique vars until I can address this issue at a later date.