I would guess the run code would be like...
mob
verb
Run()
rand(2,5,7)
if(2)
usr << "You ran away!"
return
else
usr << "Sorry you fail."
That's just a quess. Any help? Thanks
ID:166913
May 30 2006, 2:27 pm
|
|
How would I code this...I want it so theres a monster icon walking around the world in the game. And when it bump's into you you got to a battle arena were there's a background and a picture of the monster, more then 1 square. And from there I can pick to attack the monster or run away. I have the code for the monster and attacking but i need you to tell me were it goes and can you please tell me the run code?
I would guess the run code would be like... mob That's just a quess. Any help? Thanks |
Bamrulez wrote:
mob I doubt that works. What does rand(2,5,7) do? What do you want to do? I think it might be something like this: mob And for the wandering mob, check out walk_rand() or step() and get_dir() for "chasing" action. Aaand, figure some stuff out for yourself. Just play with stuff until you get something you like. I doubt that you spend enough time tinkering around. If you do, and I'm wrong, excuse me. |
In response to PirateHead
|
|
Hmm... I know I shouldn't add this here but: is this game based on Mario & Luigi: Partners in Time? What you are trying to do reminds me of that game >.>; Funny how Mario games are addictive like Super Peach Princes.. >_<
- GhostAnime |
Please read the DM guide, it will help you alot for the basic stages of DM.
http://www.byond.com/docs/guide/