Here's the Battle screen so far... Tell me what needs changing, if it needs to be neater... (help with a few glitch's that you'll notice would be appreciated)
[Edit] TEAR IT TO PIECES!!!!!!!!!!!!!!!!!
And Who likes The Noob GDT? Or NGDT? Explained inside the code...
Currently No name to it.
Here it is:
`------------------
`-=-The Noob GDT-=-
`------------------
`This Program is For Use Only by The Noob GDT.
`
`GDT Stands for Game Development Team.
`The Noob GDT was created by OBese87 11th Jun 2008.
`To show a section, It will appear as so:
`-SectionName-
`
`SECTION STUFF HERE
`
`-|SectionNameEnd|-
`
`--------------------------------------------------
`-Player Stats-
`About: This Determines the Player's levels. The Levels currently include:
`-Attack
`-Defense
`-Health
`-Strength
`Note: The Stats will eventually be saveable... I'm just working
`on the battle system.
playeratt=5
playerdef=4
playerhealth=100
playerstr=6
`-|Player Stats|-
`-Creature Choice-
`About: This Determines the creature's level, and it's health, attack,
`and defense. Each Creature can and will have a random level for everything.
`For additional creatures, the format is as follows:
`1) Change the sequence below labeled [CREATURE COUNT] to add in the new
`amount of creature(s)
`2) Add in to the creature number chain.
`3) Fill in the creature format shown below:
remstart
creatureXXXXX:
creaturename$="creature's name"
creaturelevel#=rnd(x)+x
creaturehealth#=creaturelevel#+rnd(xx)+xx
creatureatt#=creaturelevel#-rnd(x)+x
creaturedef#=creaturelevel#-rnd(n)+n
creaturehealthorig#=creaturehealth#
return
end
remend
print "Battle:"
print "The Creature Appears.."
`[CREATURE COUNT]
creature#=rnd(2)
`|[CREATURE COUNT]|
`[Creature number chain]"
`if creature#=(last creature's number+1) then gosub creature(last creature's number+1)
if creature#=0 then gosub creature0
if creature#=1 then gosub creature1
if creature#=2 then gosub creature2
`|[Creature number chain]|
gosub Battlecont_1
end
creature0:
creaturename$="Common Goblin"
creaturelevel#=rnd(10)+5
creaturehealth#=creaturelevel#+rnd(15)+10
creatureatt#=creaturelevel#-rnd(2)+1
creaturedef#=creaturelevel#-rnd(5)+1
creaturehealthorig#=creaturehealth#
return
end
creature1:
creaturename$="Earth Dragon"
creaturelevel#=rnd(50)+45
creaturehealth#=creaturelevel#+rnd(10)+1
creatureatt#=creaturelevel#-20
creaturedef#=creaturelevel#-30
creaturehealthorig#=creaturehealth#
return
end
creature2:
creaturename$="Steel Gargoyle"
creaturelevel#=rnd(20)+19
creaturehealth#=creaturelevel#+rnd(100)+90
creatureatt#=creaturelevel#-18
creaturedef#=creaturelevel#+rnd(100)+70
creaturehealthorig#=creaturehealth#
return
end
`-|Creature Choice|-
`-Battle-
`About: This area controls the player's max hit, the creature's max hit,
`tests for Player's death and Creature's death, and controls experience.
Battlecont_1:
`Showing Total Player Health
currentplayerhealth=playerhealth
wait 1000
`Checking to see if player or monster still lives
while kill#=0 and death#=0
cls
Player_maxhit=creaturedef#-rnd(playeratt*playerstr)+0
hitpercent=rnd(playerstr)
if playerstr<creaturedef# then hitpercent=rnd(playerstr)
if Player_maxhit>0 and creaturedef#>playeratt+playerstr/2
Player_maxhit=creaturedef#-rnd(playeratt*playerstr)+0
endif
if Player_maxhit<0
Player_maxhit=0
endif
if Player_maxhit>creaturehealth# then Player_maxhit=creaturehealth#
print creaturename$
suspend for key
print "It's Health is: ",creaturehealth#,"/",creaturehealthorig#
suspend for key
print "Your Health is: ",currentplayerhealth,"/",playerhealth
print "You hit a: ",Player_maxhit
suspend for key
if creaturehealth#<=0
kill#=1
else
Creature_maxhit=creatureatt#+creaturelevel#-playerdef#
print "The ",creaturename$," hit a ",Creature_maxhit,"!"
suspend for key
endif
currentplayerhealth=currentplayerhealth-Creature_maxhit
Creature_maxhit=0
Player_maxhit=0
endwhile
if kill#=1 then print "You killed the ",creaturename$,"! Which was",creaturelevel#,"."
if kill#=1 then print "You gained ",creaturelevel#+creaturehealth#," experience!"
if death#=1 then print "You were killed."
if death#=1 then print "Noob Team Note: If the Player dies, all items are lost? I also suggest the player goes back to a 'town'?"
A few glitches/obviously needed that I can Recall And list down:
-You can't die.
-The enemy can't die.
-The Enemy's damage is always the same.
-The Enemy's health never changes
---------------------------------
All of these are pretty simple to fix. I just wanted to show you the program, and know if you like the way the game is going.
No stylish Signature here.