Manual:DIL Manual/gamestate()
Jump to navigation
Jump to search
Function: gamestate( u : unitptr, gs : integer ); Change the gamestate of a unitptr, uses the GS_ defines from the vme.h. This is used on the log on menu of the VME 2.0 release. Which is shown here as an example but it can also be used in a command. When used it removes the char from playing so be aware that players could use this to hide if you run a player killing style mud. Example: ---~---~---~---~---~---~---~---~---
dilbegin informer(); var tgt : unitptr; code
dilend
dilbegin aware on_connect();
external
informer();
login_modify(tgt : unitptr);
var
wizlvl : integer;
i:integer;
err : integer;
motd : string;
welcome : string;
goodbye : string;
code
dilend
---~---~---~---~---~---~---~---~---
Look in vme.h for the possible values you can send to the menu function.
---~---~---~---~---~---~---~---~---
Function: gamestate( u : unitptr, gs : integer ); Change the gamestate of a unitptr, uses the GS_ defines from the vme.h. This is used on the log on menu of the VME 2.0 release. Which is shown here as an example but it can also be used in a command. When used it removes the char from playing so be aware that players could use this to hide if you run a player killing style mud. Example: ---~---~---~---~---~---~---~---~---
dilbegin informer(); var tgt : unitptr; code
dilend
dilbegin aware on_connect();
external
informer();
login_modify(tgt : unitptr);
var
wizlvl : integer;
i:integer;
err : integer;
motd : string;
welcome : string;
goodbye : string;
code
dilend
---~---~---~---~---~---~---~---~---
Look in vme.h for the possible values you can send to the menu function.
---~---~---~---~---~---~---~---~---