The Dink Network

Reply to Maybe if you type real slow I will understand

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
July 12th 2004, 09:03 PM
duckdie.gif
Alrighty then for a month now I have been hard at work trying to cobble together a D-mod.

In the process I have downloaded WinEdit, all of the tutorials, printed and read and read and reread all of them.

I have borrowed scripts from Dink, I borrowed scripts from the "Rudiments of Scripting".

And still I can't figure it all out. So now I am going to ask questions, most likely lots of them, more than you all will want to hear.

First I never, ever scripted before. Before this Dmod I never heard of C++, never bothered to look at programming, my skills were at the level of point and click. So forgive my ignorance - again, if you type real slow I might get it Yes be condesending if you need to, but be gentle this is my first time.

I started off with a Skeleton B blank - thought that would be easier than trying to copy and paste and cobble together a functioning File. BTW I have one which I tried to compile as per the Tutorials - it doesn't do anything.

Yes I have made a nice map, figured out how to use WinEdit to do it, using invisible fences for hard boxes, figured out when and where to use hard and not hard, I finally found a use for Background sprites and person sprites. I amazed myself when I made my first walking quaking duck, was thrilled when I got a red heart and a gold heart to not walk like a duck and fill life - Was flabbergasted that I was able to make a pill bug function, and it took me a little while longer to figure out why my bonca just wiggled around in the middle of the screen.

but there are things which I still do not understand. So here is the first.

Lets start with a simple problem. I have a sign which will direct the player to a place to get magic fire ball here is the script:

***********************************
void hit(void)
{
say("`3Big man hits the sign.", &current_sprite);
}

void talk(void)
{
say("The Witch!.",1);
wait(500);
wait(500);

say("`3Learn Magic!", &current_sprite);

wait(500);
wait(500);

say("She Lives to the south.",1);
}
***********************************************

Hit void doesn't work. I can stand there and hit the sign over and over again, nothing happens. Thunk, thunk thunk - no words. Its a sign which hangs ont he wall. I tried making the wall not hard, and using an invisable fence behind the sign which is hard, I tried a hard wall hard sign, I even went so far as to put the sign in the middle of the room. Hit void doesn't work.

Why two wait 500? Because one wait 500 causes the scripts to run together - meaning that Dink and the sign speak at the same time, well pretty darn close.

I get the conversation throught The space bar, still goes too fast for my liking but it works and you get the idea (I hope) that there is a witch who teaches magic and she lives to the south of the store you are in.

That's fine and well, but I want the funny message for hitting the sign too.

I tried it with this:

******************************
void talk(void)

{
freeze(1);

say_stop("`3Learn Magic - The Witch", &current_sprite);

wait(200);

say_stop("She lives to the south", 1);
unfreeze(1);
}

void hit(void)
{

say_stop("`3Big man hits the sign!", &current_sprite);

wait(200);

say_stop("Shut up, you stupid sign!", 1);

}
*****************************

Now this one I get a conversation when I hit, but nothing when I hit the space bar.

Both of these scripts were coppied from the Rudiments of Scripting, all I changed was the words said in the conversations.

Did I miss something?

Pray tell me what am I doing wrong? I copied both of these scripts and only changed the sentences which are the conversation.