/*
These are simple defaults for your project.
*/
world
fps = 25 // 25 frames per second
icon_size = 32 // 32x32 icon size by default
view = 5 // show up to 5 tiles outward from center (13x13 view)
// Make objects move 8 pixels per tick when walking
mob
step_size = 8
obj
step_size = 8
mob
icon = 'person.dmi'
var
hp = 20
mhp = 20
str = 12
def = 4
armor_equipped = 0
weapon_equipped = 0
nin = 6
nindef = 3
var
obj
gun
g = new/obj/gun()
turf
grass
icon = 'person.dmi'
icon_state = "grass"
turf
water
icon = 'person.dmi'
icon_state = "water"
density = 1
world
name = "My First Game."
turf = /turf/grass
mob
Login()
usr.icon_state = input("What gender?") in list ("male","female")
usr.Move(locate(1,1,1))
mob
verb
OOC(t as text)
world<<"[usr] says: [t]"
Say_to_view(t as text)
view()<<"[usr] view: [t]"
mob/female
icon = 'person.dmi'
icon_state = "female"
mob
verb
Attack(mob/M as mob in oview(1))
flick("attack",usr)
var/damage = usr.str - M.def
if(damage <= 0)
usr << "nigga you slow"
M << "your to fast for [usr]'s attack."
else
M.hp -= damage
usr << "[usr] fucked up [M] and took [M]'s booty with [damage] HP!"
M << "[usr] fucked up [M] and took [M]'s booty with [damage] HP!"
M:deathcheck()
mob
proc
deathcheck()
if(src.hp <= 0)
view() << "[src] dies!"
src.mhp += 30
src.hp += src.mhp
src.Move(locate(1,1,1))
usr.str += 1
usr.def += 1
obj
gun
icon = 'person.dmi'
icon_state = "gun"
obj
gun
verb
Get()
set src in oview(1)
usr.contents += src
view() << "[usr] picks up \a [src]"
Drop()
if(usr.weapon_equipped == 0)
new/obj/gun(usr.loc)
view() << "[usr] drops \a [src]"
del(src)
else
usr << "take of your weapon 1st"
Equip()
if(usr.weapon_equipped == 0)
usr.overlays += g
usr.str += 2
usr.weapon_equipped = 1
usr << "you equip \a [src]."
else
usr << "You are already wielding something."
Unequip()
if(usr.weapon_equipped == 1)
usr.overlays -= g
usr.weapon_equipped = 0
usr.str -= 2
usr << "you unequip your gun."
else
usr << "You aren't wielding this."
mob
Stat()
statpanel("Inventory",usr.contents)
statpanel("Stats")
if(statpanel("Stats"))
stat("Name: [usr]")
stat("Health: [usr.hp]/[usr.mhp]")
stat("Strength: [usr.str]")
stat("Defense: [usr.def]")
stat("Ninjutsu: [usr.nin]")
stat("Ninjutsu Defense: [usr.nindef]")
Problem description: i dont know what to do / practice doing ter said i shouldnt goto projectiles but i dont know what to do now
As for learning to program, I'd advise spending some time reading tutorials on syntax and some common implementations so you can see what other people do.