Author Topic: Custom Factions  (Read 401 times)

Legacy_aaphelion

  • Newbie
  • *
  • Posts: 6
  • Karma: +0/-0
Custom Factions
« on: November 03, 2010, 07:13:55 am »


               I was wondering, is it possible to change a PC's faction to a custom one? I am using Olander's Realistic System and trying not to damage any of the included scripts, but I really want my PCs to be able to play as Drow and as drow be attack by goodly types. The best way I could think to do this is set up a special faction for them, but I don't know how to assign it.

Any suggestions?
               
               

               
            

Legacy_The Amethyst Dragon

  • Hero Member
  • *****
  • Posts: 2981
  • Karma: +0/-0
Custom Factions
« Reply #1 on: November 03, 2010, 07:25:17 am »


               You could alter the NPCs' default on perception script and run a multi-step check:

if the creature perceived is a PC AND
if the creature perceived  is an elf AND
if the creature perceived has "Drow" (or "drow") as a subrace AND
if the NPC is of non-evil alignment
THEN set creature perceived as temporary enemy and attack

Using the default perception script should make it automatically work with any NPC that also uses that script (which should be any not already running a custom perception script).  No need to mess with factions. '<img'>
               
               

               


                     Modifié par The Amethyst Dragon, 03 novembre 2010 - 07:26 .
                     
                  


            

Legacy_aaphelion

  • Newbie
  • *
  • Posts: 6
  • Karma: +0/-0
Custom Factions
« Reply #2 on: November 03, 2010, 07:28:41 am »


               Thank you, The Great Amethyst Dragon, for a quick and helpful reply.
               
               

               
            

Legacy_FunkySwerve

  • Hero Member
  • *****
  • Posts: 2325
  • Karma: +0/-0
Custom Factions
« Reply #3 on: November 03, 2010, 07:40:02 am »


               Actually, you cannot mess with factions - something like this is your only option. A PC's 'faction' is determined by the party he's in.



Funky
               
               

               
            

Legacy_TSMDude

  • Hero Member
  • *****
  • Posts: 1515
  • Karma: +0/-0
Custom Factions
« Reply #4 on: November 03, 2010, 06:17:27 pm »


               

FunkySwerve wrote...

Actually, you cannot mess with factions - something like this is your only option. A PC's 'faction' is determined by the party he's in.

Funky


Though what Amethyst suggest can be a psuedo faction of sorts. You can make it so through several different ways. We have about 35 factions and I highly suggest you make your factions before anything else.

Keep notes....lots of notes as nothing sucks as much as screwing up ONE faction and throwing everything off kilter.
               
               

               
            

Legacy_Baragg

  • Sr. Member
  • ****
  • Posts: 496
  • Karma: +0/-0
Custom Factions
« Reply #5 on: November 03, 2010, 10:21:19 pm »


               Another idea may be if your PCs have a no drop item you could mark it with an integer indicative of the faction, and have the on perception of the npc check that int.