• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Windows How to make 'Monsters' without attack run away instead of approach player?

Sinth

Argardh.com
Joined
Jan 14, 2015
Messages
721
Reaction score
133
Location
Cambodia
Apparently all animals, like deers, approach players just like the dogs..


Below is my Noble Citizen, who is supposed to flee player and not engage. What to change?

Code:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Nobleman" nameDescription="a nobleman" race="blood" experience="0" speed="140" manacost="250">
   <health now="125" max="125"/>
   <look type="132" head="57" body="43" legs="59" feet="58" addons="0" corpse="3058"/>
   <targetchange interval="5000" chance="20"/>
   <strategy attack="100" defense="0"/>
   <flags>
     <flag summonable="1"/>
     <flag attackable="1"/>
     <flag hostile="1"/>
     <flag illusionable="1"/>
     <flag convinceable="1"/>
     <flag pushable="1"/>
     <flag canpushitems="0"/>
     <flag canpushcreatures="0"/>
     <flag targetdistance="1"/>
     <flag staticattack="90"/>
     <flag runonhealth="125"/>
   </flags>
   <attacks>
     <attack name="melee" interval="2000" skill="13" attack="6"/>
   </attacks>
   <defenses armor="2" defense="6"/>
   <voices interval="5000" chance="10">
     <voice sentence="Leave me alone!"/>
     <voice sentence="I don't have time for your kind!"/>
   </voices>
   <loot>
     <item id="2666" countmax="4" chance="100000"/><!-- meat -->
         <item id="2148" countmax="100" chance="100000"/><!-- gold coin -->
         <item id="2145" countmax="3" chance="1538"/><!-- small diamond -->
        
                    
   </loot>
</monster>

Below is the 'Deer' from original Cryingdamson TFS 036:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Deer" nameDescription="a deer" race="blood" experience="0" speed="150" manacost="260">
   <health now="25" max="25"/>
   <look type="31" corpse="5970"/>
   <targetchange interval="2000" chance="20"/>
   <strategy attack="100" defense="0"/>
   <flags>
     <flag summonable="1"/>
     <flag attackable="1"/>
     <flag hostile="0"/>
     <flag illusionable="1"/>
     <flag convinceable="1"/>
     <flag pushable="1"/>
     <flag canpushitems="0"/>
     <flag canpushcreatures="0"/>
     <flag targetdistance="1"/>
     <flag staticattack="90"/>
     <flag runonhealth="25"/>
   </flags>
   <attacks>
     <attack name="melee" interval="2000" skill="10" attack="2"/>
   </attacks>
   <defenses armor="2" defense="2"/>
   <immunities>
     <immunity physical="0"/>
     <immunity energy="0"/>
     <immunity fire="0"/>
     <immunity poison="0"/>
     <immunity lifedrain="0"/>
     <immunity paralyze="0"/>
     <immunity outfit="0"/>
     <immunity drunk="0"/>
     <immunity invisible="0"/>
   </immunities>
   <loot>
     <item id="3976" countmax="10" chance="50000"/><!-- worm -->
     <item id="2666" countmax="4" chance="100000"/><!-- meat -->
   </loot>
</monster>
 
Last edited by a moderator:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Nobleman" nameDescription="a nobleman" race="blood" experience="0" speed="140" manacost="250">
<health now="125" max="125"/>
<look type="132" head="57" body="43" legs="59" feet="58" addons="0" corpse="3058"/>
<targetchange interval="5000" chance="20"/>
<strategy attack="100" defense="0"/>
<flags>
<flag summonable="1"/>
<flag attackable="1"/>
<flag hostile="0"/>
<flag illusionable="1"/>
<flag convinceable="1"/>
<flag pushable="1"/>
<flag canpushitems="0"/>
<flag canpushcreatures="0"/>
<flag targetdistance="1"/>
<flag staticattack="90"/>
<flag runonhealth="125"/>
</flags>
<attacks>
<attack name="melee" interval="2000" skill="13" attack="6"/>
</attacks>
<defenses armor="2" defense="6"/>
<voices interval="5000" chance="10">
<voice sentence="Leave me alone!"/>
<voice sentence="I don't have time for your kind!"/>
</voices>
<loot>
<item id="2666" countmax="4" chance="100000"/><!-- meat -->
<item id="2148" countmax="100" chance="100000"/><!-- gold coin -->
<item id="2145" countmax="3" chance="1538"/><!-- small diamond -->


</loot>
</monster>

Try this maybe.
 
So, they run away if you get 7 squares or closer? So you could set 4 and they just dont stay close... and you are certain of this? :)
 
<strategy attack="100" defense="0"/>
change to
<strategy attack="0" defense="100"/>
--------
remove
<attacks>
<attack name="melee" interval="2000" skill="10" attack="2"/>
</attacks>
------------
<flag staticattack="90"/>
change to
<flag staticattack="0"/>
 
<strategy attack="100" defense="0"/>
change to
<strategy attack="0" defense="100"/>
--------
remove
<attacks>
<attack name="melee" interval="2000" skill="10" attack="2"/>
</attacks>
------------
<flag staticattack="90"/>
change to
<flag staticattack="0"/>

What does that change? What I am also looking for is ofcourse something to make them non-reactive to players, is this it?

w

What about this:

<targetchange interval="2000" chance="20"/>

How would I set this if I want the subject to change target constantly/ or say 50% change every 1 second? Interval 1000 chance 50?
 
Last edited by a moderator:
Just maybe? :/

I think half of my citizens are set to run on their maxhealth but only haft of them are set to range 9.. will take some testing to get this one fixed. But oh so nice it will be, WHEN it is fixed :)

If it works, thanks! :D
 
What I am also looking for is ofcourse something to make a citizen(monster) non-reactive to a players presence, how do I do that? Are there any animals out there that doesn't react to players at all?
 
Back
Top