Search the Commands

Home  All  a  b  c  d  e  f  g  h  i  j  k  l  m  n  o  p  q  r  s  t  u  v  w  x  y  z 

Details for command getscrate:
 
* getscrate <effect type>,<base rate>{,<target id>};
 
This function will return the chance of a status effect affecting the invoking
character, in percent, modified by the their current defense against said
status. The 'base rate' is the base chance of the status effect being inflicted,
in percent.

if (rand(100) > getscrate(Eff_Blind, 50)) goto BlindHimNow;

You can see the full list of available effect types you can possibly inflict in
'db/const.txt' under 'Eff_'.

It is pretty certain that addressing the target by an ID number will not currently work due to a bug.

Valid XHTML 1.0 Strict Valid CSS!