Your browser lacks required capabilities. Please upgrade it or switch to another to continue.
Loading…
You are going to start a new adventure. Who would you like to be?
<<charselect>>
<<lb>>
<<if $playerReady is true>>
[[Now you player is ready to start the adventure|LastPassage]]
<</if>>
<</lb>>Your adventure will bring you in a far away country...
Another way to show the character sheet:
<div data-uinv="grid" @id="$charsheet" class="grid-charsheet-container"
data-item0="" data-property0="class" data-template0="<b>CLASS</b>: ${value[0]}"
data-item1="strength" data-property1="["initial","current"]" data-template1="<b>STRENGTH</b>: ${value[0]}<br>${value[1]}"
data-item2="magic" data-property2="["initial","current"]" data-template2="<b>MAGIC</b>: ${value[0]}<br>${value[1]}"
data-item3="hitpoints" data-property3="["initial","current"]" data-template3="<b>HITPOINTS</b>: ${value[0]}<br>${value[1]}"
data-item4="gold" data-property4="UInvQuantity" data-template4="<b>GOLD</b>: ${value[0]}"
data-item5="equipment" data-property5="["size","description"]" data-template5="${key}: ${value[0]} of size (${value[1]})</br>"
data-header5="<b>EQUIPMENT</b>:</br>"></div><<widget "charselect">>
<center>
<<if _StatPool is undefined>>
<<set _StatPool to 6>>
<<set _STR to 0>>
<<set _MAG to 0>>
<</if>>
<<lb>>
<div><<include 'PlayerDisplay'>></div>
<<if $charsheet is undefined>>
<<button "I wanna be a warrior">>
<<set $charsheet to "warrior">>
<<run UInv.AddBag($charsheet)>>
<<update>>
<<run UInv.UpdateDisplay()>>
<</button>>
<<button "I wanna be a mage">>
<<set $charsheet to "mage">>
<<run UInv.AddBag($charsheet)>>
<<update>>
<<run UInv.UpdateDisplay()>>
<</button>>
<<else>>
<<if $playerReady is undefined>>
<div id="pool">
<<print "You can now use _StatPool points to improve your skills">>
<<numberpool "_StatPool">>
Strength:<<numberinput "_STR" _STR 0 6>>
Magic:<<numberinput "_MAG" _MAG 0 6>>
<<onchange>>
<<set _ISTR to _STR + UInv.GetItemPropertyValue($charsheet,"strength","initial")>>
<<set _IMAG to _MAG + UInv.GetItemPropertyValue($charsheet,"magic","initial")>>
<<run UInv.SetItemPropertyValue($charsheet,"strength","current",_ISTR)>>
<<run UInv.SetItemPropertyValue($charsheet,"magic","current",_IMAG)>>
<<run UInv.UpdateDisplay()>>
<</numberpool>>
</div>
<div id="btnok">
<<button 'Are you ready?'>>
<<if _StatPool == 0>>
<<set $playerReady to true>>
<</if>>
<<update>>
<<run UInv.UpdateDisplay()>>
<</button>>
</div>
<</if>>
<</if>>
<</lb>>
</center>
<</widget>><<if $charsheet is not undefined>>
<<grid $charsheet>>
[
{"item":"","property":"class","template":"<b>CLASS</b>: ${value[0]}"},
{"item":"strength","property":["initial","current"],"template":"<b>STRENGTH</b>: ${value[0]}<br>${value[1]}"},
{"item":"magic","property":["initial","current"],"template":"<b>MAGIC</b>: ${value[0]}<br>${value[1]}"},
{"item":"hitpoints","property":["initial","current"],"template":"<b>HITPOINTS</b>: ${value[0]}<br>${value[1]}"},
{"item":"gold","property":"UInvQuantity","template":"<b>GOLD</b>: ${value[0]}"},
{"item":"equipment","property":["size","description"],"template":"${key}: ${value[0]} of size (${value[1]})</br>","header":"<b>EQUIPMENT</b>:</br>"}
]
<</grid>>
<</if>>