Manual:DIL Manual/gamestate()

From DikuMUD Wiki
< Manual:DIL Manual
Revision as of 22:39, 4 December 2025 by Nove (talk | contribs) (XML import)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.


---~---~---~---~---~---~---~---~---