DICE PACKS BUNDLE
Page 2 of 2 First 12
  1. #11
    Ikael's Avatar
    Join Date
    Jan 2008
    Location
    Finland/Joensuu
    Posts
    2,383
    Here would be the code if you want to allow user to select initiative order as option (didn't bother make it .ext, just the code copy-pasted here)

    Code:
    <?xml version="1.0" encoding="iso-8859-1"?>
    <root version="3.0" logo="logo.png">
        <properties>
            <name>Initiative Order</name>
            <version>1.0</version>
            <author>Aki Heikkinen (Ikael)</author>
            <description>New option to define initiative order</description>
            <ruleset>Any</ruleset>
        </properties>
        <announcement text="Initiative Order v1.0" font="emotefont" />
        <base>
            <string name="option_label_INAD">Initiative: Order</string>
            <string name="option_val_desc">Descending</string>
            <string name="option_val_asc">Ascending</string>
            <script name="AscInitOrder">
                function onInit()
                    OptionsManager.registerOption2("INAD", true, "option_header_combat", "option_label_INAD", "option_entry_cycler", 
                         { labels = "option_val_asc", values = "asc", baselabel = "option_val_desc", baseval = "desc", default = "desc" })
                    OptionsManager.registerCallback("INAD", onOptionUpdate)
                    onOptionUpdate()
                end
                function onOptionUpdate()
                    if OptionsManager.isOption("INAD", "desc") then
                        CombatManager.setCustomSort(sortfuncDescending)
                        EffectManager.setInitAscending(false)
                    else
                        CombatManager.setCustomSort(sortfuncAscending)
                        EffectManager.setInitAscending(true)
                    end
                end
                function sortfuncDescending(...)
                    return CombatManager.sortfuncStandard(...)
                end
                function sortfuncAscending(...)
                    return not CombatManager.sortfuncStandard(...)
                end
            </script>
        </base>
    </root>
    "Alright, you primitive screwheads, listen up: THIS... is my BOOMSTICK!" -- Ash Williams, Army of Darkness

    Post your SavageWorlds ruleset feature requests and issue reports here!

  2. #12
    damned's Avatar
    Join Date
    Mar 2011
    Location
    Australia
    Posts
    26,649
    Blog Entries
    1
    Quote Originally Posted by Ikael View Post
    Here would be the code if you want to allow user to select initiative order as option (didn't bother make it .ext, just the code copy-pasted here)

    Code:
    more Ikael brilliance
    Much appreciated Ikael.
    May I reuse in MoreCore?

  3. #13
    Ikael's Avatar
    Join Date
    Jan 2008
    Location
    Finland/Joensuu
    Posts
    2,383
    Quote Originally Posted by damned View Post
    Much appreciated Ikael.
    May I reuse in MoreCore?
    Sure, be my guest
    "Alright, you primitive screwheads, listen up: THIS... is my BOOMSTICK!" -- Ash Williams, Army of Darkness

    Post your SavageWorlds ruleset feature requests and issue reports here!

  4. #14
    Fantastic work Gents!
    Cross-examining Lawyer: Mister Cogburn, in your four years as US Marshal, how many men have you shot?
    Rooster Cogburn: Shot? Or killed?
    Cross-examining Lawyer: Let us restrict it to killed so we may have a manageable figure!

  5. #15

  6. #16
    Quote Originally Posted by damned View Post
    With Ikaels permission Ive tested and included the code into the new release of MoreCore.
    Awesome! It's ready for download?
    Cross-examining Lawyer: Mister Cogburn, in your four years as US Marshal, how many men have you shot?
    Rooster Cogburn: Shot? Or killed?
    Cross-examining Lawyer: Let us restrict it to killed so we may have a manageable figure!

  7. #17
    damned's Avatar
    Join Date
    Mar 2011
    Location
    Australia
    Posts
    26,649
    Blog Entries
    1
    Quote Originally Posted by Meliath1742 View Post
    Awesome! It's ready for download?
    Nah... I usually wait till I have a little more before I push out a new build.
    3 or 4 minor changes in this build so far.

  8. #18
    Quote Originally Posted by damned View Post
    Nah... I usually wait till I have a little more before I push out a new build.
    3 or 4 minor changes in this build so far.
    Still awesome!
    Cross-examining Lawyer: Mister Cogburn, in your four years as US Marshal, how many men have you shot?
    Rooster Cogburn: Shot? Or killed?
    Cross-examining Lawyer: Let us restrict it to killed so we may have a manageable figure!

  9. #19
    damned's Avatar
    Join Date
    Mar 2011
    Location
    Australia
    Posts
    26,649
    Blog Entries
    1
    Bit of a thread necro here but MoreCore has a whole slew of new Initiative options now.

    You can ASC and DESC initiative.
    You can choose from built in aut init options for d4, d6, d10, 2d10, d10, d20, d100
    You can have static init
    You can have static init modifiers/bonuses
    And there is also a /init roll that lets you use any standard dice string for your init - eg /2d6+1d10+4

    Oh and options for auto rolling, auto rolling for NPCs only.
    And options for having no init but still tracking who has acted.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Log in

Log in