The Dink Network

Reply to Dynamically generated choices

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:
 
 
December 17th, 02:41 AM
duck.gif
toof
Peasant He/Him
I disagree. 
So uhh, I'm trying to generate a dynamic choice menu. Surprisingly, the script below somewhat works
  int &crap = 0;
  choice_start();
    set_y 200
    set_title_color 15
    title_start();
    Dynamic choice
    title_end();
    loop:
    if(&crap < 3)
    {
      "Option &crap"
      &crap += 1;
      goto loop;
    }
  choice_end();
  say("I've picked &result", 1);


The only problem is that choice menu is never shown, and last choice is always picked up somehow (number 2 in this case). I've attached this to talk script. At first I've attached it to hit(), and thought pressing CTRL is what messes things up. Apparently not.

Has anyone tried to do this, and can it be done?