PDA

View Full Version : How to Create a Working Faction from scratch


Cutter
09-16-2004, 11:38 AM
I am only posting this because.. I went to IRC and begged for help on this.. and noone would even try to help, and I had asked many times for a tutorial but everyone was to busy.. So.. I just figured it out myself.. as I am doing with the rest of this stuff.. So I am hoping unlike so many others this will help some people who dont know how to do it...


Ok First step..

Create a good side Mob.. and Bad side mob

for this example lets create Qeynos Guards
and Blackburrow Gnolls

(keep in mind.. this is a blank faction table and npc_type table as well)

ok lets goto the faction_list table

ok mine is blank.. so lets create a new entry
BTW i use mysql front.. its just easier to do this in
so I am going to create a entry for my Qeynos Guards
that will 1 Entry
in the name entry .. i will put Qeynos Guards.. notice i did not put a "_" there..
the next field is the Base field.. lets make the guards like us a little bit but have the players earn some faction.. so lets make it 100

Well thats it for that table.. dont worry about the other entrys because they have to deal with race class and deities.. we dont wanna get sophisticated right now...

ok lets just do the same thing with the blackburrow gnolls..
but make it ENTRY 2 and Base of -1000

why -1000? well they will attack you on sight thats why.. they will hate your guts...

ok were finished with faction_list table.. lets move on

NPC_Faction Table
here we are just going to make 2 table entries
first one.. well put
1 Blackburrow_gnolls and next field put 1
2 Qeynos_guards 2

those are the two entries in this table..
lets move on

NPC_FACTION_ENTRIES

ok here we will define who it will effect if we kill gnolls or qeynos guards

so lets make an entry here
npc_faction_id = 1
Faction_id= 1
faction_value= -100 /// this value tells how much we lose if we kill a guard

ok lets make the gnolls.. this is important part of it
npc_faction_id=2 // gnolls faction id
npc_id= 1// This is the guards Faction means if we kill gnolls we get a good faction with them
npc_value= 100 /// how much faction we get with guards

ok now we still gotta add the gnolls faction when we kill them
npc_faction_id=2
npc_id=2
npc_value=-100

ok thats it..
now when you go in game..
a few things will happen
your guards will like you.. the gnolls will attack you on sight.. and if a guard sees a gnoll it will attack on sight as well..

one more important thing you must do
go into npc_types go under faction_id..
goto qeynos guards.. assign them 1
goto blackburrow gnolls or gnolls and assign them to 2

the only other table i didnt mention was faction_values table
dont mess with this.. this is players faction they already have... it calculates what faction they do have with who..

also another thing we need to mention...
remember above that i mention not to put that "_"
that is because when you kill a mob it wont say..
you gained faction with Blackburrow_gnolls .. it will say this instead
you gained faction with Blackburrow Gnolls..

ok i think i explained this correctly..
if you have any problems what so ever
please email me at sandy@vektorlabs.com

I will be happy to answer any questions that ANYONE may have..

kidder
09-17-2004, 01:13 AM
That was nice of you Cutter. Thanks.

Cutter
09-17-2004, 07:35 AM
Hey! anytime i can help others.. ill try to do my best to do so :)

a_Guest03
12-14-2004, 02:00 PM
Cutter, any chance you could make this more generic, and include exact instructions?

By exact, I mean explicit instructions for maybe MySQLCommandCenter or whatever - anything to make a new user understand for any faction or any NPC. Pictures would help, if possible.

Muuss
12-15-2004, 09:32 AM
Cutter, unless you rework that guide like a_Guest03 suggested you, it won't be considered as a valid tutorial.
The idea is good but you mustn't treat it with examples. Be more generic and accurate.
You ll also need to add the faction lvls needed to for each grade, ready to attack, threatningly, dubious... etc.
A full step by step explaning how to create a new faction from nothing would be also a great addition.