Page 4 of 4 FirstFirst ... 2 3 4
Results 31 to 38 of 38

Thread: Veracity's Gingerbread City.ash

  1. #31
    Developer Veracity's Avatar
    Join Date
    Mar 2006
    Location
    The Unseelie Court
    Posts
    11,195

    Default

    Revision 76 does not assume that an unexpected non-combat/non-choice spent a turn in the Gingerbread City.
    Ph'nglui mglw'nafh Cthulhu
    R'lyeh wgah-nagl fhtagn.

  2. #32
    Developer Veracity's Avatar
    Join Date
    Mar 2006
    Location
    The Unseelie Court
    Posts
    11,195

    Default

    I think I forgot my principle that not everybody wants to run the way I do.

    Revision 77 adds the following:

    Code:
    // Should we abort the script for an unexpected NC (presumably a counter)?
    //
    // Ideally, you'd set up a Counter Script and it would handle it and
    // allow the script just continue, but if you want this script to abort
    // to let you to handle the counter manually, set this to true. You can
    // continue the script by simply running it again.
    
    boolean vgc_abort_for_counters = define_property( "VGC.AbortForCounters", "boolean", "false" ).to_boolean();
    I haven't actually tested this yet, although I will after rollover.
    What could go wrong?
    Ph'nglui mglw'nafh Cthulhu
    R'lyeh wgah-nagl fhtagn.

  3. #33
    Developer Veracity's Avatar
    Join Date
    Mar 2006
    Location
    The Unseelie Court
    Posts
    11,195

    Default

    Yeah, it works. If you set that property to true, it stops on the semirare counter and tells you to run the script again when you have dealt with the counter.
    Ph'nglui mglw'nafh Cthulhu
    R'lyeh wgah-nagl fhtagn.

  4. #34

    Default

    Code:
    > call scripts\Gingerbread City.ash
    
    Advance the clock by five minutes
    Adventure for 3 turns in Gingerbread Upscale Retail District
    Look for "candy" in the Gingerbread Train Station on turn 5
    Adventuring in The Gingerbread City stops.
    That plan requires 6 turns but you only have 4 left.
    It actually only uses 3 turns. Where it gets 6 from I have no idea. There's only 5 things it's doing so even if it was somehow counting the NC's as costing turns it still pulls another from somewhere.

  5. #35
    Developer Veracity's Avatar
    Join Date
    Mar 2006
    Location
    The Unseelie Court
    Posts
    11,195

    Default

    Code:
        // Make sure we have enough turns left to execute the plan
        int available = my_adventures();
        int needed = vgc_last_turn - vgc_ginger_turns_used;
        if ( available < needed ) {
    	// *** Perhaps user_confirm() to allow executing partial plan.
    	string message = "That plan requires " + needed + " turns but you only have " + available + " left.";
    	print( message );
    	return;
        }
    It doesn't account for non-combats being free. I'll fix it, by and by.
    Ph'nglui mglw'nafh Cthulhu
    R'lyeh wgah-nagl fhtagn.

  6. #36
    Junior Member
    Join Date
    Jan 2007
    Posts
    18

    Default

    Hey! Trying to run the script but its having trouble equipping outfits with foldable items that are not in their required state.

  7. #37

    Default

    I'm probably just being an idiot by not working this out, but whenever I try to run the script, it just displays the following:

    "Adventuring in The Gingerbread City stops.
    Farming sprinkles
    Gained 0 sprinkles in 0 turns. Sprinkles/Adventure = 0
    Cumulative = 0 sprinkles in 0 turns. Sprinkles/Adventure = 0
    Spent 0 sprinkles. Cumulative = 0"

    Nothing I do seems to be making it actually adventure. Anyone have any idea why?

  8. #38
    Developer Veracity's Avatar
    Join Date
    Mar 2006
    Location
    The Unseelie Court
    Posts
    11,195

    Default

    The script has a big section in the front labelled "Configuration" which tells you which settings you need to think about.
    You can also choose a "quest", which will override noon and/or midnight, as appropriate, to do certain things for you.

    The script comes with a configureVGC.ash script which lets you choose a "plan". It prompts you. If you don't select one, it prints your choices and tells you what you have now. It says this for me:

    Code:
    Available plans:
    
    alligators - bigger alligators, adventure in sewer
    candy - advance clock, adventure in retail district, get candy
    gingerbeard - adventure in retail district, banish tech bro
    gingerservo - adventure in industrial zone, banish mugger
    robbery - activate vigilantes
    
    VGC.AdvanceClock=false
    VGC.Morning=Gingerbread Upscale Retail District
    VGC.Noon=candy
    VGC.Afternoon=Gingerbread Upscale Retail District
    VGC.Midnight=counterfeit city
    VGC.Night=Gingerbread Upscale Retail District
    VGC.Banishes=gingerbread tech bro
    VGC.AbortForCounters=false
    VGC.Outfit=Gingerbread City
    VGC.Familiar=Chocolate Lab
    VGC.Quest=blackmail+raygun
    
    Validating current plan using today's remaining turns (1-30):
    Day 1 of quest "blackmail+raygun"
    Overriding midnight choice: "counterfeit city" -> "Muscle"
    Adventure for 9 turns in Gingerbread Upscale Retail District
    Look for "candy" in the Gingerbread Train Station on turn 10
    Adventure for 9 turns in Gingerbread Upscale Retail District
    Look for "Muscle" in the Gingerbread Train Station on turn 20
    Adventure for 10 turns in Gingerbread Upscale Retail District
    Adventuring in The Gingerbread City stops.
    Ph'nglui mglw'nafh Cthulhu
    R'lyeh wgah-nagl fhtagn.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •