Easier Hostage Diversion

This is just a quick mod that turns down the
time needed for the hostage diversion

Here is a random piece of code:
(original)
Code:
<Level>0<Vehicle_Classs>1</Vehicle_Classs>
                        <Min_Evasion_Time>.3</Min_Evasion_Time>
                        <Notoriety_Per_Sec>15</Notoriety_Per_Sec>
                        <Cash>250</Cash>
                        <Respect>300</Respect>
                        <Max_Evasion_Time>.4</Max_Evasion_Time>
                        <Hostages>1</Hostages>
                        </Level>
(modded)
Code:
<Level>0<Vehicle_Classs>1</Vehicle_Classs>
                        <Min_Evasion_Time>.1</Min_Evasion_Time>
                        <Notoriety_Per_Sec>1</Notoriety_Per_Sec>
                        <Cash>250</Cash>
                        <Respect>300</Respect>
                        <Max_Evasion_Time>.1</Max_Evasion_Time>
                        <Hostages>1</Hostages>
                        </Level>
All I have done is change the values in a couple of places.
This has to be done for every instance of every vehicle type.
The 'stat_unlockables.xtbl' controls the amount of hostage levels
that you have to complete before the reward (which is contained in
the 'unlockables.xtbl') is unlocked.
Code:
<Stat>
        <Name>Hostages Extorted</Name>
        <Unlockable_List>
            <Unlockable>
                <Value>10</Value>
                <Unlockable>Diversion_Hostage</Unlockable>
                </Unlockable>
            </Unlockable_List>
        <_Editor>
            <Category>Entries</Category>
            </_Editor>
        </Stat>
To change the amount necessary just change the number in the
<Value>10</Value> line.
Code:
<Unlockable>
        <Name>Diversion_Hostage</Name>
        <Type>
            <Vehicle>
                <Vehicles>
                    <Vehicle>
                        <Type>sp_atv01</Type>
                        <Variant>hostage</Variant>
                        </Vehicle>
                    </Vehicles>
                </Vehicle>
            </Type>
        <DisplayName>UNL_HOSTAGE</DisplayName>
        <Description>UNL_DESC_HOSTAGE</Description>
        <Image_Source>ui_ct_div_hostage</Image_Source>
        <_Editor>
            <Category>Entries:Diversions</Category>
            </_Editor>
        <Event_Text>UNL_HOSTAGE_EVENT</Event_Text>
        <Category>Vehicles</Category>
        <Pause_Menu_Label>UNL_HOSTAGE</Pause_Menu_Label>
        </Unlockable>

For more on changing rewards in the unlockables file see:
https://www.saintsrowmods.com/forum/threads/changing-rewards-within-the-unlockables-file-complete.21509/

This uses the GOTR files as a base however the vanilla unlockables.xtbl and stat_unlockables.xtbl files are the same.
So this mod should work just fine in vanilla.
 

Attachments

Last edited:
Back
Top