Jump to content

Remove Vulture !


Lovenio

Recommended Posts

Good morning !
 

Sorry in advance for my bad English, I use a translator!

I would like to disable the vultures in A21. But everything I try doesn't work. Here is my code

 

<configs>
	<set xpath="//entity[@name='animalZombieVulture']/@name">none</set>
</configs>


I have the impression that the architecture of the "entitygroups" file has changed since A21. I don't see how to manage to deactivate the vultures.

Can you help me ?

Link to comment
Share on other sites

This is what I used back in a20: I've changed these names to reflect the different naming convention, but haven't tried it in 21:-
 

<set xpath="/entitygroups/entitygroup[contains(@name, '')]/entity[contains(@name, 'animalZombieVulture')]/@name">zombieMoe</set>
    <set xpath="/entitygroups/entitygroup[contains(@name, '')]/entity[@name='animalDireWolf']/@name">zombieMoe</set>
    <set xpath="/entitygroups/entitygroup[contains(@name, '')]/entity[@name='animalZombieBear']/@name">zombieMoe</set>

 

I don't see why it won't work. Other ways may exist, too.

 

 

Link to comment
Share on other sites

The structure in entitygroups has changed:

 

A21 entitygroups example

    <!-- *** BIOME_ZOMBIES_FOREST_DOWNTOWN_NIGHT_GROUP -->
    <entitygroup name="ZombiesForestDowntownNight">
        zombieSpider
        zombieSpiderFeral, .3
        zombieBoe
        zombieBoeFeral, .3
        zombieJoe
        zombieJoeFeral, .3
        zombieSteve
        zombieSteveFeral, .3
        zombieTomClark
        zombieTomClarkFeral, .3
        zombieMoe
        zombieMoeFeral, .3
        zombieYo
        zombieYoFeral, .3
        zombieBusinessMan, 1.5
        zombieBusinessManFeral, .5
        zombieArlene
        zombieArleneFeral, .3
        zombieDarlene
        zombieDarleneFeral, .3
        zombieMarlene
        zombieMarleneFeral, .3
        zombieNurse
        zombieNurseFeral, .3
        zombiePartyGirl
        zombiePartyGirlFeral, .3
        zombieFatHawaiian
        zombieFatHawaiianFeral, .3
        zombieSteveCrawlerFeral, .3
        zombieFatCop, .4
        zombieFatCopFeral, .15
        zombieSoldier, .4
        zombieSoldierFeral, .15
        animalZombieDog, .3
        animalWolf, .3
    </entitygroup>

 

You need to use the new method shown here

 

 

Edited by BFT2020 (see edit history)
Link to comment
Share on other sites

7 hours ago, BFT2020 said:

La structure des groupes d'entités a changé :

 

Exemple de groupes d'entités A21

    
     
    

 

Vous devez utiliser la nouvelle méthode montrée ici

 



Oh ! Okay ! Thanks !

I just read what you gave me.
If I just want to change the spawn probability, does it work the same? Sorry for my questions, I'm new to XML.

 

7 hours ago, paulj_3 said:

This is what I used back in a20: I've changed these names to reflect the different naming convention, but haven't tried it in 21:-
 

<set xpath="/entitygroups/entitygroup[contains(@name, '')]/entity[contains(@name, 'animalZombieVulture')]/@name">zombieMoe</set>
    <set xpath="/entitygroups/entitygroup[contains(@name, '')]/entity[@name='animalDireWolf']/@name">zombieMoe</set>
    <set xpath="/entitygroups/entitygroup[contains(@name, '')]/entity[@name='animalZombieBear']/@name">zombieMoe</set>

 

I don't see why it won't work. Other ways may exist, too.

 

 


Thank you so much !
I will try that!

Edited by Lovenio (see edit history)
Link to comment
Share on other sites

4 hours ago, Lovenio said:

Oh ! Okay ! Thanks !

I just read what you gave me.
If I just want to change the spawn probability, does it work the same? Sorry for my questions, I'm new to XML.

 

I am not sure if this is the best way, but one way to do the probability is to first remove the zombie entity and then re-add it back with the new add commands

 

    <csv xpath="/entitygroups/entitygroup[@name='ZombiesAll']/text()" delim="\n" op="add" >
        zombieFatHawaiian2, .3
        zombieFatHawaiian3, .3
        zombieFatHawaiian4, .3
        zombieFatHawaiian5, .3
    </csv>
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...