Does this work?
Sorry for botherig you all with my questions, but I could use a helping hand here
When I use talk choices (like "Say hello")can I do a choice like this? (&story == 1)"Say blaha"
And then take another choice after the first choice like: will you go there yet, dink?
"Yes" "no"? Just say if you want me to explain my problem more detailed

When I use talk choices (like "Say hello")can I do a choice like this? (&story == 1)"Say blaha"
And then take another choice after the first choice like: will you go there yet, dink?
"Yes" "no"? Just say if you want me to explain my problem more detailed

Yes that's possible. And yes explain more detailed if you want to know more.
But how do I do then? If "Say Hello" is result 1, and that (&story == 1)"Say blaha" is result 2... what will the choise "yes" and "no" have?
You mean something like this?
choice_start()
"Say hello"
(&story == 1) "Say blabla"
choice_end()
wait(250);
if (&result == 1)
{
// the say hello part
}
if (&result == 2)
{
// the say blabla part
// you can place the yes/no choice here
choice_start()
"Yes"
"No"
choice_end()
wait(250);
if (&result == 1)
{
// the yes part
}
if (&result == 2)
{
// the no part
}
}
choice_start()
"Say hello"
(&story == 1) "Say blabla"
choice_end()
wait(250);
if (&result == 1)
{
// the say hello part
}
if (&result == 2)
{
// the say blabla part
// you can place the yes/no choice here
choice_start()
"Yes"
"No"
choice_end()
wait(250);
if (&result == 1)
{
// the yes part
}
if (&result == 2)
{
// the no part
}
}
Wait a second...
choice_start()
"Say hello"
(&story == 1) "Say blabla"
choice_end()
wait(250);
if (&result == 1)
{
// the say hello part
}
if (&result == 2)
{
// the say blabla part
// you can place the yes/no choice here
choice_start()
"Yes"
"No"
choice_end()
wait(250);
if (&result == 1)
{
// the yes part
}
if (&result == 2)
{
// the no part
}
}
How do the game now which one who is the first "if (&result == 1)"? It occure at two places
I marked it with
if you're not understand what i mean
choice_start()
"Say hello"
(&story == 1) "Say blabla"
choice_end()
wait(250);


{
// the say hello part
}
if (&result == 2)
{
// the say blabla part
// you can place the yes/no choice here
choice_start()
"Yes"
"No"
choice_end()
wait(250);


{
// the yes part
}
if (&result == 2)
{
// the no part
}
}
How do the game now which one who is the first "if (&result == 1)"? It occure at two places

I marked it with

If you'd indent the script, you'll see that the second "if (&result == 1)" is nested inside the first "if (&result == 2)". The second "if (&result == 1)" takes the &result from the second choice statement

But when I tested, it didn't work... Could it be another error then?

Well... you should have &story defined in main.c, and this code should be in some procedure (like void talk( void ), void hit( void ), or whatever), but otherwise... what didn't work?
The only thing that should happen is:
Nothing if you first select the first option.
Another choice menu if you first select the second option.
Nothing if you select the first option in the second choice
Nothing if you select the second option in the second choice
The only thing that should happen is:
Nothing if you first select the first option.
Another choice menu if you first select the second option.
Nothing if you select the first option in the second choice
Nothing if you select the second option in the second choice
He won't talk to me when I take that option, it just freezes.
I have a second question... After the second chocie "yes" or "no" could I put in a THIRD choice after?
I have a second question... After the second chocie "yes" or "no" could I put in a THIRD choice after?

Yes, and you could have a fourth or a fifth. Really, as many choice prompts as you want to have. There's no limit.
Nice
I'll complete the script and test it... Don't be suprised if I'll continue this thread


god dam... The program get an error and close itselfs when i come to this part
Can anyone see what I'm doing wrong? (marked the place when the game just F&¤K up with
)
say_stop("`4One of your strenght points.", ¤t_sprite);
wait(200);
say_stop("Uh... Okay.", 1);
wait(200);




