Jump to content

Quest Container and Random POIs


Recommended Posts

Hi All,

 

I'm having some trouble with a couple of things, just wondered if anyone has any idea on how to resolve them or even just some advice/help really?

 

Quest Container

1) I cannot seem to change the quest container, it always appears to be the satchel, I have created my own container and that works fine, however, it does not appear to make a difference in the quest by specifying it. As you can see in the XML file below, why does it always default to the satchel and how can we adjust this as I do not want to use the Satchel since it wouldn't make any sense in the quest lore. As you can see, I have tried a variety of property names in the hopes that one of them might work (I am not sure where to find valid property names if anyone knows you would be a life saver!)

 

Random POIs

2) I am trying to get the player to fetch an item from a POI and then be directed to another POI (preferably not too distant) for the second part of the quest. While this works flawlessly by simply assigning a brand new quest and linking them, the player then doesn't get to return to the trader since the second quest is "handed" to them it doesn't associate the trader with that quest unfortunately. I would LOVE to get it working like this instead so the quest chain can be associated with the trader who gives the quest.

 

For now I am trying to do it ALL inside a single quest, but when I assign a second RandomPOIGoto - it is assigning the exact same POI that the player is in, which creates a problem since the quest rally point doesn't appear unless the player relogs - not exactly ideal.

 

How can I get around this? I've noticed some objectives use a 'distance' property but this doesn't seem to work for RandomPOIGoto. Even if I could set the BiomeType to Other to force the POI outside the current one, would be something to start with! I would just like a way to set a RandomPOIGoto (except for the one I am in, again valid properties for this would be amazing)

 

Any help is greatly appreciated, I am planning on releasing some tutorials for others once I have a better understanding myself which should help us all!

 

Quote

blocks.xml

 

<config>
    <append xpath="/blocks">
        <block name="Custom Quest Container">
            <property name="Extends" value="goreBlockHumanCorpse"/>
            <property name="CreativeMode" value="Player"/>
            <property name="CustomIcon" value="goreBlockHumanCorpse"/>
            <property name="Class" value="QuestLoot"/>
            <property name="Shape" value="ModelEntity"/>
            <property name="Model" value="#Entities/Zombies?Zombies/halfCorpsePrefab.prefab"/>
            <property name="Place" value="TowardsPlacerInverted"/>
            <property name="MaxDamage" value="5000"/>
            <property name="LootList" value="questCorpse"/>
            <property name="IndexName" value="FetchContainer"/>
            <property name="GndAlign" value="1"/>
            <property name="FilterTags" value="MC_building,SC_loot"/>
            <property name="StabilityIgnore" value="true"/> <!-- gravity shmavity -->
            <drop event="Harvest" name="foodRottingFlesh" count="1" tag="allHarvest" tool_category="Butcher"/>
            <drop event="Harvest" name="foodRottingFlesh" count="1,2" tag="butcherHarvest"/>
            <drop event="Harvest" name="resourcePotassiumNitratePowder" count="4,8" tag="butcherHarvest"/>
            <drop event="Destroy" name="resourceBone" count="5,9" tag="butcherHarvest"/>
        </block>
    </append>
</config>


quests.xml

<config>
    <insertBefore xpath="/quests/quest_list[@id='trader_quests']">
        <!-- Key and Item Fetch Quest -->
        <quest id="quest_KeyAndItemFetch_ThunderSn1per">
            <!-- Key,File,Type,UsedInMainMenu,NoTranslate,english -->
            <property name="group_name" value="Custom Quest 1"/>
            <property name="name" value="Custom Quest 1"/>
            <property name="subtitle" value="Custom Quest 1"/>
            <property name="description" value="Custom description"/>
            <property name="icon" value="ui_game_symbol_quest"/>
            <property name="repeatable" value="true"/>
            <property name="category_key" value="quest"/>
            <property name="difficulty" value="easy"/>
            <property name="difficulty_tier" value="1"/>
            <property name="offer" value="Custom offer note"/>
            <property name="statement_key" value="quest_fetch_statement"/>
            <property name="response_key" value="Key and Item Fetch ([DECEA3]{poi.distance} {poi.direction})"/>
            <property name="login_rally_reset" value="true"/>
            <property name="completiontype" value="TurnIn"/>
            <property name="completion" value="Custom completion note"/>

            <objective type="RandomPOIGoto">
                <property name="phase" value="1"/>
                <property name="nav_object" value="quest" />
            </objective>
            
            <objective type="RallyPoint">
                <property name="phase" value="2"/>
                <property name="nav_object" value="rally" />
            </objective>
            
            <objective type="FetchFromContainer">
                <property name="phase" value="3"/>
                <property name="quest_item_ID" value="3"/>
                <property name="item_count" value="1"/>
                <property name="default_container" value="Custom Quest Container"/>
                <property name="container" value="Custom Quest Container"/>
                <property name="new_container" value="Custom Quest Container"/>
                <property name="custom_container" value="Custom Quest Container"/>
                <property name="nav_object" value="fetch_container" />
            </objective>

            <objective type="POIStayWithin">
                <property name="phase" value="3"/>
                <property name="radius" value="25"/>
            </objective>
            
            <!-- Player read note, requires another phase as currently selects the same POI and player must logout -->
            
            <objective type="RandomPOIGoto">
                <property name="phase" value="4"/>
                <property name="nav_object" value="quest" />
            </objective>
            
            <objective type="RallyPoint">
                <property name="phase" value="5"/>
                <property name="nav_object" value="rally" />
            </objective>
            
            <objective type="FetchFromContainer">
                <property name="phase" value="6"/>
                <property name="quest_item_ID" value="4"/>
                <property name="item_count" value="1"/>
                <property name="default_container" value="Custom Quest Container"/>
            </objective>
            
            <!-- Remove key -->

            <objective type="POIStayWithin">
                <property name="phase" value="6"/>
                <property name="radius" value="25"/>
            </objective>
            
            <objective type="ReturnToNPC">
                <property name="phase" value="7"/>
                <property name="nav_object" value="return_to_trader" />
            </objective>

            <objective type="InteractWithNPC">
                <property name="phase" value="7"/>
                <property name="nav_object" value="return_to_trader" />
            </objective>
            
            <reward type="Exp" value="6500"/>
        </quest>
    </insertBefore>
    
    <append xpath="/quests/quest_list[@id='trader_quests']">
        <quest id="quest_KeyAndItemFetch_ThunderSn1per"/>
    </append>
    
    <append xpath="/quests/quest_items">
        <quest_item id="3" name="Quest Key" description="Custom key" icon="questItemKey" icon_color="255,255,255" />
        <quest_item id="4" name="Quest Letter" description="Custom letter" icon="questItemKey" icon_color="255,255,255" />
    </append>
</config>

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...