Options

  • Could somebody post a tutorial about how to add options to a MOD, so that when someone is activating it, MOD Manager will come up with a box that has dropdowns in it?

    (\__/)
    (='.'=) This is Bunny. Copy and paste bunny into your
    (" )_(" ) signature to help him gain world domination.

  • Right.


    You need to put these lines bettwen the </description> and </header> tag:


    </description>


    <option name="SELECT NAME GOES HERE" id=”1” safesave="false">
    <item id="0" name="OPTION NAME GOES HERE">
    </item>
    </option>


    </options>
    </header>


    You can have multiple <item> and <option> tags just change the id for each one to the next number.


    These options don't do anything yet. Now you need to make scripts that will be triggered when an option is selected and mod activated.


    After </header> tag place your scripts (for example):


    <data file="data\characters\costumes.ini" method="sectionreplace" options="1:0">
    <section>
    [Costume]
    nickname = trent
    </section>
    <dest>
    head = pi_pirate5_head
    </dest>
    <source>
    head = benchmark_female_head
    </source>
    </data>


    This parts triggers the right option: options="1:0" - first number (1) represents <option id="1"> and second number (0) represents <item id="0">. These 2 numbers depend on the option id and item id.


    In this case when a player would chose first item from option 1 the player character head would be changed to the one he selected.


    Good luck.