ID:147092
 
Ok like i sid before.I don't want your bump procs,just try to fix this one please!I have spent a week trying to get a simple bump proc working.
PROC:
    proc
Bumped(O)
Bump(O)
..()
if(ismob(O))
O:Bumped(src)

Coding.
    Flag
icon='icon.dmi'
icon_state="fl"
name="Flag"
layer=5
Bumped(O)
world<<"[usr.key] found the flag!"
world<<"Reboot in 10"
sleep(100)
world.Reboot()

Error:Bumped(O) under layer=5.Undefined proc.
CodingSkillz2 wrote:
Flag
icon='icon.dmi'
icon_state="fl"
name="Flag"
layer=5
Bumped(O)
world<<"[usr.key] found the flag!"
world<<"Reboot in 10"
sleep(100)
world.Reboot()


Only thing I can see off hand is that the Bumped() proc here is over-indented. Should look like this:
Flag
icon='icon.dmi'
icon_state="fl"
name="Flag"
layer=5
Bumped(O)
world<<"[usr.key] found the flag!"
world<<"Reboot in 10"
sleep(100)
world.Reboot()
In response to Foomer
Actually I have it like that but the error is still there,thanks anyway.
In response to CodingSkillz2
Could you post a little more code so we know what the procs and the Flag are originating from?

This works, but I can't tell if its doing what you want or not:

atom/movable

proc
Bumped(O)

Bump(O)
..()
if(ismob(O))
O:Bumped(src)

Flag
icon='icon.dmi'
icon_state="fl"
name="Flag"
layer=5
Bumped(O)
world<<"[usr.key] found the flag!"
world<<"Reboot in 10"
sleep(100)
world.Reboot()
In response to Foomer
    proc
Bumped(O)
Bump(O)
..()
if(ismob(O))
O:Bumped(src)

Is all alone in its own dm file.
obj
Fire
icon='icon.dmi'
icon_state="fire"
layer=6
Flag
icon='icon.dmi'
icon_state="fl"
layer=5
Bumped(O)
world<<"[usr.key] found the flag!"
world<<"Reboot in 10"
sleep(100)
world.Reboot()
Stand
icon='icon.dmi'
icon_state="fl2"
density=1
Bumped(O)
world<<"[usr.key] found the flag!"
world<<"Reboot in 10"
sleep(100)
world.Reboot()

is with the objs..
In response to CodingSkillz2
How about this then?

atom/movable
proc
Bumped()
Bump(atom/movable/O)
..()
if(ismob(O))
O.Bumped(src)

obj
Flag
icon='icon.dmi'
icon_state="fl"
layer=5
Bumped(O)
world<<"[usr.key] found the flag!"
world<<"Reboot in 10"
sleep(100)
world.Reboot()
In response to Foomer
--SIGH-- actually it doesnt work.When it bumps nothing happens.
In response to CodingSkillz2
You're still absolutely completely confused as to what all the advice you've been given for the past week is, no matter how simple it is. Here is a chunk of code for you to screw up and repost with a multitude of errors in a day or so:
atom
proc
Bumped(atom/movable/A)
movable
Bump(atom/A)
..()
A.Bumped(src)

obj/flag
Bumped(atom/movable/A)
if(ismob(A))
world << "[A] wins"
sleep(100)
world.Reboot()
http://developer.byond.com/forum/ index.cgi?action=message_read&id=288957&forum=3&view=0

Maybe if you explain EXCATLY WHAT YOU NEED, with good spelling AND good grammar, someone could help you!!!
In response to DeathAwaitsU
DeathAwaitsU wrote:
http://developer.byond.com/forum/ index.cgi?action=message_read&id=288957&forum=3&view=0

Maybe if you explain EXCATLY WHAT YOU NEED, with good spelling AND good grammar, someone could help you!!!

Kind sir, i dont ridicule people on spelling or grammar because mine isnt that great but i am intelligent. I must point out you spelled exactly wrong and you are telling people all over to fix there spelling and or grammar which would make you a hypocrit.

--Goz
In response to Goz
That was a mere typing error but in his past posts he just wants things fixed and you have no idea what he's asking for.

One of the main reasons were BAD spelling and grammar errors, i dont ask for perfect spelling or grammar, but a reasonable/understandable amount.
In response to DeathAwaitsU
What is the Whateveritis supposed to be and it is a obj!Everyone i talk to has no idea what that is and i looked at reference and i still dont get it.
In response to DeathAwaitsU
I ask you to just fix mine so i can learn and see what "I" did wrong so in the future i can understand my "own" coding.
In response to CodingSkillz2
Yes but you weren't very clear since your grammar makes it hard to understand you.
In response to CodingSkillz2
If i tell you to make this mob:

mob
Coderskillz
icon = 'coder.dmi'


And put him in a for loop, what would you do?

*Think*

for(var/mob/Coderskillz/M in world)


I hope that's what you thought.

So now, if every Player in your game goes by the type, /mob/Player, how would you include them in a for loop?

*Think*

for(var/mob/Player/M in world)


I hope that's what you thought.

These:

/mob/Coderskillz
/mob/Player
/obj/Flag
/turf/Grass

Are all type paths.

So in that example, the type path would be the type path you use for clients in your game.
In response to Garthor
Now that worked!I'm sorry it's just that people give me different ways and out of all of them that one worked.
In response to CodingSkillz2
That one is the exact same thing I suggested to you the first day.

You, however, couldn't write it yourself.