Guest_imported
New member
- Jan 1, 1970
- 0
PRINT "you have encountered omega"
INPUT "Would you like to fight this monster"; c3$
IF c3$ = "y" THEN
PRINT "Omega has"; hp; "HP"; de; "defence"
PRINT "Omega is level"; lv
ELSE
END IF
damage:
dam: RANDOMIZE TIMER / 3
FOR count = 1 TO 1
LET d = RND
LET d = INT(tdamage * d) + 1
NEXT count
damage2 = hp - d
hit:
INPUT "would you like to attack or run"; c4$
IF c4$ = "attack" THEN
GOTO attack
ELSE
END IF
IF c4$ = "run" THEN
GOTO move
ELSE
END IF
attack: IF damage2 < 0 THEN
PRINT "you hit him at "; d
PRINT "you've gained"; xp; "exprience points"
PRINT "you have earned"; gld; "gold"
ELSE
END IF
IF damage2 > 0 THEN
PRINT "you hit him at "; d
PRINT ; damage2; "hitpoints left"
GOTO dam
ELSE
END IF
End
OK that is my code now in the randomize timer statement it randomizes omegas HP and now i want the user to attack him i want to be able to stop the randomizing for just this fight is it possible
thx in advance
INPUT "Would you like to fight this monster"; c3$
IF c3$ = "y" THEN
PRINT "Omega has"; hp; "HP"; de; "defence"
PRINT "Omega is level"; lv
ELSE
END IF
damage:
dam: RANDOMIZE TIMER / 3
FOR count = 1 TO 1
LET d = RND
LET d = INT(tdamage * d) + 1
NEXT count
damage2 = hp - d
hit:
INPUT "would you like to attack or run"; c4$
IF c4$ = "attack" THEN
GOTO attack
ELSE
END IF
IF c4$ = "run" THEN
GOTO move
ELSE
END IF
attack: IF damage2 < 0 THEN
PRINT "you hit him at "; d
PRINT "you've gained"; xp; "exprience points"
PRINT "you have earned"; gld; "gold"
ELSE
END IF
IF damage2 > 0 THEN
PRINT "you hit him at "; d
PRINT ; damage2; "hitpoints left"
GOTO dam
ELSE
END IF
End
OK that is my code now in the randomize timer statement it randomizes omegas HP and now i want the user to attack him i want to be able to stop the randomizing for just this fight is it possible
thx in advance