mob
proc
Attack()
//code
One thing I am really looking for is where exactly to put the while command (before or after(I know, I sound like a noob)).
Thank you for anybody who helps.
ID:162563
![]() Dec 22 2007, 11:49 am (Edited on Dec 22 2007, 12:03 pm)
|
|
I haven't used BYOND in a while, so I am wondering how exactly would I do to make a combat code. Like:
mob One thing I am really looking for is where exactly to put the while command (before or after(I know, I sound like a noob)). Thank you for anybody who helps. |
How about a more complex way. I could do that, but I mean where you deal damage then your enemy and so forth till one mob dies.
|
mob/proc/attack(var/mob/M) |
Alright I got a good combat code, but now where do I put the while code?
mob |
You put in whatever you want to happen.
What I am not getting is what are you trying to actually do with a while(). From the posts you have made, I suggest you relearn the basics: http://members.byond.com/ DreamMakers?command=view_post&post=36143 http://www.byond.com/developer/?page=Start |
(Note: This is not the best code for combat, but it does work.)