Developer postOriginal post (opens in a new tab)

ADLENGINE v1.1.55.3b NOW LIVE - LETS GET DYNAMIC!

Another big update bringing some cool new functionality to #ADLENGINE that increases both the control you have over the engine and the environments you are creating.

-----------------------------

NEW %SPECIALS%:

-----------------------------

%specials% can be placed in any command or as part of any data and provide a means to LOOKUP data, when processed the engine checks against, vars, map data and more to return the current value of the special.

e.g.

[code[room description is You are standing in a cellar, a grill lies %grillstatus%

When the room description is rendered %grillstatus% will be swapped with a value you have set up in a variable for example as per below. This happens as it happens.

$grillstatus=open
grill.if opened $grillstatus=open
grill.if closed $grillstatus=closed
------------------------------------------------------------

NEW: Dynamic room name and description: allows you to add %specials% which are processed at rendering, reflecting changes as they happen.

NEW: adlengine will try to load images / sounds from a new game folder in users/username/adlengine/gamename - scripts will follow in a future update.

-------------------------

NEW VARIABLES:

To declare a local variable (accessed only in the same room):
$varname=something

To declare a global variable (accessed anywhere in the map):
#varname=something

To declare a private variable (useful for storing things to do with the player):
~varname=something

VARS against VARS
Vars can now be used to manipulate (divide,times,minus,plus,equals and append) each other in any combination; As follows:
$varname-anothervar

---------------------------

----------------------------------------------------------

NEW CUSTOMISE THEME COMMANDS:

----------------------------------------------------------

Currently You Have Access To The Following!
Text Exposed:

  • {text-main}
  • {text-loc}
  • {text-chat}
  • {text-debug}
  • {text-input}
  • {text-inputmarker}

Images Exposed:

  • {image-main}
  • {image-title}
  • {image-splash}
  • {image-inputbg}
  • {

Text Properties:

  • .x
  • .y
  • .font
  • .fontsize
  • .fontcolor.r
  • .fontcolor.g
  • .fontcolor.b
  • .visible

    Image Properties:

    • .x
    • .y
    • .width
    • .height
    • .image
    • .opacity
    • .visible

    To edit a theme element you would do the following:
    {text-main}.fontsize=32

    You can also create your own elements by:
    {text-name}.new
    {image-name}.new

    To delete a theme element:
    {text-name}.delete

    To show / hide a theme element:
    {text-name}.visible=1
    {text-name}.visible=0
    ---------------------------------------------

    -----------------------

    SOUND ENGINE:

    -----------------------
    You can now LOOP / STOP SOUNDS.

    To loop a sound:
    loop sound soundname

    To stop a sound:
    stop sound soundname
    ------------------------------------------------