HI,
I am spawning a random enemy in different places near enemys of different races/factions.
I would like this spawned creature to be always “friendly” with the enemy (don’t attack) and always hostile to the player.
I would like to set the race and factions of these spawned creature in a way that it does the above.
Is there a right combination of race/faction to do that ?
Thank you
You’d need to give it its own factionpack.tpl controller. In there, you’d want to set all enemy factions to 24000 and all player/allied factions to -1000.
Similarly, you’d need to set the controllers of the other factions to 24000 with this faction if they’re ‘enemies’ of the player, and -1000 if they’re allied with the player.
Unfortunately, I’m not entirely certain whether you can actually get a new faction recognized by the game.
you can I have 2 new factions in DGA, but anything after USER9 has to be done with a text editor, but it works just fine
I just realized I posted in the wrong section;
Please admin (@Jiaco ) move it to Moding - Tutorial and help.Thank you
Also I will nedd to see this, I had the feeling, the race of the monster also add an impact.
@Warebare, what faction do you use ?
I will need to add a different faction for my mod to be compatible, exept if you already have a faction that does the above, I will just use the same.
using User14 for the friendly faction and User15 for enemy faction, if you want you can use the same file/path although its probably just weird having that path in another mod
“mod_wanez/faction/controller_dga.dbr”
you can just use your own, if and when I include that new mod Ill probably change their faction, I have to wait and look at the OMEGA nemesis as well, havnt changed their faction for DGA yet, but I think Ill have to…
Well I think I will also need to add a this new faction (always enemy with player and friendly with other enemies) in Omega and Lost Treasures mod.
I wil download your mod and see what your factions do.
If it does the same I might use your files because it will be easier to be compatible (even if I agree it’s strange to have a foldeer name of another mod)
Didnt think of changing vanilla factions, so they’ll attack pets until I do that, other than that they are called invaders and really only spawn stuff via script. Should be fine to use for every other mod… even for OMEGA Nemesis it would be fine if they are part of a faction called Invaders IMO
There is something I don’t understand in controller_dga , why is factionOutlaws,24000.000000 and all other at -1000 (except factionUser15 which is this faction)?
If I add controller_dga to a creature it will become factionUser15 and hostile with player but also with all other with a different faction than factionUser15 or factionOutlaws ?
factionAetherials,-1000.000000,
factionBeasts,-1000.000000,
factionCthonians,-1000.000000,
factionDrifters,-1000.000000,
factionIcon,ui/character/faction_outlaws.tex,
factionLargeIcon,ui/character/faction_largeoutlaws.tex,
factionNeutralNPC,0.000000,
factionOutlaws,24000.000000,
factionPlayer,-1000.000000,
factionRewards,tagFactionUser15Rewards1;tagFactionUser15Rewards2;tagFactionUser15Rewards3;tagFactionUser15Rewards4;tagFactionUser15Rewards5;tagFactionUser15Rewards6;tagFactionUser15Rewards7;tagFactionUser15Rewards8,
factionSurvivors,-1000.000000,
factionUser10,-1000.000000,
factionUser11,-1000.000000,
factionUser12,-1000.000000,
factionUser13,-1000.000000,
factionUser14,-1000.000000,
factionUser15,24000.000000,
factionUser2,-1000.000000,
factionUser3,-1000.000000,
factionUser4,-1000.000000,
factionUser5,-1000.000000,
factionUser6,-1000.000000,
factionUser7,-1000.000000,
factionUser8,-1000.000000,
factionUser9,-1000.000000,
I copied the outlaw faction and just added User14/User15, since it didnt matter because all monsters are that facion I didnt care about changing every other value… but that could be another reason why they attack pets, because they are not the dga faction
Ok so I will need to make a new faction, because I will use it in the main game where creatures are different factions (and races but maybe the race doesn’t change the behaviour?).
Can I use factionUser13, it seems to be unused ?
You don’ use it in your mod WareBare ?
or just change the values because it doesnt matter for dga and I just changed them to see if they are still attacking pets, so either way I have to do the same you need… just didnt bother with it yet because time and its one of those little things I put aside since there is more important stuff
9-13 are unused… according to my gameengine.dbr
Ok it seems to be working :
I uploaded omega v0.6 with this change :
Created records\omega\controllers\factions\faction_omega_hostile.dbr
as FactionUser13
Faction_omega_hostile is :
- hostile to the player (-1000)
- ally with every other faction (24000
For Modders and compatibility: I use Faction13 for faction_omega_hostile
records\omega\controllers\factions\faction_omega_hostile.dbr
Please consider it if you plan to use Omega mod and Lost treasures mod.
PS :strange this forum seems to put a “space” in sentences with too many letters without space (read faction_omega_hostile.dbr above)