From b6a2532da188088964cd6bf54da8c369d1608219 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Mon, 6 Feb 2012 13:58:43 -0700 Subject: Fixes and updates to Bloodfields. Uses lists where it should instead of dictionaries, better welcome message. --- bloodfields.stage | 34 +++++++++++++++++++--------------- 1 file changed, 19 insertions(+), 15 deletions(-) (limited to 'bloodfields.stage') diff --git a/bloodfields.stage b/bloodfields.stage index 58a24a2..38e3370 100644 --- a/bloodfields.stage +++ b/bloodfields.stage @@ -1,4 +1,4 @@ -game.title = "Bloodfields"; +game.title = "Bloodfields: STAGE Edition"; global { @@ -17,44 +17,44 @@ situation <> { setup { - global.enemyTypes = { - 1: { + global.enemyTypes = [ + { 'name': 'snail', 'action': 'oozes on', 'hp': 3, 'attack': 2 }, - 2: { + { 'name': 'wolf', 'action': 'bites', 'hp': 7, 'attack': 3 }, - 3: { + { 'name': 'snake', 'action': 'strikes at', 'hp': 3, 'attack': 3 } - }; + ]; - global.enemyMods = { - 1: { + global.enemyMods = [ + { 'name': 'pathetic', 'hp': 0, 'attack': 0 }, - 2: { + { 'name': 'sickly', 'hp': 3, 'attack': 1 }, - 3: { + { 'name': 'wimpy', 'hp': 5, 'attack': 2 } - }; + ]; player.hpMax = 10; player.hpCur = player.hpMax; @@ -65,6 +65,9 @@ situation <> global.bJustTravelled = false; + display('Welcome to Bloodfields: STAGE Edition!'); + display('Type "help" for help and more information at any time.'); + goto( <> ); } } @@ -91,13 +94,13 @@ function look() function mkEnemy() { - eid = random( 1, 3 ); + eid = random( 0, 2 ); global.enemy = global.enemyTypes[eid]; - mod = player.level; - if mod > 3 then + mod = player.level - 1; + if mod > 2 then { - mod = 3; + mod = 2; } global.enemy['name'] = global.enemyMods[mod]['name'] + ' ' + global.enemy['name']; @@ -134,6 +137,7 @@ function playerAttack() { player.xp -= 100; player.level += 1; + player.attack += 1; player.hpMax += integer(random(0.25,0.75)*player.hpMax); player.hpCur = player.hpMax; display("You have leveled! Welcome to level " + player.level ); -- cgit v1.2.3