This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
damage_logic [2025/04/21 19:46] – justin | damage_logic [2025/04/22 13:45] (current) – justin | ||
---|---|---|---|
Line 1: | Line 1: | ||
======Damage Logic====== | ======Damage Logic====== | ||
---- | ---- | ||
- | In RPG in a Box, any time one [[character]] attacks another | + | In RPG in a Box, any time one [[character]] attacks another, |
- | 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[" |