I'm making a dmod and I might need help.
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
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
First:
&story = 2;
Second:
if(&story == 2)
{
// Do something
}
&story = 2;
Second:
if(&story == 2)
{
// Do something
}
Or:
if (&story == 1)
{
//do something
&story = 2;
}
if (&story == 1)
{
//do something
&story = 2;
}
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.", ¤t_sprite);
&story = 1;
}
if (&story == 2)
{
say_stop(the story is now 2.", ¤t_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.", ¤t_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
//script 1
-----------
void talk(void)
{
if (&Story == 0)
{
say_stop("Talk to me when you have talked with that other guy over there.", ¤t_sprite);
&story = 1;
}
if (&story == 2)
{
say_stop(the story is now 2.", ¤t_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.", ¤t_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
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
if (&story == 2)
{
here, if you know what i mean??.
}
The story variable or global variables is very hard to explain
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?
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?
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
lol the Gamespy bugs are kickin' in again; someone answered his own question
It was me who wroted it
AAAAHHH!
I never noticed that. *Hits own head with a rock hard bannana and realises it was a banna shaped rock* Ouch!
I never noticed that. *Hits own head with a rock hard bannana and realises it was a banna shaped rock* Ouch!
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..
I understand what u said but now that u mention it
I might need help on making global vars.
I might need help on making global vars.
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..
make_global_int("Duck_talked");
You can place this under the story..