• 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!

TFS 0.X A question about monster flags

forumek

Member
Joined
Jan 14, 2019
Messages
61
Reaction score
22
Can I create a monster without any flags?
if so, all this flags will be treated as set to "0" ?
Code:
<flags>
    <flag summonable="1"/>
    <flag attackable="1"/>
    <flag hostile="1"/>
    <flag illusionable="1"/>
    <flag convinceable="1"/>
    <flag pushable="1"/>
    <flag canpushitems="1"/>
    <flag canpushcreatures="1"/>
    <flag targetdistance="1"/>
    <flag staticattack="90"/>
    <flag hidehealth="1" />
    <flag lightcolor="17" />
    <flag lightlevel="1" />
    <flag runonhealth="5"/>
</flags>
It is not clear for me, let's take for example <flag canpushitems="1"/> with "1" monster can push items, with "0" can't but what if I don't add this flag at all?
 
if you don't define them, they will use the default values from monster.h file, for example in tfs 1.x:

you need to check your 0.x source to see the default values
oh okay thanks
Post automatically merged:

I have another question, what's the difference between skill and attack like here in demon example:
XML:
<attack name="melee" interval="2000" skill="70" attack="130"/>
because in cipsoft 7.4 virgin files demon has only attack value Attack = 80
so what "skill" value does in tfs 0.4?
 
Last edited:
Can I create a monster without any flags?

Any undefined flag falls back to the default. I believe the Monster reference in my sig shows the default values you'd be dealing with. It is the result of me just collapsing the source code and dependencies of the monster loader into a chart by hand, from code somewhere nearby r3884. Or here. Fresh from the old repo:

C++:
    canPushItems     = false;
    canPushCreatures = false;
    isSummonable     = false;
    isIllusionable   = false;
    isConvinceable   = false;
    isLureable       = false;
    isWalkable       = false;
    hideName         = false;
    hideHealth       = false;
    pushable     = true;
    isAttackable = true;
    isHostile    = true;

so what "skill" value does in tfs 0.4?

The best docs are always the source code.

r3884/monsters.cpp#L393 -> r3884/weapons.cpp#L147
 
Back
Top