.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   Scenarios, Maps and Mods (http://forum.shrapnelgames.com/forumdisplay.php?f=146)
-   -   Modding loyalty question (http://forum.shrapnelgames.com/showthread.php?t=44298)

LumenPlacidum November 8th, 2009 05:10 PM

Modding loyalty question
 
Is there a specific command that makes something able to turn around and attack friends sometimes? I know there are summons, like the lamashtas that do this, but I want to know if it's possible as a part of a unit and not a spell's property.

HoneyBadger November 8th, 2009 05:52 PM

Re: Modding loyalty question
 
I believe it can be modded in (atleast I hope so), but I don't know, and that may just be wishful thinking...

Foodstamp November 8th, 2009 06:08 PM

Re: Modding loyalty question
 
There are certain spells with this effect that target enemies. You may be able to use one of these spells to create a new spell that targets the caster. Then give that spell to a commander with the #onebattlespell command. Normally you cannot use #onebattlespell for custom spells but there are several numbered spell slots that don't do anything, so you just need to override one of them with #selectspell. This should at least give the desired effect to commanders.

Gandalf Parker November 8th, 2009 08:02 PM

Re: Modding loyalty question
 
There are certain units that "break free". Eater of the Dead comes to mind. Maybe using it as a base then changing EVERYTHING else about it will give you what you want.

Burnsaber November 9th, 2009 01:51 AM

Re: Modding loyalty question
 
I'm not sure if the special ability of the Lammashta's "unloyalty" is in the unit itself or the spell. If it is in the unit, you could just try copystatting the Lammastha unit and see how it goes (although there is that undead "tag" you can't get rid of).

Like Foodstamp said, you could also make a commander that gives the "Confusion/Rage" debuff on himself at the start of combat, which would give the commander a 50% of attacking own troops. The downside is that the unit would move like drunkard.

HoneyBadger November 9th, 2009 02:45 AM

Re: Modding loyalty question
 
You can copy any unit, infact, as far as I know--and an uncopyable one would be one that was set by the Devs.

Ashen Angels (attack friend and foe alike), Horrors (attack friendlies, and also disappear after a while), the Eater of the Dead...

So it's certainly possible to do it in a roundabout way...but as far as their being a tag for it, that's up in the air.

rdonj November 9th, 2009 12:00 PM

Re: Modding loyalty question
 
The issue burnsaber is having is he is not sure whether the reason those units are "disloyal" is because they have some special tag that makes them attack allied units, or if it's because they're summoned as independents or some other strange mechanism. If someone wants to do some testing on the matter we could clear it right up.


All times are GMT -4. The time now is 05:28 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.