ID:178436
 
i have six errors 1 is stopping me from making a map file so i cant complete my game n e help at hand ???
Kwodahn wrote:
i have six errors 1 is stopping me from making a map file so i cant complete my game n e help at hand ???

Post the code and the errors. How can we help you if we don't know what the problems are?
In response to Malver
ok i was a bit scared ud all go fuck of and learn the code
In response to Kwodahn
(src.type == /mob/PC)
PCDeath()

(src.HP <= 0)
usr.exp+=src.exp_give
del(src)
PCDeath(mob/M)
if (src.HP <= 0)
view(src) << "[src] died."
src.loc = locate(3,2,1)
src.HP = Max_HP
mob
NPC
dwakie
name = "dwakies"
icon = 'dwakie.dmi'
HP = 10
Max_HP = 10
strength = 2
exp_give = 5
var/mob/PC/P
New()
. = ..()
spawn()
Wander()
proc/Wander()
while(src)
if(P in oview(5))
step_towards(src,P)
for(P in oview(1))
break
for(P in oview(2))
break
for(P in oview(3))
break
for(P in oview(4))
break
else
step_rand(src)
sleep(10)
for(P in oview(5))
break
sleep(5)
spawn(5)
Wander()
Bump(mob/M)
if(istype(M,/mob/PC))
Attack(M)
proc/Attack(mob/M)
flick("attack dwakie"

var/damage = rand(1,strength)
M.HP -= damage
view(src) << "[src] attacks [M]!"
view(src) << "[damage] damage!"
M.Death()
mob/Stat()
stat("Stats:",src.desc)
if(src == usr) statpanel("Inventory",src.contents)
stat(" HP: ",HP)
stat(" Strength: ",strength)
stat(" Experience: ",exp)
turf/map_two_enterence
name = "dirt"
icon = 'portal'
Entered(mob/M)
if(istype(M,/mob/PC))
usr.loc = locate(2,16,2)

obj
NPC
Townfolk1
name = "lizard man"
icon = 'PC.dmi'
icon_state = "lizard man"
density = 1
verb
talk_to()
set src in oview(1)
usr << "lizard man: \"Hello [usr]! Thank goodness you found me by fighting through all of those warriors! Here, have this as your reward for finding me!\""
view() << "[usr] resives a golden sword\""
new /obj/"golden sword"

obj
golden sword
icon = 'golden sword.dmi'
var
weaponstrength = 15
equiped = 0
verb
pick_up()
set src in oview(1)
if(Move(usr))
usr << "You pick up the [src]"

else usr << "You cannot pick up the [src]"
destroy()
set src in usr
if(src.equiped == 1)
usr << "You cannot destroy this if it's equipped!"

else usr << "You discarded the [src]"
del(src)
equip()
set src in usr
if(usr.weapon == 0)
usr << "You equip the [src]"
usr.strength += weaponstrength
suffix = "(Wielded)"
usr.weapon = 1
src.equiped = 1

else usr << "You may only have one weapon equiped!"
unequip()
set src in usr
if(src.equiped == 1)
usr << "You unequip the [src]"
usr.strength -= weaponstrength
suffix = null
usr.weapon = 0
src.equiped = 0

else usr << "That's not equiped yet!"
drop()
if(src.equiped == 0)
src.loc = usr.loc
usr << "You drop the [src]"

else usr << "You cannot drop this. It's equipped!"


loading my.dme
my.dm:50: Inconsistent indentation.
my.dm:54: Inconsistent indentation.
my.dm:55: Inconsistent indentation.
my.dm:101:error: var: missing comma ',' or right-paren ')'
my.dm:101:error: var: expected end of statement
my.dm:131:error: "golden sword": expected end of statement
my.dm:131:error: expected expression

my.dmb - 7 errors, 0 warnings (double-click on an error to jump to it)
In response to Kwodahn

proc/Attack(mob/M)
flick("attack dwakie"

my.dm:101:error: var: missing comma ',' or right-paren ')'

thats one problem I didnt realy look through your code completly but when skimming down I saw this..it should be


proc/Attack(mob/M)
flick("attack dwakie"<font color=red>)

</font color=red>
and thats all I see (error in red)