What is the problem
this script isnt worcking plz helpvoid
void talk(void)
{
freeze(1);
if(&story==0)
{
say_stop("`5Hullo Lad",¤t_sprite);
}
if(&story==1)
{
say_stop("The captain told me to go tell you to get the people ready to leave",1);
say_stop("`5 Aye lad il get everyone ready you go down to the boat",1);
&story==2;
}
if(&story==2)
{
say_stop("`5Lad you should go to the boat now",¤t_sprite);
}
unfreeze(1);
}
btw i use notepad and windinkedit for my d-mod
void talk(void)
{
freeze(1);
if(&story==0)
{
say_stop("`5Hullo Lad",¤t_sprite);
}
if(&story==1)
{
say_stop("The captain told me to go tell you to get the people ready to leave",1);
say_stop("`5 Aye lad il get everyone ready you go down to the boat",1);
&story==2;
}
if(&story==2)
{
say_stop("`5Lad you should go to the boat now",¤t_sprite);
}
unfreeze(1);
}
btw i use notepad and windinkedit for my d-mod
Ummm...maybe you should have a [goto end;] at the end of each choice...like this:
void talk(void)
{
freeze(1);
if(&story==0)
{
say_stop("`5Hullo Lad",¤t_sprite);
goto end;
}
if(&story==1)
{
say_stop("The captain told me to go tell you to get the people ready to leave",1);
say_stop("`5 Aye lad il get everyone ready you go down to the boat",1);
&story==2;
goto end;
}
if(&story==2)
{
say_stop("`5Lad you should go to the boat now",¤t_sprite);
goto end;
}
end:
unfreeze(1);
}
void talk(void)
{
freeze(1);
if(&story==0)
{
say_stop("`5Hullo Lad",¤t_sprite);
goto end;
}
if(&story==1)
{
say_stop("The captain told me to go tell you to get the people ready to leave",1);
say_stop("`5 Aye lad il get everyone ready you go down to the boat",1);
&story==2;
goto end;
}
if(&story==2)
{
say_stop("`5Lad you should go to the boat now",¤t_sprite);
goto end;
}
end:
unfreeze(1);
}
You haven't said what the problem is with your script, but the thing that leaps out at me is that you've put
when you should actually put
because you only need one = sign.
Also, some smaller things: You haven't got a freeze(¤t_sprite); or an unfreeze(¤t_sprite);
Also, dink is saying the "Aye lad il get everyone ready you go down to the boat" line instead of the sailor (I assume that's who he is).
&story == 2;
when you should actually put
&story = 2;
because you only need one = sign.
Also, some smaller things: You haven't got a freeze(¤t_sprite); or an unfreeze(¤t_sprite);
Also, dink is saying the "Aye lad il get everyone ready you go down to the boat" line instead of the sailor (I assume that's who he is).
its stiill not worcking and when story is on 0 it wont even say that some small error
Hmm, I'm not too sure... There's not really anything else I notice.
It could possibly becuase you put
instead of
I don't really know if that would affect anything to be honest, but it's the only other thing I can think of...
It could possibly becuase you put
say_stop("`5Hullo Lad",¤t_sprite); //There is no space between the comma and the ¤t_sprite
instead of
say_stop("`5Hullo Lad", ¤t_sprite); //There IS a space between the comma and the ¤t_sprite
I don't really know if that would affect anything to be honest, but it's the only other thing I can think of...
That might well be the problem, although it doesn't matter in the example you provided.
Try writing
Also, does the script run at all? If you add
Try writing
if (&story == 0)instead of
if(&story==0)
Also, does the script run at all? If you add
void hit() { say("Die unworking mongrel!",1); }to the script, does Dink say it when you hit him? If not, it might be a simple typo, or the script might be a SCRIPT.c.txt file instead of a SCRIPT.c file.
Thanks guys i used every hint from u guys and it seems to be worcking so thanks XD its good to knowe thers some friendly ppl at dinknetworck XD
Friendly people?! Where??!!
I'll get rid of 'em...
I'll get rid of 'em...
Try to remember what went wrong so you won't make the same mistake again, that's the learning process you need to go through