Attributes

This commit is contained in:
Alexander Yakovlev 2024-01-10 01:24:17 +07:00
parent 96c7caf405
commit 157da58917

View file

@ -3,12 +3,9 @@
VAR ifid = "fill this pls"
VAR background = "back.png"
LIST dice = d2, d4, d6, d8, d10, d12, d20
LIST journey_soundtrack_songs = Nascence, Apotheosis, Reclamation
VAR a = Nascence
VAR b = Apotheosis
LIST dice = d2 = 2, d4 = 4, d6 = 6, d8 = 8, d10 = 10, d12 = 12, d20 = 20
VAR attrpoints = 5
VAR strength = d2
VAR will = d2
VAR humanity = d2 // How toon-ish you look, from Roger Rabbit to Jessica Rabbit
@ -38,6 +35,8 @@ Will: {link("-", "will_minus")} {will} {link("+", "will_plus")}
Humanity: {link("-", "hum_minus")} {humanity} {link("+", "hum_plus")}
You have {attrpoints} points left.
+ Next -> step2
=== step2
@ -54,10 +53,67 @@ Step 2: skills
~ return "<a class='inlinelink' href='\#' data-href='{target}'>{text}</a>"
=== function minus(ref attr)
~ attr = d2
{ attr == LIST_MIN(dice):
~ return false
}
{ attr == d2:
~ return false
}
{ attrpoints == 5:
~ return false
}
~ attrpoints++
{ attr:
- d4:
~ attr = d2
- d6:
~ attr = d4
- d8:
~ attr = d6
- d10:
~ attr = d8
- d12:
~ attr = d10
- d20:
~ attr = d12
}
//~ temp nextDice = LIST_RANGE(dice, LIST_MIN(dice), attr)
//~ nextDice -= attr
//~ attr = LIST_MAX(nextDice)
~ return true
=== function plus(ref attr)
~ attr = d20
{ attr == LIST_MAX(dice):
~ return false
}
{ attr == d20:
~ return false
}
{ attrpoints == 0:
~ return false
}
~ attrpoints--
{ attr:
- d2:
~ attr = d4
- d4:
~ attr = d6
- d6:
~ attr = d8
- d8:
~ attr = d10
- d10:
~ attr = d12
- d12:
~ attr = d20
}
//~ temp nextDice = LIST_RANGE(dice, attr, LIST_MAX(dice))
//~ nextDice -= attr
//~ attr = LIST_MIN(nextDice)
~ return true
=== function roll(ref attr)
~ return RANDOM(1, LIST_VALUE(attr))
=== str_plus
~ plus(strength)