proper min values for str/wil

This commit is contained in:
Alexander Yakovlev 2024-01-10 22:14:29 +07:00
parent 45c7a4b511
commit daaa8dd1d6
2 changed files with 61 additions and 19 deletions

View file

@ -45,8 +45,8 @@ Select your name.
+ > Mercury Day
{ name != "Mercury":
~ plus(strength, true)
~ minus(will, true)
~ plus_free(strength)
~ minus_free(will)
}
~ strength_min = d4
~ name = "Mercury"
@ -55,8 +55,8 @@ Select your name.
-> step_flavor
+ > Mercury Night
{ name != "Mercury":
~ plus(strength, true)
~ minus(will, true)
~ plus_free(strength)
~ minus_free(will)
}
~ strength_min = d4
~ name = "Mercury"
@ -65,8 +65,8 @@ Select your name.
-> step_flavor
+ > Venus Day
{ name != "Venus":
~ plus(will, true)
~ minus(strength, true)
~ plus_free(will)
~ minus_free(strength)
}
~ name = "Venus"
~ surname = "Day"
@ -75,8 +75,8 @@ Select your name.
-> step_flavor
+ > Venus Night
{ name != "Venus":
~ plus(will, true)
~ minus(strength, true)
~ plus_free(will)
~ minus_free(strength)
}
~ name = "Venus"
~ surname = "Night"
@ -160,4 +160,3 @@ Performance (Strength): {link("-", "str_minus")} {performance} {link("+", "str_p
=== function roll(ref attr)
~ return RANDOM(1, LIST_VALUE(attr))

View file

@ -1,4 +1,4 @@
=== function minus(ref attr, free)
=== function _minus(ref attr, free)
{ attr == LIST_MIN(dice):
~ return false
}
@ -36,7 +36,13 @@
//~ attr = LIST_MAX(nextDice)
~ return true
=== function plus(ref attr, free)
=== function minus (ref attr)
~ return _minus(attr, false)
=== function minus_free (ref attr)
~ return _minus(attr, true)
=== function _plus(ref attr, free)
{ attr == LIST_MAX(dice):
~ return false
}
@ -68,35 +74,72 @@
//~ attr = LIST_MIN(nextDice)
~ return true
=== function plus (ref attr)
~ return _plus(attr, false)
=== function plus_free (ref attr)
~ return _plus(attr, true)
=== function minus_will(free)
{ will <= will_min:
~ will = will_min
~ return
}
~ return _minus(will, free)
=== function minus_strength(free)
{ strength <= strength_min:
~ strength = strength_min
~ return
}
~ return _minus(strength, free)
=== str_plus
~ plus(strength, false)
~ plus(strength)
-> step1
=== str_minus
~ minus(strength, false)
~ minus_strength(false)
-> step1
=== will_minus
~ minus(will, false)
~ minus_will(false)
-> step1
=== will_plus
~ plus(will, false)
~ plus(will)
-> step1
=== hum_minus
~ minus(humanity, false)
~ minus(humanity)
-> step1
=== hum_plus
~ plus(humanity, false)
~ plus(humanity)
-> step1
=== athletics_plus
~ plus(athletics, false)
~ plus(athletics)
-> step_skills
=== athletics_minus
~ minus(athletics, false)
~ minus(athletics)
-> step_skills
// by Stian
=== rolld20(modifier, treshold, -> ifsuccess, -> iffailure) ===
~ temp die_roll = RANDOM(1, 20)
~ temp result = die_roll + modifier
// Flavour text for the roll.
You needed: {treshold}
You rolled: {result}
{ result >= treshold:
-> ifsuccess
- else:
-> iffailure
}