Code:
IF gp& > 9999999 THEN gp& = 9999999 IF xp& > 9999999 THEN xp& = 9999999 ac% = 0 absorb% = 100 rfire% = 100 rcold% = 100 relec% = 100 rchem% = 100 hpmax = Level%(lvl, 0) 'these four lines mpmax = Level%(lvl, 1) 'check the Level% array str% = Level%(lvl, 2) 'for current stats tohit% = Level%(lvl, 3)
Statistics: Posted by coma8coma1 — Sun Aug 09, 2009 4:15 pm
Code:
LevelUp: GetA abat = MID$(abat, 1, LEN(abat) - 1) + CHR$(34) + "^Your level has increased!!": a = abat: Text oldhpmax = hpmax oldmpmax = mpmax oldlvl = lvl lvl = 1 DO lvl = lvl + 1 IF lvl = UBOUND(Breakpoint&) THEN EXIT DO LOOP UNTIL Breakpoint&(lvl + 1) > xp& abat = abat + "@^You are now level" + STR$(lvl) + ".": a = abat: Text UpdateStats abat = abat + "^Your Hit Points increase by" + STR$((hpmax - oldhpmax)) + ".": a = abat: Text IF mpmax - oldmpmax > 0 THEN abat = abat + "^Your Magic Points increase by" + STR$((mpmax - oldmpmax)) + ".": a = abat: Text IF Level%(lvl, 2) > Level%(oldlvl, 2) THEN abat = abat + "^Your Strength increases by" + STR$(Level%(lvl, 2) - Level%(oldlvl, 2)) + ".": a = abat: Text IF Level%(lvl, 3) > Level%(oldlvl, 3) THEN abat = abat + "^Your Chance to Hit increases by" + STR$(Level%(lvl, 3) - Level%(oldlvl, 3)) + ".": a = abat: Text RETURN
Statistics: Posted by coma8coma1 — Sun Aug 09, 2009 4:15 pm
Code:
YouWin: Draw.Map gp& = gp& + mgp xp& = xp& + mxp IF gp& > 9999999 THEN gp& = 9999999 IF xp& > 9999999 THEN xp& = 9999999 abat = abat + "^|080000You have defeated the " + mon$ + "!" a = abat: Text abat = abat + "^@Your|137000 experience@ increases by|137000" + STR$(mxp) ' + "@." a = abat: Text abat = abat + "^@Your|154000 gold@ increases by|154000" + STR$(mgp) ' + "@." IF lvl <> UBOUND(Breakpoint&) THEN '* IF xp& >= Breakpoint&(lvl + 1) THEN abat = abat + "\" + CHR$(13) END IF ' a = abat: TextExitBattle: UpdateTherm IF lvl <UBOUND> 9999999 THEN gp& = 9999999 IF xp& > 9999999 THEN xp& = 9999999 ac% = 0 absorb% = 100 rfire% = 100 rcold% = 100 relec% = 100 rchem% = 100 hpmax = Level%(lvl, 0) 'these four lines mpmax = Level%(lvl, 1) 'check the Level% array str% = Level%(lvl, 2) 'for current stats tohit% = Level%(lvl, 3)
Statistics: Posted by coma8coma1 — Sun Aug 09, 2009 4:14 pm
I this case, your IF statement only needs modified:IF yes$ = "yes" OR yes$ = "Yes" OR yes$ = "YES" THEN LET Longsword = Longsword - "no" + "yes"
Code:
IF UCASE$(yes$) = "YES" THEN Longsword$ = "yes"ELSE : Longsword$ = "no"END IF
Statistics: Posted by burger2227 — Thu May 14, 2009 11:22 pm
Statistics: Posted by floogle11 — Thu May 14, 2009 7:19 pm
Statistics: Posted by floogle11 — Thu May 14, 2009 7:10 pm
Code:
let level=1let nextlevlat=5let score=0dorem all your game stuff.......if score>=nextlevelat thenlet level=level+1let nextlevelat=int(nextlevelat/2)+levelend ifloop
Code:
let level=1let xp=0dorem all your game stuff....let xp=xp+1select case xpcase 50print "level up!"let level=level+1let xp=100case 200print "level up!"let level=level+1let xp=350case 350print "level up!"let level=level+1let xp=550case 550print "you win!"endend selectloop
Statistics: Posted by bongomeno — Thu May 14, 2009 7:08 pm
Statistics: Posted by MystikShadows — Thu May 14, 2009 6:51 pm
Statistics: Posted by floogle11 — Thu May 14, 2009 6:24 pm
Code:
IF CurretnScore/100 = INT(CurrentScore/100) THEN CurrentLevel = CurrentScore / 100END IF
Statistics: Posted by MystikShadows — Thu May 14, 2009 6:09 pm