PDA

View Full Version : Nightmist - Cobb's Knob (ASH)



Nightmist
03-28-2006, 06:17 AM
Note: Just read the forum standards (Note number 4 about separate scripts), moved from a reply to its own topic.


void Quest_Knob_HaremOutfit()
{
if( item_amount( $item[Knob Goblin harem veil]) < 1)
{
add_item_condition( 1, $item[Knob Goblin harem veil]);
}
if( item_amount( $item[Knob Goblin harem pants]) < 1)
{
add_item_condition( 1, $item[Knob Goblin harem pants]);
}
if( item_amount( $item[Knob Goblin perfume]) < 1)
{
add_item_condition( 1, $item[Knob Goblin perfume]);
}
while( item_amount( $item[Knob Goblin perfume]) < 1 || item_amount( $item[Knob Goblin harem pants]) < 1 || item_amount( $item[Knob Goblin harem veil]) < 1)
{
adventure( 1, $location[Harem]);
}
}

void Quest_Knob()
{
equip( $item[Knob Goblin harem veil]);
equip( $item[Knob Goblin harem pants]);
use( 1, $item[Knob Goblin perfume]);
adventure( 1, $location[The King's Chamber]);
}

void main()
{
council();
if( item_amount( $item[Knob Goblin perfume]) < 1 || item_amount( $item[Knob Goblin harem pants]) < 1 || item_amount( $item[Knob Goblin harem veil]) < 1)
{
Quest_Knob_HaremOutfit();
}
if( item_amount( $item[Knob Goblin perfume]) >= 1 && item_amount( $item[Knob Goblin harem pants]) >= 1 && item_amount( $item[Knob Goblin harem veil]) >= 1)
{
Quest_Knob();
}
council();
}

macman104
03-30-2006, 05:43 AM
In your code, if you have the while statement checking the item amounts (which I prefer to the conditions), do you need the conditions adds in there as well?

cjswimmer
03-30-2006, 11:01 AM
I did the sme thing in my script to work around a Mafia bug that was causing me to stop adventuring before my conditions were met and move on to the next script statement. It seems 6.9 has a more severe bug in the harem that doesn't just exit the loop but stops adventuring altogether and terminates the script.

Nightmist
03-31-2006, 05:26 AM
Actually I intended those conditionals because when mafia hits a choice adventure and one of the outcomes provides one of the conditional items, it auto uses that choice rather then the pre-chosen one in the settings and since the harem does infact have choice adventures that give items I put the conditionals in there.

macman104
03-31-2006, 06:52 AM
Actually I intended those conditionals because when mafia hits a choice adventure and one of the outcomes provides one of the conditional items, it auto uses that choice rather then the pre-chosen one in the settings and since the harem does infact have choice adventures that give items I put the conditionals in there.
Well, you could also ya'know set the options to complete the outfit. And that sorta deals with your reason for usin the conditions.

Nightmist
03-31-2006, 08:23 AM
Indeed, just noticed that now that you mentioned it... I need thicker glasses apparently >>

Ill just leave it there for lazy//forgetful people that dont usually go into the settings >>.


Edit: Actually does that complete outfit also get perfume?