ID:267870
 
no, not one of those codes when a mob runs up to you and you fight it, i am talking about a turn based, random encouter! Like silkwizards DWO battle code.





All help is wanted. Thakes

-Boomer Trigger, newbie-
This is an absolutely ridiculous request. Post only if you have a specific problem with one part of the code, not if you need a whole 300 lines or so. If you want that, try searching libraries/demos first.
mob
Move()
if(prob(10))
src << "You get into a battle!"
var/done = 0
var/turn = 1
while(!done)
src << "TURN [turn]"
sleep(10)
src << "You attack the enemy!"
if(prob(5))
src << "You win!"
done = 1
exp += 10
levelup()
else
sleep(10)
src << "The enemy attacks you!"
if(prob(1))
src << "You lose!"
del(src)