Difference between revisions of "Manual:DIL Manual/SFB CMD"
Jump to navigation
Jump to search
(XML import) |
(XML import) |
||
| Line 1: | Line 1: | ||
| + | <span id="sfbcmd"></span> | ||
| + | SFB_CMD Command message | ||
| + | When this flag is set, the program gets activated by all commands (legal | ||
| + | or illegal) issued by PC's or NPC's. Moving around is also considered a | ||
| + | command. | ||
| + | |||
| + | Assume a janitor executes the command ' | ||
| + | Ge all from corpse', | ||
| + | And Ge interprets to 'get' | ||
| + | |||
| + | then this will occur in the DIL program: | ||
| + | |||
| + | 'activator'... is a unitptr to the janitor. | ||
| + | 'cmdstr'...... is a string which contains 'get' | ||
| + | 'excmdstr'...... is a string which contains 'ge' | ||
| + | 'excmdstr_case'...... is a string which contains 'Ge' | ||
| + | 'argument'.... will contain 'all from corpse' | ||
| + | |||
| + | command(CMD_GET) will evaluate to TRUE. | ||
| + | |||
| + | |||
| + | ---~---~---~---~---~---~---~---~--- | ||
<span id="sfbcmd"></span> | <span id="sfbcmd"></span> | ||
Latest revision as of 22:33, 4 December 2025
SFB_CMD Command message
When this flag is set, the program gets activated by all commands (legal or illegal) issued by PC's or NPC's. Moving around is also considered a command.
Assume a janitor executes the command ' Ge all from corpse', And Ge interprets to 'get'
then this will occur in the DIL program:
'activator'... is a unitptr to the janitor.
'cmdstr'...... is a string which contains 'get'
'excmdstr'...... is a string which contains 'ge'
'excmdstr_case'...... is a string which contains 'Ge'
'argument'.... will contain 'all from corpse'
command(CMD_GET) will evaluate to TRUE.
---~---~---~---~---~---~---~---~---
SFB_CMD Command message
When this flag is set, the program gets activated by all commands (legal or illegal) issued by PC's or NPC's. Moving around is also considered a command.
Assume a janitor executes the command ' Ge all from corpse', And Ge interprets to 'get'
then this will occur in the DIL program:
'activator'... is a unitptr to the janitor.
'cmdstr'...... is a string which contains 'get'
'excmdstr'...... is a string which contains 'ge'
'excmdstr_case'...... is a string which contains 'Ge'
'argument'.... will contain 'all from corpse'
command(CMD_GET) will evaluate to TRUE.
---~---~---~---~---~---~---~---~---