The Dink Network

Reply to Re: Potion puzzle

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:
 
 
January 31st 2018, 08:51 AM
wizardg.gif
LeprochaUn
Peasant He/Him Japan bloop
Responsible for making things not look like ass 
Since dink probably doesn't need to collect the ingredients and the mixing is most likely taking place in a single script, I don't think you need to use global variables for them.

This is definitely possible to do. As for doing a random potion, you could do something like:

random(5, 1);

if(&result == 1)
{
//Order 1st Potion
}
if(&result == 2)
{
//Order 2nd Potion
}
etc.

Then you could at the end of the script open up a choice menu, with the options.
MixStart:
wait(1);
choice_start();
set_y 240
set_title_color %
title_start();
"You should be making PotionX right now. What ingredients would you like to add?"
title_end();
"Ing1"
"Ing2"
"Ing3"
"Submit Potion"
choice_end();

if(&result == 1)
{
//add ing1 to the mix
}
if(&result == 2)
{
//add ing2 to the mix
}
etc...
goto MixStart;

if(&result == 4)
{
//submit potion
}

This is probably close to what you want to go for.