This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
damage_logic [2025/04/21 12:14] – justin | damage_logic [2025/04/22 13:45] (current) – justin | ||
---|---|---|---|
Line 1: | Line 1: | ||
======Damage Logic====== | ======Damage Logic====== | ||
---- | ---- | ||
- | If you'd like customize | + | In RPG in a Box, any time one [[character]] attacks another, a calculation is done to determine how much damage is done to the [[character]] being attacked. |
- | Below is the Bauxite code for the default damage logic. You can take this and customize it as desired, or create your own logic from scratch! The only requirement is that the [[script]] returns a numeric value. | + | Below is the Bauxite code for the default damage logic. You can take this and customize it as desired, or create your own logic from scratch! The only requirement is that the [[script]] returns a [[number|numeric value]]. |
<code bauxite> | <code bauxite> | ||
$diff = $attacker.stat[" | $diff = $attacker.stat[" |