Help - Search - Members - Calendar
Full Version: Faction Script Help Plz
The Nexus Forums > Specific Games > Morrowind > Morrowind Plug-Ins > TES Construction Set
zardeon
I need some help with scripts to let factions attack eachother...im not good with scripts but i think its something with
if (get DistanceFaction"NAME" <200)
AttackFaction"NAME"
endif
can somebody help... blush.gif
Morgoth
You cannot read the distance an actor has to a certain faction. Imagine if I asked you how far you are away from the Democrats wink.gif Similarly, you can only tell an actor to
CODE
StartCombat [ActorID]
.
The only way to use the GetDistance function is also
CODE
GetDistance [ActorID]
.

I am not completely sure whether this will have the desired effect but you may want to try setting the faction reaction to a very low value (e.g. by using SetFactionReaction [factionID] [factionID] [value]). I haven't tried it, but I would assume that, providing the value is sufficiently low, members of those two factions will attack each other automatically on sight.
zardeon
ok thx ill try the SetFactionReaction and i can make a big war too with

if GetDistance <520
StartCombat"Light Soldier"
endif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.