choice_start();
set_y 240
set_title_color 1
title_start();
"TITLE TITLE TITLE TITLE TITLE TITLE."
title_end();
"Yes"
"No"
wait(250);
if (&result == 1)
{
say_stop("`0blaha blaha blaha.", ¤t_sprite);
wait(200);

Can anyone see what I'm doing wrong? (marked the place when the game just F&¤K up with

say_stop("`4One of your strenght points.", ¤t_sprite);
wait(200);
say_stop("Uh... Okay.", 1);
wait(200);




choice_start();
set_y 240
set_title_color 1
title_start();
"TITLE TITLE TITLE TITLE TITLE TITLE."
title_end();
"Yes"
"No"
wait(250);
if (&result == 1)
{
say_stop("`0blaha blaha blaha.", ¤t_sprite);
wait(200);
say_stop("`4One of your strenght points.", ¤t_sprite);
wait(200);
say_stop("Uh... Okay.", 1);
wait(200);
choice_start();
set_y 240
set_title_color 1
title_start();
TITLE TITLE TITLE TITLE TITLE TITLE.
title_end();
"Yes"
"No"
wait(250);
choice_end();
//there should be choice_end(); command here
if (&result == 1)
{
say_stop("`0blaha blaha blaha.", ¤t_sprite);
wait(200);
wait(200);
say_stop("Uh... Okay.", 1);
wait(200);
choice_start();
set_y 240
set_title_color 1
title_start();
TITLE TITLE TITLE TITLE TITLE TITLE.
title_end();
"Yes"
"No"
wait(250);
choice_end();
//there should be choice_end(); command here
if (&result == 1)
{
say_stop("`0blaha blaha blaha.", ¤t_sprite);
wait(200);
I think you forgot to write choice_end(); after the option. That's why its not working. Plus you don't need to write the title in inverted commas
Hehe I'm back
I know how to add stuffs, like exp or something... but can you take a way stuffs to? I want to take away a magic point when Dink answer wrong to a guys... Is it possible?

I know how to add stuffs, like exp or something... but can you take a way stuffs to? I want to take away a magic point when Dink answer wrong to a guys... Is it possible?
This will substract one magic point:
&magic -= 1;
The following:
&strength -= 1;
&defense -= 1;
work the same.
&magic -= 1;
The following:
&strength -= 1;
&defense -= 1;
work the same.
Heh, I'm a bit confused... If I have we say THREE talk-choices how will the game now which one who belongs to the right choice? Example:
choice_start();
"Blabla"
(&story == 1)"Blahaa"
"leave"
choice_end();
if (&result == 1)
{
//
the result ONE goes here...
}
if (&result == 2)
{
//blahaa leads to ANOTHER choise
choice_start();
"Yeah"
"Nope"
choice_end();
if (&result == 1)
{
//
NOTE THIS IS THE SECOND ONE!
}
and so on, I think you see my point (I hope you do...) My didn't work when I did my script like this, so please someone, explain for me how dinkeditor will know!
choice_start();
"Blabla"
(&story == 1)"Blahaa"
"leave"
choice_end();
if (&result == 1)
{
//


}
if (&result == 2)
{
//blahaa leads to ANOTHER choise
choice_start();
"Yeah"
"Nope"
choice_end();
if (&result == 1)
{
//


}
and so on, I think you see my point (I hope you do...) My didn't work when I did my script like this, so please someone, explain for me how dinkeditor will know!
Where did you get the idea you only use 1 and 2? "leave" is the third choice, so you do
if (&result == 3)
EDIT: Sorry, I didn't read your post very carefully.
if (&result == 3)
EDIT: Sorry, I didn't read your post very carefully.

Make sure you nest the code correctly. For example:
choice_start()
"Choice option 1"
(&condition == 1) "Choice option 2"
"Choice option 3"
choice_end()
if (&result == 1)
{
// this is for Choice option 1
}
if (&result == 2)
{
// this is for Choice option 2
choice_ start()
"Choice option 4"
"Choice option 5"
choice_end()
if (&result == 1)
{
// this is for Choice option 4
}
if (&result == 2)
{
// this is for Choice option 5
}
}
if (&result == 3)
{
// this is for Choice option 3
}
As you can see, each choice statement has his own &results and they're numbered 1, 2, 3, etc. If you have a choice menu again, then you simply start again with 1, 2, 3 etc. Also note that if there's a &condition to let a menu-item show up or not, the game determines the correct choice option so you can keep numbering them 1, 2, 3 even if the second choice item (in this example) doesn't actually show up ingame.
Edit: Note to self: don't use spaces in codeposts, Miasma doesn't like that when you edit a post
choice_start()
"Choice option 1"
(&condition == 1) "Choice option 2"
"Choice option 3"
choice_end()
if (&result == 1)
{
// this is for Choice option 1
}
if (&result == 2)
{
// this is for Choice option 2
choice_ start()
"Choice option 4"
"Choice option 5"
choice_end()
if (&result == 1)
{
// this is for Choice option 4
}
if (&result == 2)
{
// this is for Choice option 5
}
}
if (&result == 3)
{
// this is for Choice option 3
}
As you can see, each choice statement has his own &results and they're numbered 1, 2, 3, etc. If you have a choice menu again, then you simply start again with 1, 2, 3 etc. Also note that if there's a &condition to let a menu-item show up or not, the game determines the correct choice option so you can keep numbering them 1, 2, 3 even if the second choice item (in this example) doesn't actually show up ingame.
Edit: Note to self: don't use spaces in codeposts, Miasma doesn't like that when you edit a post

The next miasma should really have [code][/code] tags...
Better emphasis now, Phoenix?
Better emphasis now, Phoenix?

Wait a second... That you said Simeon did I know, I mean something like this:
choice_start()
"Choice option 1"
(&condition == 1) "Choice option 2"
"Choice option 3"
choice_end()
if (&result == 1)
{
// this is for Choice option 1
}
if (&result == 2)
{
// this is for Choice option 2
choice_ start()
"Choice option 4"
"Choice option 5"
choice_end()
if (&result == 1)
{
// this is for Choice option 4
}
if (&result == 2)
{
// this is for Choice option 5
}
}
if (&result == 3)
{
// this is for Choice option 3
}
How do I continue on a started choise menu if I'm already starting on a new? I mean... If he say choise 1: "Yes" there comes a new choise menu right away with the new options... How do the game know if I say "No"? That's the part that really are confusing me ( Please say if I explain too bad I know I'm very bad at it )
choice_start()
"Choice option 1"
(&condition == 1) "Choice option 2"
"Choice option 3"
choice_end()
if (&result == 1)
{
// this is for Choice option 1
}
if (&result == 2)
{
// this is for Choice option 2
choice_ start()
"Choice option 4"
"Choice option 5"
choice_end()
if (&result == 1)
{
// this is for Choice option 4
}
if (&result == 2)
{
// this is for Choice option 5
}
}
if (&result == 3)
{
// this is for Choice option 3
}
How do I continue on a started choise menu if I'm already starting on a new? I mean... If he say choise 1: "Yes" there comes a new choise menu right away with the new options... How do the game know if I say "No"? That's the part that really are confusing me ( Please say if I explain too bad I know I'm very bad at it )
If I understand you correctly, this is what you want:
choice_start()
"Choice option 1"
(&condition == 1) "Choice option 2"
"Choice option 3"
choice_end()
int &old_result = &result;
if (&result == 1)
{
// this is for Choice option 1
}
if (&result == 2)
{
// this is for Choice option 2
choice_ start()
"Choice option 4"
"Choice option 5"
choice_end()
if (&result == 1)
{
// this is for Choice option 4
}
if (&result == 2)
{
// this is for Choice option 5
}
}
if (&old_result == 3)
{
// this is for Choice option 3
}
&old_result equals the value of the first &result, so with that we still know what choice the player picked after the second &result overwrites the first.
choice_start()
"Choice option 1"
(&condition == 1) "Choice option 2"
"Choice option 3"
choice_end()
int &old_result = &result;
if (&result == 1)
{
// this is for Choice option 1
}
if (&result == 2)
{
// this is for Choice option 2
choice_ start()
"Choice option 4"
"Choice option 5"
choice_end()
if (&result == 1)
{
// this is for Choice option 4
}
if (&result == 2)
{
// this is for Choice option 5
}
}
if (&old_result == 3)
{
// this is for Choice option 3
}
&old_result equals the value of the first &result, so with that we still know what choice the player picked after the second &result overwrites the first.