Difference between revisions of "Manual:DIL Manual/gamestate()"
Jump to navigation
Jump to search
(XML import) |
(XML import) |
||
| Line 1: | Line 1: | ||
| − | |||
| − | |||
<span id="bpgamestate"></span> | <span id="bpgamestate"></span> | ||
| Line 17: | Line 15: | ||
tgt : unitptr; | tgt : unitptr; | ||
code | code | ||
| − | + | dilend | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
dilbegin aware on_connect(); | dilbegin aware on_connect(); | ||
| Line 56: | Line 30: | ||
goodbye : string; | goodbye : string; | ||
code | code | ||
| − | + | dilend | |
| − | |||
| − | + | ---~---~---~---~---~---~---~---~--- | |
| − | |||
| − | + | </i><!--ENDCODE--> | |
| + | Look in '''vme.h''' for the possible values you can send to the menu | ||
| + | function. | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | + | ---~---~---~---~---~---~---~---~--- | |
| + | <span id="bpgamestate"></span> | ||
| − | + | '''Function: '''<i><!--CODE--> gamestate( u : unitptr, gs : integer ); </i><!--ENDCODE--> | |
| − | if | + | 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:''' | ||
| + | <i><!--CODE--> | ||
| + | ---~---~---~---~---~---~---~---~--- | ||
| − | + | 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 | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
---~---~---~---~---~---~---~---~--- | ---~---~---~---~---~---~---~---~--- | ||
Latest revision as of 22:39, 4 December 2025
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.
---~---~---~---~---~---~---~---~---