My D-Mod Script... Need Help
Can someone just teach me how to do a basic script? Do it on these lines.
S1=Sprite 1 S2=Sprite 2
S1 "Hi Priest. Can you tell me where Sith lives?"
S2 "God is with you, child."
S1 "Um... Great. But where does Sith live?"
S2 "I will only talk if you ask nicely."
S1 "Just tell me where Sith lives."
S2 "Learn to talk like a Buddhist would"
S1 "WHERE THE HELL DOES SITH LIVE YOU STUPID PRIEST!!"
S2 "......"
S1 "Fine. Can you please tell me where Sith lives."
S2 "Thank you. He lives in the house that is in the North-West corner of our town.
S1 "Thank you (in a whisper) you stupid priest"
S2 "What did you say?"
S1 "I said go to hell you fricken' priest"
S2 (While Dink walks away) "........."
S1=Dink S2=Priest
Please help me. (This is from the soon to be script of Dink and the Bonca)
(Redink1, SimonK, Carrie2004, anyone that has made a 30-800 screen D-Mod)
S1=Sprite 1 S2=Sprite 2
S1 "Hi Priest. Can you tell me where Sith lives?"
S2 "God is with you, child."
S1 "Um... Great. But where does Sith live?"
S2 "I will only talk if you ask nicely."
S1 "Just tell me where Sith lives."
S2 "Learn to talk like a Buddhist would"
S1 "WHERE THE HELL DOES SITH LIVE YOU STUPID PRIEST!!"
S2 "......"
S1 "Fine. Can you please tell me where Sith lives."
S2 "Thank you. He lives in the house that is in the North-West corner of our town.
S1 "Thank you (in a whisper) you stupid priest"
S2 "What did you say?"
S1 "I said go to hell you fricken' priest"
S2 (While Dink walks away) "........."
S1=Dink S2=Priest
Please help me. (This is from the soon to be script of Dink and the Bonca)
(Redink1, SimonK, Carrie2004, anyone that has made a 30-800 screen D-Mod)
void main( void )
{
}
void talk( void )
{
freeze(1);
say_stop("Hi Priest. Can you tell me where Sith lives?", 1);
say_stop("`2God is with you, child.", ¤t_sprite); //etc
unfreeze(1);
}
{
}
void talk( void )
{
freeze(1);
say_stop("Hi Priest. Can you tell me where Sith lives?", 1);
say_stop("`2God is with you, child.", ¤t_sprite); //etc
unfreeze(1);
}
What does everything mean?
You can probably guess most of it... the stuff in the brackets after void talk( void ) is what happens after you "talk" to the person (i.e., hit spacebar.)
The stuff in the brackets after void main( void ) is what gets run when you walk onto the screen (actually when the sprite is drawn, I think, but whatever.) So if you wanted to make the dude walk around you'd put stuff there. I'll let you figure the rest out, since you seem reasonably sharp.
The stuff in the brackets after void main( void ) is what gets run when you walk onto the screen (actually when the sprite is drawn, I think, but whatever.) So if you wanted to make the dude walk around you'd put stuff there. I'll let you figure the rest out, since you seem reasonably sharp.
I guess one more thing needs explanation... sprite numbers. Dink is 1. The sprite whose script is running is ¤t_sprite, which is an integer. Sprite numbers are used in all 4 commands!
All that is pretty simple anyway, everyone better know that freeze freezes you
void talk();
{
freeze(1);
freeze(¤t_sprite);
say_stop("`2Hello Dink",¤t_sprite);
say_stop("Thank You",1);
unfreeze(1);
unfreeze(¤t_sprite);
}
{
freeze(1);
freeze(¤t_sprite);
say_stop("`2Hello Dink",¤t_sprite);
say_stop("Thank You",1);
unfreeze(1);
unfreeze(¤t_sprite);
}
To be honest, I don't think you need help like the topic title suggests, you just couldn't be bothered to read a tutorial (make that any tutorial as a talking script is one of the first things they'll teach you) - people recommend this file to start. Then this one is quite handy too (or the Windows Help File version). Even in a D-Mod with less than 30 screens we see working conversation-scripts
Don't forget the good ol' EasyDinkC
Weird, I learned scripting mostly by just looking at the source and trying to write dmods. But I suppose it's a personal thing... I usually learn more from doing homework than I do in class.
Yeah, but you can't advice people to simply look at the source, mess around and see where they'll finish Source files are useful but some reading on how scripts work and all is what most should start with. Even if it was only the tut1.txt file in the develop directory (and then pick up the rest of the commands by looking at sources and the DinkC Reference).
But you don't almost need to know scripting with EasyDinkC only what global variables are and local and syntax.
You do - if I remember correctly it'll only help you in making shop scripts, for all other things it has a dropdown-menu to insert the procedures and all the commands. If you don't know the commands, you can fiddle around a bit but you will need tutorials eventually.
yeah, I needed Ruidiemnts of Scripting, before I could script with ti actually. I remember I startet to nag Redink1 on his mail asking for if statement and such
I don't know if he can remember it though. Anyway... EasyDinkC will atleast help you very on your way if you just know the basic of DinkC
I don't know if he can remember it though. Anyway... EasyDinkC will atleast help you very on your way if you just know the basic of DinkC
How do you use Easy DinkC?