Difference between revisions of "Manual:DIL Manual/stop fighting()"
Jump to navigation
Jump to search
(XML import) |
(XML import) |
||
| Line 1: | Line 1: | ||
| + | <span id="bpstopfighting"></span> | ||
| + | '''Function:''' <i><!--CODE-->stop_fighting( ch: unitptr, vict : unitptr ) ;</i><!--ENDCODE--> | ||
| + | <!--TERM--> '''ch''' | ||
| + | <!--DEFINITION--> unitptr - person you are stoping the fighting for | ||
| + | <!--TERM--> '''vict''' | ||
| + | <!--DEFINITION--> unitptr - person you are removing from the fighting or null for everyone | ||
| + | |||
| + | This function can be used to cancel combat in a room or with two people. | ||
| + | The following example copied to a player will stop any fight the player is in. | ||
| + | '''Example:''' | ||
| + | <i><!--CODE--> | ||
| + | ---~---~---~---~---~---~---~---~--- | ||
| + | |||
| + | dilbegin stop_combat(); | ||
| + | code | ||
| + | dilend | ||
| + | |||
| + | ---~---~---~---~---~---~---~---~--- | ||
| + | |||
| + | </i><!--ENDCODE--> | ||
| + | |||
| + | |||
| + | ---~---~---~---~---~---~---~---~--- | ||
<span id="bpstopfighting"></span> | <span id="bpstopfighting"></span> | ||
| Line 18: | Line 41: | ||
dilbegin stop_combat(); | dilbegin stop_combat(); | ||
code | code | ||
| − | + | dilend | |
| − | |||
| − | |||
| − | |||
| − | |||
---~---~---~---~---~---~---~---~--- | ---~---~---~---~---~---~---~---~--- | ||
Latest revision as of 22:37, 4 December 2025
Function: stop_fighting( ch: unitptr, vict : unitptr ) ;
ch
unitptr - person you are stoping the fighting for
vict
unitptr - person you are removing from the fighting or null for everyone
This function can be used to cancel combat in a room or with two people. The following example copied to a player will stop any fight the player is in. Example: ---~---~---~---~---~---~---~---~---
dilbegin stop_combat(); code
dilend
---~---~---~---~---~---~---~---~---
---~---~---~---~---~---~---~---~---
Function: stop_fighting( ch: unitptr, vict : unitptr ) ;
ch
unitptr - person you are stoping the fighting for
vict
unitptr - person you are removing from the fighting or null for everyone
This function can be used to cancel combat in a room or with two people. The following example copied to a player will stop any fight the player is in. Example: ---~---~---~---~---~---~---~---~---
dilbegin stop_combat(); code
dilend
---~---~---~---~---~---~---~---~---
---~---~---~---~---~---~---~---~---