M1cromanagement
Refugee
Hello Guys i´m struggling with some xpath lines, i want to make a game without exp gain when you kill a zombie,harvesting,repairing, etc , just learning the schematics gives you exp and quests.
entityclasses.xml line 227 -248
<!-- Notes from meeting 03 Jun
increase upgrade xp by 500%
increase repair xp by 1000%
nerf quest XP 50%
nerf kill 25%
remove sell xp (to be determined)
PlayerExpGain, Tags: Kill, Harvesting, Upgrading, Crafting, Selling, Quest, Looting, Party, Other
-->
<!-- wasteland gamestage bonus
<passive_effect name="GameStage" operation="base_add" value="75">
<requirement name="InBiome" biome="8"/>
</passive_effect>
-->
<!-- <passive_effect name="PlayerExpGain" operation="perc_add" value=".2" tags="Repairing"/>
<passive_effect name="PlayerExpGain" operation="perc_add" value="-.25" tags="Kill"/>
<passive_effect name="PlayerExpGain" operation="perc_add" value="-.5" tags="Quest"/>
-->
<passive_effect name="PlayerExpGain" operation="perc_add" value="5" tags="Upgrading"/>
<!--
<set xpath="/entity_classes/entity_class[@name='playerMale']/effect_group/passive_effect[@name='PlayerExpGain']/@value">-1</set>
--> thats working but how i can set/edit the tag to ?
or/and
how i can make this correct for the tags for the kill,harvesting upgrading etc ?
entityclasses.xml line 227 -248
<!-- Notes from meeting 03 Jun
increase upgrade xp by 500%
increase repair xp by 1000%
nerf quest XP 50%
nerf kill 25%
remove sell xp (to be determined)
PlayerExpGain, Tags: Kill, Harvesting, Upgrading, Crafting, Selling, Quest, Looting, Party, Other
-->
<!-- wasteland gamestage bonus
<passive_effect name="GameStage" operation="base_add" value="75">
<requirement name="InBiome" biome="8"/>
</passive_effect>
-->
<!-- <passive_effect name="PlayerExpGain" operation="perc_add" value=".2" tags="Repairing"/>
<passive_effect name="PlayerExpGain" operation="perc_add" value="-.25" tags="Kill"/>
<passive_effect name="PlayerExpGain" operation="perc_add" value="-.5" tags="Quest"/>
-->
<passive_effect name="PlayerExpGain" operation="perc_add" value="5" tags="Upgrading"/>
Code:
<configs>
<!--
<set xpath="/entity_classes/entity_class[@name='playerMale']/effect_group/passive_effect[@name='PlayerExpGain']/@value">-1</set>
-->
<set xpath="/entity_classes/entity_class[contains(@name, 'player')]/property[@name='ExperienceGain']/@value">0</set>
<set xpath="/entity_classes/entity_class[contains(@name, 'zombie')]/property[@name='ExperienceGain']/@value">0</set>
<set xpath="/entity_classes/entity_class[contains(@name, 'animal')]/property[@name='ExperienceGain']/@value">0</set>
<append xpath="/entity_classes/entity_class/[@name='playerMale']">
<effect_group name="PlayerExpGain">
<passive_effect name="PlayerExpGain" operation="perc_add" value="-1" tags="Kill"/>
<passive_effect name="PlayerExpGain" operation="perc_add" value="-1" tags="Harvesting"/>
<passive_effect name="PlayerExpGain" operation="perc_add" value="-1" tags="Upgrading"/>
<passive_effect name="PlayerExpGain" operation="perc_add" value="-1" tags="Crafting"/>
<passive_effect name="PlayerExpGain" operation="perc_add" value="-1" tags="Selling"/>
</effect_group>
</append>
</configs>
<!--
<set xpath="/entity_classes/entity_class[@name='playerMale']/effect_group/passive_effect[@name='PlayerExpGain']/@value">-1</set>
--> thats working but how i can set/edit the tag to ?
or/and
how i can make this correct for the tags for the kill,harvesting upgrading etc ?
Last edited by a moderator: