What's wrong with this script?
void talk(void) { freeze(1); say_stop("`%Welcome to " , ¤t_sprite); say_stop("Wow!" , 1); unfreeze(1); }
My
has a ; after it is the only difference
Edit: darnit meta always faster the ` is a different colour I thought
void talk(void);
has a ; after it is the only difference
Edit: darnit meta always faster the ` is a different colour I thought
That's wrong, MsDink.
Edit: you've probably forgot to place the sprite which the script refers to, lol.
Edit: you've probably forgot to place the sprite which the script refers to, lol.
If it doesn't work it's probably not attached properly. Or it is not an actual .c file. Copy a script from a different DMOD and edit that to make sure that your file is a good .c file. And double check the name you gave to the script and the one you have in the editor.
Also, make sure the object that the script is attached to is of the person/creature type.
Also, make sure the object that the script is attached to is of the person/creature type.
It might mess up, MsDink, even if it works most of the time, so you shouldn't write like that
Yeah it might work, but you shouldn't have them on procedures... Might cause problems (I don't really know the consequences).
Edit: Aw, IPD.
Edit: Aw, IPD.
oh ok thanks for the tip
deletes all instances
Edit dang you beat me as well IPD heh
deletes all instances
Edit dang you beat me as well IPD heh
As I said, Godley. Remove all the random ' marks.
the `% is the speech colour as I said before
This is how it appears to me.
void�talk(void)
{
freeze(1);
say_stop("`%Welcome to "�,�¤t_sprite);
say_stop("Wow!"�,�1);
unfreeze(1);
}
The boxes are ' to me.
void�talk(void)
{
freeze(1);
say_stop("`%Welcome to "�,�¤t_sprite);
say_stop("Wow!"�,�1);
unfreeze(1);
}
The boxes are ' to me.
Try using DSHFN. It highlights most mistakes in the script. Although I don't know about this one. If I'm the only one who sees the ' marks, I can't see any problems in the script.
What doesn't work with it? Does the game crash? Doesn't it run at all? What is exactly the problem?
I attached it to a signboard.
And when I pres sspacebar next to the signboard, nothing happens.
Dink says "I cant see anything here," and all the routine crap.
And when I pres sspacebar next to the signboard, nothing happens.
Dink says "I cant see anything here," and all the routine crap.
What is the name and the file extension of the script?
This may sound like a stupid question, but are you sure the sign has the script "sign2" attached, and not "sign2.c" or anything like that?
lol marpro as well -
is it a person / creature in the properties?
Hard?
is it a person / creature in the properties?
Hard?
did you put the file in the story folder of your d-mod?
The hardness nor the person/creature, nor most of the other stuff in the properties have nothing to do why this script wouldn't work.
This will sound stupid, but check the visions. Maybe only one of the visions has the script attached to the sign.
Or maybe make a copy of an actual working script. Take this non-working script and place it over the working one. Then check if it works in that environment. This will make sure if there's a problem with the script or something to do with the editor.
In the end, it will probably turn out to be something simple, which is always annoying.
This will sound stupid, but check the visions. Maybe only one of the visions has the script attached to the sign.
Or maybe make a copy of an actual working script. Take this non-working script and place it over the working one. Then check if it works in that environment. This will make sure if there's a problem with the script or something to do with the editor.
In the end, it will probably turn out to be something simple, which is always annoying.
Test it with this if you wanna (it works in mine)
Take the waits out (mine is paced for a reason)
edit eww it pastes weird... fixed i hope
void talk(void) { freeze(1); say_stop("Statue of Likeness",¤t_sprite); say_stop("Gaze into my eyes...",¤t_sprite); wait(600); say_stop("Stoppitt... you are freaking me out!",¤t_sprite); wait(300); unfreeze(1); }
Take the waits out (mine is paced for a reason)
edit eww it pastes weird... fixed i hope
um is there supposed to be a space between your ,(space)¤t_sprite?
Mine doesn't and still works...
Anyways best of luck
Mine doesn't and still works...
Anyways best of luck
You don't need to have the space there but it's far more clearer if you do.
Okay
someone write a code in which I can say
hey in white
hello in yellow.
someone write a code in which I can say
hey in white
hello in yellow.
DinkC editor gives me the following error report
Line#1 - Warning: This line is out of any function
Line#2 - Warning: This line is out of any function
Line#3 - Warning: This line is out of any function
Line#4 - Warning: This line is out of any function
Line#5 - Warning: This line is out of any function
Line#6 - Warning: This line is out of any function
Line#7 - Warning: This line is out of any function
Error: A script should contain at least one function, marked by "void"
Line#1 - Warning: This line is out of any function
Line#2 - Warning: This line is out of any function
Line#3 - Warning: This line is out of any function
Line#4 - Warning: This line is out of any function
Line#5 - Warning: This line is out of any function
Line#6 - Warning: This line is out of any function
Line#7 - Warning: This line is out of any function
Error: A script should contain at least one function, marked by "void"
void talk( void ) { say_stop("Welcome to Village" , ¤t_sprite); say_stop("'% Wow!" , 1); }
Even this doesnt work.
And a second question.
What is the file type supposed to be?
.txt or all files?
PS neither work
Did you create a new .txt file for the script? Instead you should copy another script and overwrite it with your own script, cause .txt files don't work.
Upload your d-mod on megaupload or something for us to check it out. It's fine if you strip out most of it if you want to keep it secret, just leave in the part you want fixed and we'll probably have it fixed in no time
All I have is one screen.
Deleted the almost complete D-Mod, just to vent out my frustration.
Deleted the almost complete D-Mod, just to vent out my frustration.
Now that you've vented your frustration, see if you can undelete it. I'm sure it'll save you some work.
What is the file type supposed to be?
.txt or all files?
As someone said, it needs to be a .c file... Even if it says just "script.c", it might still secretly be a text file, because Windows likes to hide useful information from the user. To make sure you can see the correct extension,
go to Tools -> Folder Options, and uncheck the "hide extensions for known file types" box.
If after that the script shows up with a .txt extension, you need to rename that to .c.
.txt or all files?
As someone said, it needs to be a .c file... Even if it says just "script.c", it might still secretly be a text file, because Windows likes to hide useful information from the user. To make sure you can see the correct extension,
go to Tools -> Folder Options, and uncheck the "hide extensions for known file types" box.
If after that the script shows up with a .txt extension, you need to rename that to .c.
As someone said, it needs to be a .c file
Oh, I said that, I said that! *Jumps in the air waving*
Oh, I said that, I said that! *Jumps in the air waving*
Try Notepad++. It has syntax highlighting and stuff. It's very popular.
Lol, I was just joking at how Scratcher doesn't dare to mention anything positive about me, cause he's got his "problems" with me.
What the...? You didn't even mention .c files, so by your logic, I have "problems" with Marpro and Metatarasal.
Rest assured, if I don't say anything positive about you, it's only because you're a ducking retard and there's nothing positive to say.
Godley: Sorry, that was unclear... Go to My Computer, and look for Tools on the menu bar.
Rest assured, if I don't say anything positive about you, it's only because you're a ducking retard and there's nothing positive to say.
Godley: Sorry, that was unclear... Go to My Computer, and look for Tools on the menu bar.
Was that yay for my not having a problem with meta, or for my being able to run the script?