Script Question
I know this is really, really basic, but I am having trouble getting a sprite to talk. I am using WinDinkEdit. The sprite is a tree. It has no brain. I am using CEdit to write scripts. Here is what I wrote:
say("I am glad you are here, Dink", 1);
I also tried:
void say("I am glad you are here, Dink", 1);
Using WDE, I attached this script (called test.c) to the tree. However, it doesn't make the tree speak. I know this is basic, but I need some help. Also, how do I add graphics? I want to add like a hole in the mountain side for Dink to crawl thru. The hole is not inthe sprite inventory of WDE. How do I get WDE to recognize the hole so I can add it? Thanx!
say("I am glad you are here, Dink", 1);
I also tried:
void say("I am glad you are here, Dink", 1);
Using WDE, I attached this script (called test.c) to the tree. However, it doesn't make the tree speak. I know this is basic, but I need some help. Also, how do I add graphics? I want to add like a hole in the mountain side for Dink to crawl thru. The hole is not inthe sprite inventory of WDE. How do I get WDE to recognize the hole so I can add it? Thanx!
: I know this is really, really basic, but I am having trouble getting a sprite to talk. I am using WinDinkEdit. The sprite is a tree. It has no brain. I am using CEdit to write scripts. Here is what I wrote:
: say("I am glad you are here, Dink", 1);
: I also tried:
: void say("I am glad you are here, Dink", 1);
: Using WDE, I attached this script (called test.c) to the tree. However, it doesn't make the tree speak. I know this is basic, but I need some help. Also, how do I add graphics? I want to add like a hole in the mountain side for Dink to crawl thru. The hole is not inthe sprite inventory of WDE. How do I get WDE to recognize the hole so I can add it? Thanx!
why dont you write:
void talk(void)
{
say("I am glad you are here, Dink", 1);
}
: say("I am glad you are here, Dink", 1);
: I also tried:
: void say("I am glad you are here, Dink", 1);
: Using WDE, I attached this script (called test.c) to the tree. However, it doesn't make the tree speak. I know this is basic, but I need some help. Also, how do I add graphics? I want to add like a hole in the mountain side for Dink to crawl thru. The hole is not inthe sprite inventory of WDE. How do I get WDE to recognize the hole so I can add it? Thanx!
why dont you write:
void talk(void)
{
say("I am glad you are here, Dink", 1);
}
: : I know this is really, really basic, but I am having trouble getting a sprite to talk. I am using WinDinkEdit. The sprite is a tree. It has no brain. I am using CEdit to write scripts. Here is what I wrote:
: : say("I am glad you are here, Dink", 1);
: : I also tried:
: : void say("I am glad you are here, Dink", 1);
: : Using WDE, I attached this script (called test.c) to the tree. However, it doesn't make the tree speak. I know this is basic, but I need some help. Also, how do I add graphics? I want to add like a hole in the mountain side for Dink to crawl thru. The hole is not inthe sprite inventory of WDE. How do I get WDE to recognize the hole so I can add it? Thanx!
: why dont you write:
: void talk(void)
: {
: say("I am glad you are here, Dink", 1);
: }
Wow, I guess 2 years out of college and away from C++ has really degraded my knowledge. I wasn't even calling the prodedure ot using the brackets. Wow. It worked, but Dink said it when talking to the tree. I assigned it to the tree. How can I get the tree to say it and not Dink? Dink says it and it stays with him as he walks away from the tree.
: : say("I am glad you are here, Dink", 1);
: : I also tried:
: : void say("I am glad you are here, Dink", 1);
: : Using WDE, I attached this script (called test.c) to the tree. However, it doesn't make the tree speak. I know this is basic, but I need some help. Also, how do I add graphics? I want to add like a hole in the mountain side for Dink to crawl thru. The hole is not inthe sprite inventory of WDE. How do I get WDE to recognize the hole so I can add it? Thanx!
: why dont you write:
: void talk(void)
: {
: say("I am glad you are here, Dink", 1);
: }
Wow, I guess 2 years out of college and away from C++ has really degraded my knowledge. I wasn't even calling the prodedure ot using the brackets. Wow. It worked, but Dink said it when talking to the tree. I assigned it to the tree. How can I get the tree to say it and not Dink? Dink says it and it stays with him as he walks away from the tree.
: : : I know this is really, really basic, but I am having trouble getting a sprite to talk. I am using WinDinkEdit. The sprite is a tree. It has no brain. I am using CEdit to write scripts. Here is what I wrote:
: : : say("I am glad you are here, Dink", 1);
: : : I also tried:
: : : void say("I am glad you are here, Dink", 1);
: : : Using WDE, I attached this script (called test.c) to the tree. However, it doesn't make the tree speak. I know this is basic, but I need some help. Also, how do I add graphics? I want to add like a hole in the mountain side for Dink to crawl thru. The hole is not inthe sprite inventory of WDE. How do I get WDE to recognize the hole so I can add it? Thanx!
: : why dont you write:
: : void talk(void)
: : {
: : say("I am glad you are here, Dink", 1);
: : }
: Wow, I guess 2 years out of college and away from C++ has really degraded my knowledge. I wasn't even calling the prodedure ot using the brackets. Wow. It worked, but Dink said it when talking to the tree. I assigned it to the tree. How can I get the tree to say it and not Dink? Dink says it and it stays with him as he walks away from the tree.
Ok, this is coming from someone who's still fumbling through her first real dmod, so don't trust it...
But I think what you want to do is attatch something like this to the tree:
void talk(void)
{
say("I am glad you are here, Dink.", &current_sprite);
}
So the tree should say it, not Dink. I hope.
: : : say("I am glad you are here, Dink", 1);
: : : I also tried:
: : : void say("I am glad you are here, Dink", 1);
: : : Using WDE, I attached this script (called test.c) to the tree. However, it doesn't make the tree speak. I know this is basic, but I need some help. Also, how do I add graphics? I want to add like a hole in the mountain side for Dink to crawl thru. The hole is not inthe sprite inventory of WDE. How do I get WDE to recognize the hole so I can add it? Thanx!
: : why dont you write:
: : void talk(void)
: : {
: : say("I am glad you are here, Dink", 1);
: : }
: Wow, I guess 2 years out of college and away from C++ has really degraded my knowledge. I wasn't even calling the prodedure ot using the brackets. Wow. It worked, but Dink said it when talking to the tree. I assigned it to the tree. How can I get the tree to say it and not Dink? Dink says it and it stays with him as he walks away from the tree.
Ok, this is coming from someone who's still fumbling through her first real dmod, so don't trust it...
But I think what you want to do is attatch something like this to the tree:
void talk(void)
{
say("I am glad you are here, Dink.", &current_sprite);
}
So the tree should say it, not Dink. I hope.
: : : : I know this is really, really basic, but I am having trouble getting a sprite to talk. I am using WinDinkEdit. The sprite is a tree. It has no brain. I am using CEdit to write scripts. Here is what I wrote:
: : : : say("I am glad you are here, Dink", 1);
: : : : I also tried:
: : : : void say("I am glad you are here, Dink", 1);
: : : : Using WDE, I attached this script (called test.c) to the tree. However, it doesn't make the tree speak. I know this is basic, but I need some help. Also, how do I add graphics? I want to add like a hole in the mountain side for Dink to crawl thru. The hole is not inthe sprite inventory of WDE. How do I get WDE to recognize the hole so I can add it? Thanx!
: : : why dont you write:
: : : void talk(void)
: : : {
: : : say("I am glad you are here, Dink", 1);
: : : }
: : Wow, I guess 2 years out of college and away from C++ has really degraded my knowledge. I wasn't even calling the prodedure ot using the brackets. Wow. It worked, but Dink said it when talking to the tree. I assigned it to the tree. How can I get the tree to say it and not Dink? Dink says it and it stays with him as he walks away from the tree.
: Ok, this is coming from someone who's still fumbling through her first real dmod, so don't trust it...
: But I think what you want to do is attatch something like this to the tree:
: void talk(void)
: {
: say("I am glad you are here, Dink.", &current_sprite);
: }
: So the tree should say it, not Dink. I hope.
You git it. That did the trick. Thanx!!
: : : : say("I am glad you are here, Dink", 1);
: : : : I also tried:
: : : : void say("I am glad you are here, Dink", 1);
: : : : Using WDE, I attached this script (called test.c) to the tree. However, it doesn't make the tree speak. I know this is basic, but I need some help. Also, how do I add graphics? I want to add like a hole in the mountain side for Dink to crawl thru. The hole is not inthe sprite inventory of WDE. How do I get WDE to recognize the hole so I can add it? Thanx!
: : : why dont you write:
: : : void talk(void)
: : : {
: : : say("I am glad you are here, Dink", 1);
: : : }
: : Wow, I guess 2 years out of college and away from C++ has really degraded my knowledge. I wasn't even calling the prodedure ot using the brackets. Wow. It worked, but Dink said it when talking to the tree. I assigned it to the tree. How can I get the tree to say it and not Dink? Dink says it and it stays with him as he walks away from the tree.
: Ok, this is coming from someone who's still fumbling through her first real dmod, so don't trust it...
: But I think what you want to do is attatch something like this to the tree:
: void talk(void)
: {
: say("I am glad you are here, Dink.", &current_sprite);
: }
: So the tree should say it, not Dink. I hope.
You git it. That did the trick. Thanx!!
: : I know this is really, really basic, but I am having trouble getting a sprite to talk. I am using WinDinkEdit. The sprite is a tree. It has no brain. I am using CEdit to write scripts. Here is what I wrote:
: : say("I am glad you are here, Dink", 1);
: : I also tried:
: : void say("I am glad you are here, Dink", 1);
: : Using WDE, I attached this script (called test.c) to the tree. However, it doesn't make the tree speak. I know this is basic, but I need some help. Also, how do I add graphics? I want to add like a hole in the mountain side for Dink to crawl thru. The hole is not inthe sprite inventory of WDE. How do I get WDE to recognize the hole so I can add it? Thanx!
: why dont you write:
: void talk(void)
: {
: say("I am glad you are here, Dink", 1);
: }
Didn't you leave dink?
: : say("I am glad you are here, Dink", 1);
: : I also tried:
: : void say("I am glad you are here, Dink", 1);
: : Using WDE, I attached this script (called test.c) to the tree. However, it doesn't make the tree speak. I know this is basic, but I need some help. Also, how do I add graphics? I want to add like a hole in the mountain side for Dink to crawl thru. The hole is not inthe sprite inventory of WDE. How do I get WDE to recognize the hole so I can add it? Thanx!
: why dont you write:
: void talk(void)
: {
: say("I am glad you are here, Dink", 1);
: }
Didn't you leave dink?
I don't mean this to sound to hard (RTFM!) but have you read DinkC.txt? It goes over all the basics of scripting, you're find it in develop folder.
Of course, no one will fault you if you need a little extra help at first, some aspects are less than obvious.
Of course, no one will fault you if you need a little extra help at first, some aspects are less than obvious.
: I know this is really, really basic, but I am having trouble getting a sprite to talk. I am using WinDinkEdit. The sprite is a tree. It has no brain. I am using CEdit to write scripts. Here is what I wrote:
: say("I am glad you are here, Dink", 1);
: I also tried:
: void say("I am glad you are here, Dink", 1);
If you want to refresh your memory, try some of the tutorials that are available, and read through the tut1.txt, develop.txt and check DinkC Help.
You could also give my file TROS a try, that is about the really, really basic stuff.
Good luck!
: say("I am glad you are here, Dink", 1);
: I also tried:
: void say("I am glad you are here, Dink", 1);
If you want to refresh your memory, try some of the tutorials that are available, and read through the tut1.txt, develop.txt and check DinkC Help.
You could also give my file TROS a try, that is about the really, really basic stuff.
Good luck!
: : : I know this is really, really basic, but I am having trouble getting a sprite to talk. I am using WinDinkEdit. The sprite is a tree. It has no brain. I am using CEdit to write scripts. Here is what I wrote:
: : : say("I am glad you are here, Dink", 1);
: : : I also tried:
: : : void say("I am glad you are here, Dink", 1);
: : : Using WDE, I attached this script (called test.c) to the tree. However, it doesn't make the tree speak. I know this is basic, but I need some help. Also, how do I add graphics? I want to add like a hole in the mountain side for Dink to crawl thru. The hole is not inthe sprite inventory of WDE. How do I get WDE to recognize the hole so I can add it? Thanx!
: : why dont you write:
: : void talk(void)
: : {
: : say("I am glad you are here, Dink", 1);
: : }
: Didn't you leave dink?
Nope. You must be thinking of someone else. I never left.
: : : say("I am glad you are here, Dink", 1);
: : : I also tried:
: : : void say("I am glad you are here, Dink", 1);
: : : Using WDE, I attached this script (called test.c) to the tree. However, it doesn't make the tree speak. I know this is basic, but I need some help. Also, how do I add graphics? I want to add like a hole in the mountain side for Dink to crawl thru. The hole is not inthe sprite inventory of WDE. How do I get WDE to recognize the hole so I can add it? Thanx!
: : why dont you write:
: : void talk(void)
: : {
: : say("I am glad you are here, Dink", 1);
: : }
: Didn't you leave dink?
Nope. You must be thinking of someone else. I never left.
: I don't mean this to sound to hard (RTFM!) but have you read DinkC.txt? It goes over all the basics of scripting, you're find it in develop folder.
: Of course, no one will fault you if you need a little extra help at first, some aspects are less than obvious.
Yes, I read DinkC.txt. Maybe I missed that part. I even printed it out and have it here on my computer table.
: Of course, no one will fault you if you need a little extra help at first, some aspects are less than obvious.
Yes, I read DinkC.txt. Maybe I missed that part. I even printed it out and have it here on my computer table.
: : : : I know this is really, really basic, but I am having trouble getting a sprite to talk. I am using WinDinkEdit. The sprite is a tree. It has no brain. I am using CEdit to write scripts. Here is what I wrote:
: : : : say("I am glad you are here, Dink", 1);
: : : : I also tried:
: : : : void say("I am glad you are here, Dink", 1);
: : : : Using WDE, I attached this script (called test.c) to the tree. However, it doesn't make the tree speak. I know this is basic, but I need some help. Also, how do I add graphics? I want to add like a hole in the mountain side for Dink to crawl thru. The hole is not inthe sprite inventory of WDE. How do I get WDE to recognize the hole so I can add it? Thanx!
: : : why dont you write:
: : : void talk(void)
: : : {
: : : say("I am glad you are here, Dink", 1);
: : : }
: : Didn't you leave dink?
: Nope. You must be thinking of someone else. I never left.
Ehm... I was referring to theprophet
: : : : say("I am glad you are here, Dink", 1);
: : : : I also tried:
: : : : void say("I am glad you are here, Dink", 1);
: : : : Using WDE, I attached this script (called test.c) to the tree. However, it doesn't make the tree speak. I know this is basic, but I need some help. Also, how do I add graphics? I want to add like a hole in the mountain side for Dink to crawl thru. The hole is not inthe sprite inventory of WDE. How do I get WDE to recognize the hole so I can add it? Thanx!
: : : why dont you write:
: : : void talk(void)
: : : {
: : : say("I am glad you are here, Dink", 1);
: : : }
: : Didn't you leave dink?
: Nope. You must be thinking of someone else. I never left.
Ehm... I was referring to theprophet