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

Thread: Veracity's Gingerbread City.ash

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

    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,146

    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,146

    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,146

    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.

Posting Permissions

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