The Nexus Forums: Faction Script Help Plz - The Nexus Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Faction Script Help Plz I need some help with a script

#1 User is offline   zardeon 

  • Stranger
  • Pip
  • Group: Members
  • Posts: 2
  • Joined: 06-March 06

Posted 06 April 2006 - 02:45 PM

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:
0

#2 User is offline   Morgoth 

  • Bauglir
  • PipPipPip
  • Group: Members
  • Posts: 878
  • Joined: 23-August 03

Posted 07 April 2006 - 04:36 PM

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 ;) Similarly, you can only tell an actor to
StartCombat [ActorID]
.
The only way to use the GetDistance function is also
 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.
0

#3 User is offline   zardeon 

  • Stranger
  • Pip
  • Group: Members
  • Posts: 2
  • Joined: 06-March 06

Posted 08 April 2006 - 06:52 PM

ok thx ill try the SetFactionReaction and i can make a big war too with

if GetDistance <520
StartCombat"Light Soldier"
endif
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Skin by Skinbox
Quality & cheap IPB skins, premade vBulletin styles, cheap Web templates and more! - Skinbox