Difference between revisions of "Proc:Vorpal Immunity"
From SlothMUD Wiki
					
										
					
					 (Created page with " = Overview =  This procedure allows builders to add resistance to mobiles against chop/vorpal weapons.   Here is a list of keys that the procedure will use:  {|class="abiliti...")  | 
				|||
| (2 intermediate revisions by the same user not shown) | |||
| Line 9: | Line 9: | ||
{|class="abilitiestable" border="0" cellspacing="0" cellpadding="0"  | {|class="abilitiestable" border="0" cellspacing="0" cellpadding="0"  | ||
! Key !! Default !! Description  | ! Key !! Default !! Description  | ||
| + | |-  | ||
| + | | PROC_NUM  | ||
| + | | 41  | ||
| + | | Standard KVP key.  | ||
| + | |-  | ||
| + | | PROC_ENABLED  | ||
| + | | 0 (false)  | ||
| + | | Standard KVP key.  | ||
|-  | |-  | ||
| PERCENT_REDUCTION  | | PERCENT_REDUCTION  | ||
| Line 17: | Line 25: | ||
| 0 (%)  | | 0 (%)  | ||
| The percentage chance that the vorpal proc will result in disarming the player.  | | The percentage chance that the vorpal proc will result in disarming the player.  | ||
| + | |-  | ||
| + | | DISARM_ROOM_MESSAGE  | ||
| + | | $n skillfully blocks $N's swing and disarms $M!  | ||
| + | | The message sent to the room when the mobile disarms the player.  | ||
| + | |-  | ||
| + | | DISARM_VICTIM_MESSAGE  | ||
| + | | $n skillfully blocks your swing and disarms you!  | ||
| + | | The message sent to the player being disarmed.  | ||
|-  | |-  | ||
| PERCENT_BREAK  | | PERCENT_BREAK  | ||
| Line 27: | Line 43: | ||
<pre>  | <pre>  | ||
| − | + | addproc <mob> vorpal_immunity  | |
| + | setproc <mob> ## PERCENT_DISARM 50  | ||
| + | setproc <mob> ## DISARM_ROOM_MESSAGE $n deftly disarms $N and tosses $p to the ground!  | ||
| + | setproc <mob> ## DISARM_VICTIM_MESSAGE $n deftly disarms you and tosses $p to the ground!  | ||
| + | setproc <mob> ## PROC_ENABLED 1  | ||
</pre>  | </pre>  | ||
Latest revision as of 19:35, 19 April 2019
Overview
This procedure allows builders to add resistance to mobiles against chop/vorpal weapons.
Here is a list of keys that the procedure will use:
| Key | Default | Description | 
|---|---|---|
| PROC_NUM | 41 | Standard KVP key. | 
| PROC_ENABLED | 0 (false) | Standard KVP key. | 
| PERCENT_REDUCTION | 0 (%) | The percentage chance that the vorpal proc does nothing to this mobile. | 
| PERCENT_DISARM | 0 (%) | The percentage chance that the vorpal proc will result in disarming the player. | 
| DISARM_ROOM_MESSAGE | $n skillfully blocks $N's swing and disarms $M! | The message sent to the room when the mobile disarms the player. | 
| DISARM_VICTIM_MESSAGE | $n skillfully blocks your swing and disarms you! | The message sent to the player being disarmed. | 
| PERCENT_BREAK | 0 (%) | The percentage chance that the vorpal weapon will break during the attack. If this number is lower than the weapon's natural break percentage, the weapon's percentage is used instead. | 
Sample
addproc <mob> vorpal_immunity setproc <mob> ## PERCENT_DISARM 50 setproc <mob> ## DISARM_ROOM_MESSAGE $n deftly disarms $N and tosses $p to the ground! setproc <mob> ## DISARM_VICTIM_MESSAGE $n deftly disarms you and tosses $p to the ground! setproc <mob> ## PROC_ENABLED 1