The Dink Network

PROBLEM!!

February 27th 2006, 08:47 AM
pq_knight.gif
and1
Peasant He/Him
 
Druidboss-1.c

void talk (void)
{
freeze(1);
freeze(&current_sprite);
if (&druidsquest1 == 0);
{
say_stop("`4Dink we need your help!",&current_sprite);
say_stop("Ok,What do you need",1);
say_stop("`4We are out of healing powder",&current_sprite);
say_stop("So?",1);
say_stop("`4We need it for experiments and such",&current_sprite);
say_stop("Can't you get it yourself?",1);
say_stop("`4No,we are buisy can you go and talk to healer?",&current_sprite);
say_stop("Ok i guess",1);
say_stop("`4Hurry!",&current_sprite);
say_stop("I will",1);
&druidsquest1 = 1;
goto kraj
}
if (&druidsquest1 == 1)
{
say_stop("`4Do you have it?",&current_sprite);
say_stop("Nope not yet",&current_sprite);
say_stop("`4Please go get it",&current_sprite);
say_stop("Ok",1);
}
if (&druidsquest1 == 2);
{
say_stop("She sad she's gonna send it to you",1);
say_stop("`4Good",&current_sprite);
say_stop("Where is my reward?",1);
say_stop("`4Ah.Here it is",&current_sprite);
choice_start();
title_start();
Chose your reward:
title_end();
"Strenght +1"
"Defense +1"
"Magic +1"
choice_end();
if (&result == 1)
{
&druidsquest1 = 3;
&strenght += 1;
goto kraj
}
if (&result == 2)
{
&druidsquest1 = 3;
&defense += 1;
goto kraj
}
if (&result == 3)
{
&druidsquest1 = 3;
&magic += 1;
goto kraj
}
if (&druidsquest1 == 3)
{
say_stop("`4Hi Dink",&current_sprite);
say_stop("Hi",1);
}
kraj:
unfreeze(1);
unfreze(&current_sprite);
}

Healer.c

void talk (void)
{
freeze(1);
choice_start();
"Heal me"
(&druidsquest1 == 1) "Druid's told me to ask you to give em some healing powder"
"Leave"
choice_end();
if (&result == 1)
{
&life=&lifemax
goto kraj
}
if (&result == 2)
{
say_stop("`8Say to them that i will send it",&current_sprite);
wait(250);
say_stop("Ok",1);
&druidsquest1 = 2;
goto kraj
}
kraj:
unfreeze(1);
}

I marked with this sing what doesnt want to run
February 27th 2006, 09:02 AM
slimeg.gif
metatarasal
Bard He/Him Netherlands
I object 
I see nothing that doesn't work, but I do have a few clues:

- Try to make the names of your variables 8 letters long at most. A lot of time this causes problems for me.
- I guess you're using wordpad. If so take care that one commandline isn't saved on two lines in your script, because that would cause it not to work.(it is a rather long sentence after all)
February 27th 2006, 09:04 AM
duckdie.gif
Hm. Did you add this line :

make_global_int("&druidsquest1", 0);

in the main.c file?
February 27th 2006, 09:09 AM
slimeg.gif
metatarasal
Bard He/Him Netherlands
I object 
I supose so, otherwise he would have marked this passage too:

if (&druidsquest1 == 1)
{
say_stop("`4Do you have it?",&current_sprite);
say_stop("Nope not yet",&current_sprite);
say_stop("`4Please go get it",&current_sprite);
say_stop("Ok",1);
}

Or am I stupid? (The answer is probably yes)
February 27th 2006, 09:16 AM
duckdie.gif
I doubt he has tried everything, because those 'goto kraj' lines should crash too (they lack a semicolon).
February 27th 2006, 09:58 AM
pq_knight.gif
and1
Peasant He/Him
 
i made global integer but i will try to make it shorter than 8 letters
February 27th 2006, 10:09 AM
pq_knight.gif
and1
Peasant He/Him
 
I did all you sugested still not working
February 27th 2006, 12:57 PM
bonca.gif
Erwin
Peasant He/Him Netherlands
Friendship is magic 
is &druidsquest1 realy 1?
February 27th 2006, 01:11 PM
pq_knight.gif
and1
Peasant He/Him
 
i renamed &druidsquest1 to &druidq and it still not working
February 27th 2006, 01:28 PM
pq_knight.gif
and1
Peasant He/Him
 
MAIN.c
{
make_gobal_int("&druidq",0);
}

druidboss-1.c

void talk (void)
{
freeze(1);
freeze(&current_sprite);
if(&druidq == 0)
{
say_stop("`4Dink we need your help!",&current_sprite);
say_stop("Ok,What do you need",1);
say_stop("`4We are out of healing powder",&current_sprite);
say_stop("So?",1);
say_stop("`4We need it for experiments and such",&current_sprite);
say_stop("Can't you get it yourself?",1);
say_stop("`4No,we are buisy can you go and talk to healer?",&current_sprite);
say_stop("Ok i guess",1);
say_stop("`4Hurry!",&current_sprite);
say_stop("I will",1);
&druidq = 1;
goto done;
}
if(&druidq == 1)
{
say_stop("`4Do you have it?",&current_sprite);
say_stop("Nope not yet",&current_sprite);
say_stop("`4Please go get it",&current_sprite);
say_stop("Ok",1);
}
if(&druidq == 2)
{
say_stop("She sad she's gonna send it to you",1);
say_stop("`4Good",&current_sprite);
say_stop("Where is my reward?",1);
say_stop("`4Ah.Here it is",&current_sprite);
choice_start();
title_start();
Chose your reward:
title_end();
"Strenght +1"
"Defense +1"
"Magic +1"
choice_end();
if(&result == 1)
{
&druidq = 3;
&strenght += 1;
goto done;
}
if(&result == 2)
{
&druidq = 3;
&defense += 1;
goto done;
}
if(&result == 3)
{
&druidq = 3;
&magic += 1;
goto done;
}
if(&druidq == 3)
{
say_stop("`4Hi Dink",&current_sprite);
say_stop("Hi",1);
}
done:
unfreeze(1);
unfreze(&current_sprite);
}

healer.c

void talk (void)
{
freeze(1);
choice_start();
(&life<&lifemax) "Heal me"
(&druidq == 1) "Druid's told me to ask you to give em some healing powder"
"Leave"
choice_end();
if(&result == 1)
{
&life=&lifemax
goto kraj;
}
if(&result == 2)
{
say_stop("`8Say to them that i will send it",&current_sprite);
wait(250);
say_stop("Ok",1);
&druidq = 2
goto kraj;
}
kraj:
unfreeze(1);
}

ITS REWRITEN BUT IT STILL DOESNT WORK
February 27th 2006, 01:35 PM
bonca.gif
Erwin
Peasant He/Him Netherlands
Friendship is magic 
I mean is &druidq 1. Did you change it from 0 to 1 correctly in an other script? Like &druidq = 1?
February 27th 2006, 01:35 PM
bonca.gif
Christiaan
Bard They/Them Netherlands
Lazy bum 
Maybe you should try it without the "goto done"
Other than that, I don't know.
February 27th 2006, 01:41 PM
pq_knight.gif
and1
Peasant He/Him
 
Nope it isnt 1 just figured it out didnt tested that
February 27th 2006, 01:53 PM
bonca.gif
Erwin
Peasant He/Him Netherlands
Friendship is magic 
So.. does it work now?
February 27th 2006, 01:56 PM
pq_knight.gif
and1
Peasant He/Him
 
Yup i wrote in MAIN.c this
make_gobal_int("&druidq", 0);
insted of
make_gLobal_int("&druidq", 0);
February 27th 2006, 02:00 PM
bonca.gif
Erwin
Peasant He/Him Netherlands
Friendship is magic 
So this entire thread is for a little forgotten L!? ...
February 27th 2006, 02:01 PM
pq_knight.gif
and1
Peasant He/Him
 
LOL yeah.I thank evryone for helping me with there ideas.
<thinks>I am so stupid
February 27th 2006, 02:08 PM
bonca.gif
Christiaan
Bard They/Them Netherlands
Lazy bum 
Haha, most of the time it are these little errors that can drive you nuts for days. I think every D-Mod author can relate.
February 27th 2006, 02:11 PM
bonca.gif
Erwin
Peasant He/Him Netherlands
Friendship is magic 
yep! Check out "Is this happening only to me?" in off topic for that. (I can't make links. Sorry.)