Difference between revisions of "Bonus"

From Hercules Wiki
Jump to: navigation, search
 
Line 10: Line 10:
 
outside item scripts, but the bonus will not persist for long. They, as  
 
outside item scripts, but the bonus will not persist for long. They, as  
 
expected, refer only to an invoking character.
 
expected, refer only to an invoking character.
 +
==Parameters==
 +
===Bonus Type===
 +
You can find the full list of possible bonuses types and which values to use for each kind in {{git|doc/item_bonus.txt}}.

Latest revision as of 07:08, 9 June 2013

Contents

Syntax

  • bonus <bonus type>,<val1>;
  • bonus2 <bonus type>,<val1>,<val2>;
  • bonus3 <bonus type>,<val1>,<val2>,<val3>;
  • bonus4 <bonus type>,<val1>,<val2>,<val3>,<val4>;
  • bonus5 <bonus type>,<val1>,<val2>,<val3>,<val4>,<val5>;

Description

These commands are meant to be used in item scripts. They will probably work outside item scripts, but the bonus will not persist for long. They, as expected, refer only to an invoking character.

Parameters

Bonus Type

You can find the full list of possible bonuses types and which values to use for each kind in doc/item_bonus.txt.