ID:143669
 
Code:

NPC
icon = 'NPC's.dmi'
icon_state = "Merlin"
Merlin
proc/Click()
usr<< "The war between Mario and Bowser continues! What is your job? Level up gain experince gather items and destroy the enemies! ALOT to do many bosses, ENJOY!"



NPC's.dm:2:error: s: expected end of statement
NPC's.dm:2: unterminated text (expecting ')


Problem description:
I am REALLY sorry for me askign so many question lately its just im really new to this and im just getting the hang of it so sorry for me asking many questions...
But I got two erros sadly..


The problem is the single quote you have in the 'NPC's.dmi'. You should probably avoid using these in filenames, since it's not good practice.

However, if you want to get around this, you have to escape the quote with a backslash. Like so 'NPC\'s.dmi'. I'm not sure if DM lets you do this with files though.


-TKL
In response to Kangchao
Kangchao wrote:
The problem is the single quote you have in the 'NPC's.dmi'. You should probably avoid using these in filenames, since it's not good practice.

However, if you want to get around this, you have to escape the quote with a backslash. Like so 'NPC\'s.dmi'. I'm not sure if DM lets you do this with files though.


-TKL
Ikay I fixed the errors
mob/NPC
icon = 'npcs.dmi'
icon_state = "Merlin"
Merlin
Click()
usr<< ("The war between Mario and Bowser continues! What is your job? Level up gain experince gather items and destroy the enemies! ALOT to do many bosses, ENJOY!")



But when i click on the NPC he will not talk...
Please help sorry again..
The icon file will have to be called NPCs.dmi, I'm afraid. Otherwise having the apostrophe screws it up (note that you only added the apostrophe in "NPCs" as a spelling error anyway, so removing it won't be a problem).

Also, you indented once too far for declaring the Merlin class. Select the Merlin line and the two lines below it, then press shift + tab.
In response to Jazzyfizzle
I believe you should take the ()s out.
In response to Jazzyfizzle
>mob/NPC
> Merlin
> icon = 'npcs.dmi'
> icon_state = "Merlin"
> Click()
> usr<< ("The war between Mario and Bowser continues! What is your job? Level up gain experince gather items and destroy the enemies! ALOT to do many bosses, ENJOY!")
>
>
>
>


try that you had the Merlin defined after the icons where set
In response to LucifersHellion
LucifersHellion wrote:
I believe you should take the ()s out.

Nope, that shouldn't affect it.
In response to Jazzyfizzle
Works fine for me. Sure you're clicking him right? Check to see if you've not made a mistake elsewhere.
In response to Swift19
That doesn't matter. That just means everything in the NPC branch will have the icon of Merlin.
In response to Swift19
Swift19 wrote:
> >mob/NPC
> > Merlin
> > icon = 'npcs.dmi'
> > icon_state = "Merlin"
> > Click()
> > usr<< ("The war between Mario and Bowser continues! What is your job? Level up gain experince gather items and destroy the enemies! ALOT to do many bosses, ENJOY!")
> >
> >
> >
> >

try that you had the Merlin defined after the icons where set

Well everyone this one must have effect because now it works!
Thank you :)
In response to Jazzyfizzle
Uhh... I think my brain died for a second there. How did that change anything?
In response to Kaiochao2536
I'm willing to bet that because he had made *every* NPC look like Merlin, he was clickong on the wrong NPC, thus it wasn't saying anything.