// Set up second inventory for spells if (GetObject ("spells_known") = null) create ("spells_known") SetInventory2Label ("Spells") SetInventory2 (GetDirectChildren (spells_known)) // cosmetic changes game.font1 = "Bubblegum Sans" game.font2 = "Bubblegum Sans" SetWebFontName (game.font1) SetWebFontName (game.font2) SetForegroundColour ("Maroon") JS.eval ("$('#gameBorder').css('background-color', 'AntiqueWhite');") JS.eval ("$('#gamePanes').css('background-color', 'AntiqueWhite');") JS.eval ("$('#status').css('border', 'none');") JS.eval ("$('#status').css('background-image', 'none');") JS.eval ("$('#status').css('background-color', 'BurlyWood');") JS.eval ("$('#status').css('width', '950px');") JS.eval ("$('#status').css('text-align', 'center');") JS.eval ("$('#status').css('font-family', '" + game.font2 + "');") JS.eval ("$('#status').css('font-size', '16pt');") JS.eval ("$('#divOutput').css('font-family', '" + game.font1 + "');") JS.eval ("$('#divOutput').css('font-size', '14pt');") JS.eval ("$('#divOutput').css('color', 'Maroon');") JS.eval ("$('#gamePanesFinished').css('font-family', '" + game.font1 + "');") JS.eval ("$('#gamePanesFinished').css('color', 'maroon');") JS.eval ("$('#txtCommandDiv a').css('color', 'maroon');") JS.eval ("$('#txtCommandDiv').css('font-family', '" + game.font2 + "');") request (SetInterfaceString, "PlacesObjectsLabel=People and Items") // Move the compass before the inventory JS.eval ("$('#compassLabel').insertBefore('#inventoryLabel')") JS.eval ("$('#compassAccordion').insertBefore('#inventoryLabel')")
Hit points: ---
Armour: 0
Weapon: ---
On-going magic: ---
Gold: ---
Artefacts found: 0/14
]]>
if (game.statusdisplay) { JS.eval ("$('#optional').css('display', 'none');") game.statusdisplay = false } else { JS.eval ("$('#optional').css('display', 'block');") game.statusdisplay = true }
Name: Sex: Male Female

Attributes

Bonus item
Strength
0
Two healing potions
Agility
0
Sabre
Intelligence
0
Fire breath spell
Stamina
0
Medium shield
Points left
10
Light armour
]]>
gamestart.startup = true OutputTextNoBr (gamestart.stuff) JS.eval ("$('#points').text('' + " + game.pov.maxpoints + ")") JS.eval ("loseCross()")
ShowMenu ("You can raise one of your stats!", Split("Strength|Agility|Stamina|Intelligence", "|"), false) { n = GetInt(game.pov, LCase(result)) + 1 set (game.pov, LCase(result), n) game.pov.hitpoints = game.pov.hitpoints + CalcFullHits () / 3 if (game.pov.hitpoints > CalcFullHits ()) game.pov.hitpoints = CalcFullHits () UpdateStats } l = Split(answer, "|") if (not gamestart.startup) { oldmax = CalcFullHits() } game.pov.strength = ToInt(StringListItem(l, 2)) game.pov.agility = ToInt(StringListItem(l, 3)) game.pov.intelligence = ToInt(StringListItem(l, 4)) game.pov.stamina = ToInt(StringListItem(l, 5)) bonus = StringListItem(l, 6) if (gamestart.startup) { game.pov.alias = StringListItem(l, 0) game.pov.female = StringListItem(l, 1) = "Female" gamestart.startup = false game.pov.hitpoints = CalcFullHits() request(Show, "Panes") request(Show, "Command") player.parent = road JS.eval ("$('#status_div').css('display', 'block')") } else { game.pov.hitpoints = game.pov.hitpoints * CalcFullHits() / oldmax } UpdateHitPoints if (bonus = "bonus4") { CloneObjectAndMove(medium_shield, player) } if (bonus = "bonus1") { CloneObjectAndMove(masterhealingpotion, player) CloneObjectAndMove(masterhealingpotion, player) } if (bonus = "bonus2") { CloneObjectAndMove(sabre, player) } if (bonus = "bonus3") { CloneObjectAndMove(spell_firebreath, player) } if (bonus = "bonus5") { armour_light.parent = player }