BYOND Build Number:
Operating System:
Video/Graphics Card:
Game Hub/Link:
Internet Connection Type:
Firewalls/Routers:
Problem Description:
Steps to Reproduce Problem:
mob
icon = 'person.dmi'
var
hp = 10
str = 5
def = 2
turf
grass
icon = 'person.dmi'
icon_state = "grass"
turf
water
icon = 'person.dmi'
icon_state = "water"
density = 1
world
name = "Naruto Legends."
turf = /turf/grass
mob
Login()
usr.icon_state = input("What gender?") in list ("male","female")
usr.Move(locate(1,1,1))
usr << "This message is to you, [usr]"
usr << "Your strength is [usr.str]."
view() << "To everyone in the view of [usr]"
view(1) << "To everyone next to [usr]"
oview() << "To everyone in the screen, but [usr]"
world << "Hi, everyone! I am [usr]!"
mob
verb
Hi_to_user()
usr << "Hi!"
Hi_to_view()
view() << "Hi!"
Hi_to_oview()
oview() << "Hi!"
Hi_to_world()
world << "Hi!"
Add_1_to_Strength()
usr.str += 1
mob
verb
Say_60()
usr << (100 - 50 - 20) * 2
mob
proc
Myproc()
if(src.str > 4)
src << "Your strength is greater than 4"
else
src << "Your strength is less than 4"
mob
verb
Myproc_call_verb()
usr << "Checking strength.."
sleep(10) // wait for 1 second.
usr:Myproc()
mob
verb
Attack(mob/M as mob in oview(1))
var/damage = usr.str - M.def
if(damage <= 0)
usr << "[M] easily dodges your attack!"
M << "You easily dodge [usr]'s attack."
else
M.hp -= damage
view() << "[usr] attacks [M] for [damage] HP!"
M:deathcheck()
mob
proc
deathcheck()
if(src.hp <= 0)
view() << "[src] dies!"
src.hp = 10
src.Move(locate(1,1,1))
usr.str += 1
usr.def += 1
mob
var
armor_equipped = 0
weapon_equipped = 0
obj
sword
Get()
set src in oview(1)
usr.contents += src
view() << "[usr] picks up \a [src]"
Drop()
new/obj/sword(usr.loc)
view() << "[usr] drops \a [src]"
del(src)
Equip()
if(usr.weapon_equipped == 0)
usr.str += 2
usr.weapon_equippped = 1
view() << "[usr] equips a sword."
else
usr << "You are already wielding something."
Unequip()
if(usr.weapon_equipped == 1)
usr.str -= 2
view() << "[usr] unequips a sword."
else
usr << "You aren't wielding this."
armor
Get()
set src in oview(1)
usr.contents += src
view() << "[usr] picks up [src]"
Drop()
new/obj/armor(usr.loc)
view() << "[usr] drops [src]"
del(src)
Equip()
if(usr.armor_equipped == 0)
usr.def += 2
usr.armor_equippped = 1
view() << "[usr] wears some armor."
else
usr << "You are already wearing something."
Unequip()
if(usr.armor_equipped == 1)
usr.def -= 2
view() << "[usr] takes off some armor."
else
usr << "You aren't wearing this."
mob
attacks
verbs
Super_Slash(mob/M as mob in oview(2)) // can attack someone TWO spaces away
var/damage = usr.str - M.def + 5
if(damage <= 0)
usr << "[M] easily dodges your attack!"
M << "You easily dodge [usr]'s attack."
else
M.hp -= damage
view() << "[usr] super slashes [M] for [damage] HP!"
M:deathcheck()
usr.verbs += /mob/attacks/verbs/Super_Slash
Can anybody please help!?!?
ID:293417
Jan 10 2009, 7:55 am
|
|
You might want to try posting here under the code problems forum. This forum is for problems with the BYOND software, not with game development and such.
As for your problem, I never bothered to read it. I'm just pointing you in the right direction. |
First of all, you copied and pasted from a website. Second, there are typos in there "Eqippped". And you forgot to place 'verb' before Sword and Armor.
Like that. :)