The Dink Network

Reply to Choices in life and in choice menus

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:
 
 
July 9th 2018, 12:35 PM
duck.gif
toof
Peasant He/Him
I disagree. 
Gotta admit, recent activity brought me back that itch to make something...
Gotta admit, having several different ideas in head is great, but realizing them in a dmod is hard, and not because of scripting or hardness.

So, I'm in no position to test this, so please let me know if this is possible. I'll need a little bigger choice menu which has different choices depending on some &dumb_and_overly_longly_named_variable. So far, I've been doing things like this:
void talk( void )
{
   if (&dumb_and_overly_longly_named_variable == 1) {
   choice start();
   "Choice #1"
   "Choice #2"
   choice end();
   if(&result==1) {
   //random crap 1
   }
   if(&result==2) {
   //random crap 2
   }
   }
   if (&dumb_and_overly_longly_named_variable == 2) {
   choice start();
   "Choice #1"
   "Choice #2"
   "Choice #3" //now I have more choices
   choice end();
   if(&result==1) {
   //random crap 1
   }
   if(&result==2) {
   //random crap 2
   }
   if(&result==3) { 
   //random crap 2  //now I've chosen those choices
   }
   }
   }

As you can see, this is long and stupid and messy. Lionel Messi. My question, will this work:
void talk( void )
{
   choice start();
   "Choice #1"
   "Choice #2"
   if(&dumb_and_overly_longly_named_variable == 2) {
   "Choice #3"
   }
   choice end();
   if(&result==1) {
   //random crap 1
   }
   if(&result==2) {
   //random crap 2
   }
   if(&result==3) {
   //random crap, but much more observable for the poor soul that produced it, and has to deal 
   //with it
   }
}

If the answer is no, I blame Shevek