//Mob.dm//
/*
Delcares mobs, and there variables. Along with Login() parameters.
Also some enemies.
*/
//Mobs
mob
icon = 'Icons.dmi'
var
HP = 100
Strength = 5
CanAttack = 0
Skeleton
icon_state = "Bad"
CanAttack = 1
Login()
loc = locate(5,9,1)
icon = 'Icons.dmi'
world << "[usr.key] logged in!"
icon_state = alert("Gender Select", "What Gender?", "Male", "Female")
//Statpanel
Stat()
statpanel("Stats")
stat("Name:", src.key) //Displays name.
stat("Health:", HP) //Displays current health.
stat("Strength:", Strength) //Displays player's strength.
I haven't even made any working code for this yet, I wasn't really sure how to start (I am just starting, I am reading the guide and watching video tutorials.) Anyway, the code below is what I have in my "Mob" file already.
|
![]() Apr 23 2012, 5:28 am
Best response
|
|
No ones going to create you an attack code, id suggest looking in the forum, at get_step, some resources and a few tutorials such as - http://www.byond.com/forum/?post=109791
|
An attack verb would be a verb that checks to see if the user of the verb can attack, and if so, decreases the target's HP based on the user's strength.
If you don't know how to make a verb, try the DM Guide. It can be found in the Developer menu. |
mob and then your gonna have to add mob |