The Dink Network

Reply to Re: Does this work?

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
May 5th 2006, 09:44 PM
spike.gif
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.