Manual:DIL Manual/SFB DONE
Jump to navigation
Jump to search
SFB_DONE 'Command has now been executed' message
When this flag is set, the program gets activated by all successful commands issued by PC's or NPC's. The 'activator', 'medium' and 'target' special values are used as follows:
'activator'... The PC / NPC which executed the command 'medium'...... The unit which is operated upon. 'target'...... The target of the operation.
For example, assume the player John gives a garlic to Mary the Lumberjack wife. The following values are set:
activator == John (unitptr) medium == Mushroom (unitptr) target == Mary (unitptr)
command(CMD_GIVE) will evaluate to true.
You thus know that Mary has in fact received the mushroom. It is NOT possible to block (using the 'block' command) these commands since they have already been executed at the time of notification. In a 'get' command, medium would be a unitptr to where the unit was taken from, and target would be the object which was taken.
See the file commands.txt for a description of how the arguments are set for each command. If you can not find a command in there, just ask to get it implemented. Especially you should pay attention to the non-obvious SFB_DONE command(CMD_AUTO_ENTER).
---~---~---~---~---~---~---~---~---