ID:262096
 
Ok, I admit I don't know the basics of coding but I must know something if I've made a couple of games..... Anyway, I cant get this egg to hatch, it has no errors, but it wont hacth when told to...Can soembody fix it plz? Because apparently, I don't know how.

obj
Egg
icon = 'icons.dmi'
icon_state = "egg"
verb
Hatch()
set src in oview(0)
var/obj/Egg = new/obj/Egg(usr.loc)
sleep(100)
del(src)
var/mob/Demon = new/mob/Demon
Your games were probably made of demos..Anyway. Your deleting the src so the verb ends I THINK. Also the new demon has no location...Try new/mob/Demon(src.loc)
Delete your post about the mistaked post.

I thought you said you wouldn't post anymore?

obj
Egg
icon = 'icons.dmi'
icon_state = "egg"
verb
Hatch()
set src in oview(1)//never set this to 0
sleep(100)//wait 10 secs
var/mob/Demon/D = new/mob/Demon(src.loc)//create a new Demon at the egg's location, the egg is src in this case
del(src)//now we delete the egg, deleting the egg before would mean that anything after del(src) would not be carried out.
In response to DeathAwaitsU
Tell him in text what to do so he can figure out what to do and know what each line does. Dont show him code, he isnt learning. That's why he keeps spamming the forums. He shouldn't even put his name in the credits we're doing it all.
In response to DeathAwaitsU
DeathAwaitsU wrote:
Delete your post about the mistaked post.

I thought you said you wouldn't post anymore?

> obj
> Egg
> icon = 'icons.dmi'
> icon_state = "egg"
> verb
> Hatch()
> set src in oview(1)//never set this to 0
> sleep(100)
> var/mob/Demon = new/mob/Demon(src.loc)
> del(src)
>


.


How do i delete the post?
In response to Dession
Ok Mecha read my edited post.
In response to DeathAwaitsU
Better but he still is just copy+pasting. Probably isn't even reading the comments.
In response to DeathAwaitsU
Ok, thnx death....
In response to Dession
Just because I'm a newbie doesnt mean that i copy and paste stuff all the time. If everybody copied and pasted everything all the time nothing would be diff...is my game diff yes...did i copy and paste everything...no...you were once a newbie yourself so..whatever
In response to Mecha Destroyer JD
Your obviously not learning or taking our advice and reading tutorials. I know a was a newbie, but I wasn't a n00b. No one is thrashing you for being new.