Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
Add this to a perk
<triggered_effect trigger="onSelfKilledOther" action="AddBuff" buff="buffCountKills"/>
then assign the perk in the startup quest
buffCountKills - counts to X then gives the bundle then quits
<objective type="ZombieKill" id="quest- [ADD ZOMBIE NAMES]" value="x" />
I've never tried but in theory (or in my mind rather) it should.
If you are trying to chain into other quest (i.e part 1 is to kill 100 zombies, part 2 is kill 500, etc) you could add phase="x" after value.
You can also make it so the quests start after the basic survival in quests.xml if you wish (which would probably be more ideal).
<insertAfter xpath="/quests/quest[@id='quest_whiteRiverCitizen1']/reward[@type='Exp']" >
<reward type="Quest" id="(INSERT YOUR QUEST NAME HERE)">
<property name="chainquest" value="false"/> </reward>
</insertAfter>
>>No objective class 'ZombieKill found!
So I dont seem to be able to define a quest to track number of zombie kills.
I can track the number of kills using a buff in buffs.xml
<triggered_effect trigger="onSelfKilledOther" action="ModifyCVar" cvar="$buffKillZomiesChangedDuration" operation="subtract" value="1" />
So I can count down the number of kills . But I cant give myself a reward from the buff. The line:
<reward type="Item" id="resourceZombieKillsBundle" value="1" />
Doesnt do anytthing
I have tested the resourceZombieKillsBundle, so its a valid resource.
Anyone know how to give the player a resource outside of a quest?
//I created a Buff called 'buffKillZomiesCount' that updates (or counts down in this case) a var for each zombie kill using
'onSelfKilledOther' - code is:
<effect_group>
<triggered_effect trigger="onSelfKilledOther" action="ModifyCVar" cvar="$buffKillZomiesCountDuration" operation="subtract" value="1" >
<requirement name="EntityTagCompare" target="other" tags="walker,crawler,spider,zombie,feral,radiated"/>
</triggered_effect>
</effect_group>
//Then when the count gets to 0 I call an Event
<triggered_effect trigger="onSelfBuffUpdate" action="CallGameEvent" event="action_give_KillZombieReward">
<requirement name="CVarCompare" cvar="$buffKillZomiesCountDuration" operation="LTE" value="0"/>
</triggered_effect>
//in game events.xml I created an event with the main action being giving out the reward:
<append xpath="/gameevents">
<action_sequence name="action_give_KillZombieReward">
<action class="AddItems">
<property name="added_items" value="myRewardBundle"/>
<property name="added_item_counts" value="1"/>
</action>
</action_sequence>
</append>
//need to confirm I can add the buff on new start (quest_BasicSurvival1) using:
<property name="add_buffs" value="buffKillZomiesCount" /> or similar
In my buffs.xml file I added the following:
<append xpath="/buffs/buff[starts-with(@name, 'buffStatusCheck01')]">
<effect_group>
<triggered_effect trigger="onSelfBuffUpdate" action="AddBuff" buff="buffKillZomiesChanged">
<requirement name="!HasBuff" buff="buffGameEventController"/>
</triggered_effect>
</effect_group>
</append>
This will add the buff to the player on first spawn and on respawn after death correctly.
The buff: buffStatusCheck01 is a system buff that runs on initialisation