The Dink Network

I'm making a dmod and I might need help.

November 19th 2004, 09:58 PM
duckdie.gif
Can any one help me?

umm first i need help on how do i make a script change the story
eg. from 1 to 2.

And how do i make something happen only if it's on a certain story

November 19th 2004, 10:22 PM
wizardb.gif
Merlin
Peasant Male
 
First:

&story = 2;

Second:

if(&story == 2)
{
// Do something
}
November 20th 2004, 03:28 AM
fish.gif
Simeon
Peasant Male Netherlands
Any fool can use a computer. Many do. 
Or:

if (&story == 1)
{
//do something
&story = 2;
}

November 20th 2004, 06:00 AM
fairy.gif
Glennglenn
Peasant Male Norway steam
GlennGlenn doesn't want a custom title. 
I`ll explain it more easily than these others guys

//script 1
-----------
void talk(void)
{
if (&Story == 0)
{
say_stop("Talk to me when you have talked with that other guy over there.", &current_sprite);
&story = 1;
}

if (&story == 2)
{
say_stop(the story is now 2.", &current_sprite);
}
}

//script 2
-----------
void talk(void)
{
if (&story == 1;
{
say_stop("I see you`ve talked with that guy over there. Go talk to him again, he has more to say.", &current_sprite);
&story = 2;
}
}

//explaination
---------------
if (%story == 1)
{
This is whats going to happen when the story is 1
}

&story = 2; //This equals the variable &story to 1 so when you talk to the guy who have script 1 attached to him. he will say the tings that you`ve written in &story 1.

Remember the brackets they are usually the most errors that can contain a script. It can make the game freeze, if the bracket is not closed.
But you will learn about it


November 20th 2004, 05:53 PM
duckdie.gif
umm okk but is nt it two eqals signs?
November 20th 2004, 06:13 PM
fairy.gif
Glennglenn
Peasant Male Norway steam
GlennGlenn doesn't want a custom title. 
When you talking to him for the first time the story will equal to 1 because of this &Story = 1; and when he are finished to talk with guy number two the story wil equal to 2. so when the story is 2 then you must write something in the

if (&story == 2)
{
here, if you know what i mean??.
}

The story variable or global variables is very hard to explain
November 20th 2004, 10:45 PM
duckdie.gif
dont matter its ok now

i just need to find out how to make a moving savebot

i already got a human savebot , his legs animate but he doesent move

how do i make im' move?
November 20th 2004, 10:56 PM
duckdie.gif
well if you just want it to move you have to set an human brain to the savebot and put the speed to 1 or so
November 20th 2004, 11:15 PM
duckdie.gif
ok
November 21st 2004, 04:47 AM
fish.gif
Simeon
Peasant Male Netherlands
Any fool can use a computer. Many do. 
lol the Gamespy bugs are kickin' in again; someone answered his own question
November 21st 2004, 07:00 AM
fairy.gif
Glennglenn
Peasant Male Norway steam
GlennGlenn doesn't want a custom title. 
It was me who wroted it
November 21st 2004, 10:39 PM
duckdie.gif
AAAAHHH!

I never noticed that. *Hits own head with a rock hard bannana and realises it was a banna shaped rock* Ouch!
November 22nd 2004, 11:26 AM
fairy.gif
Glennglenn
Peasant Male Norway steam
GlennGlenn doesn't want a custom title. 
Did you understand the things i wrote up?. or did you understand how the global variable works? And if you need som help just contact me..
November 22nd 2004, 10:26 PM
duckdie.gif
I understand what u said but now that u mention it
I might need help on making global vars.
November 23rd 2004, 06:54 AM
fairy.gif
Glennglenn
Peasant Male Norway steam
GlennGlenn doesn't want a custom title. 
Thats pretty easy.. you must open then main.c and add a new variable like this.

make_global_int("Duck_talked");

You can place this under the story..
November 23rd 2004, 08:21 AM
fish.gif
Simeon
Peasant Male Netherlands
Any fool can use a computer. Many do. 
You forgot the ampersand (&) in the variable