Creating factions

From Mod Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 19:24, 12 July 2008 (edit)
Jamie1992 (Talk | contribs)

← Previous diff
Current revision (16:36, 13 July 2008) (edit) (undo)
Don Reba (Talk | contribs)
m (table-like formatting in ltx fix)
 
Line 9: Line 9:
<source lang="ini"> <source lang="ini">
[communities_relations] [communities_relations]
-;|actor |act_dol|act_fre|stalker|monolit|militar|killer |ecolog |dolg |freedom|bandit |zombied|strange|trader|arena_enemy|wind|+; actor act_dol act_fre stalker monolit militar killer ecolog dolg freedom bandit zombied strange trader arena_enemy wind
-;=================================================================================================================================+;=========================================================================================================================================
-actor = 0, 0, 0, 0, -5000, -5000, -5000, 0, 0, 0, -5000, -5000, 0, 0, -5000, 0+actor = 0, 0, 0, 0, -5000, -5000, -5000, 0, 0, 0, -5000, -5000, 0, 0, -5000, 0
-actor_dolg = 0, 0, 0, 0, -5000, -500, -5000, 5000, 600, -5000, -5000, -5000, 0, 0, -5000+actor_dolg = 0, 0, 0, 0, -5000, -500, -5000, 5000, 600, -5000, -5000, -5000, 0, 0, -5000, 0
-actor_freedom = 0, 0, 0, 0, -5000, -5000, -5000, -1500, -5000, 5000, 0, -5000, 0, 0, -5000, 0+actor_freedom = 0, 0, 0, 0, -5000, -5000, -5000, -1500, -5000, 5000, 0, -5000, 0, 0, -5000, 0
-stalker = 0, 0, 0, 0, -5000, -5000, -5000, 0, 0, 0, -5000, -5000, 0, 0, -5000, 0+stalker = 0, 0, 0, 0, -5000, -5000, -5000, 0, 0, 0, -5000, -5000, 0, 0, -5000, 0
-monolith = -5000, -5000, -5000, -5000, 5000, -5000, -5000, -5000, -5000, -5000, 5000, 5000, -5000, 0, -5000, 0+monolith = -5000, -5000, -5000, -5000, 5000, -5000, -5000, -5000, -5000, -5000, 5000, 5000, -5000, 0, -5000, 0
-military = -5000, -5000, -5000, -5000, -5000, 5000, -5000, 0, -5000, -5000, -5000, -5000, 0, 0, -5000, 0+military = -5000, -5000, -5000, -5000, -5000, 5000, -5000, 0, -5000, -5000, -5000, -5000, 0, 0, -5000, 0
-killer = -5000, -5000, 0, -5000, -5000, -5000, 5000, -5000, -5000, -5000, 0, -5000, -5000, 0, -5000, 0+killer = -5000, -5000, 0, -5000, -5000, -5000, 5000, -5000, -5000, -5000, 0, -5000, -5000, 0, -5000, 0
-ecolog = 0, 600, -5000, 0, -5000, 1000, -5000, 5000, 500, -5000, -500, -5000, 0, 0, 0, 0+ecolog = 0, 600, -5000, 0, -5000, 1000, -5000, 5000, 500, -5000, -500, -5000, 0, 0, 0, 0
-dolg = 0, 600, -5000, 0, -5000, -500, -5000, 5000, 5000, -5000, -5000, -5000, 0, 0, 0, 0+dolg = 0, 600, -5000, 0, -5000, -500, -5000, 5000, 5000, -5000, -5000, -5000, 0, 0, 0, 0
-freedom = 0, -5000, 600, 0, -5000, -5000, -5000, -1500, -5000, 5000, 0, -5000, 0, 0, 0, 0+freedom = 0, -5000, 600, 0, -5000, -5000, -5000, -1500, -5000, 5000, 0, -5000, 0, 0, 0, 0
-bandit = -5000, -5000, 0, -5000, -5000, -500, 0, -5000, -5000, 0, 0, -5000, -5000, 0, -5000, 0+bandit = -5000, -5000, 0, -5000, -5000, -500, 0, -5000, -5000, 0, 0, -5000, -5000, 0, -5000, 0
-zombied = -5000, -5000, -5000, -5000, 5000, -5000, -5000, -5000, -5000, -5000, -5000, 5000, -5000, 0, -5000, 0+zombied = -5000, -5000, -5000, -5000, 5000, -5000, -5000, -5000, -5000, -5000, -5000, 5000, -5000, 0, -5000, 0
-stranger = 0, 0, 0, 0, -5000, -5000, -5000, 0, 0, 0, -500, -5000, 0, 0, 0, 0+stranger = 0, 0, 0, 0, -5000, -5000, -5000, 0, 0, 0, -500, -5000, 0, 0, 0, 0
-trader = 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0+trader = 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
-arena_enemy = -5000, -5000, -5000, -5000, -5000, -5000, 0, 0, 0, -5000, -5000, 0, 0, 0, 0, 0+arena_enemy = -5000, -5000, -5000, -5000, -5000, -5000, 0, 0, 0, -5000, -5000, 0, 0, 0, 0, 0
-wind = 0, 0, 0, 0, -5000, -5000, -5000, 0, 0, 0, -5000, -5000, 0, 0, -5000, 0+wind = 0, 0, 0, 0, -5000, -5000, -5000, 0, 0, 0, -5000, -5000, 0, 0, -5000, 0
</source> </source>

Current revision

This is a short tutorial i on making factions its extracted from the russian wiki and i have edited it so that those who cant speak russian or was having a hard time understanding it can now do this, that plus i could never find a tutorial on how to do this.

I assume you have already extracted the DB's

We will make a faction called wind

1. To start, open game_relations.ltx and relations factions to the table at the end of the title and add the name of the factions and its relations ratios from other factions. Also, do not forget to register its own attitude to other groups:

[communities_relations]
;               actor  act_dol act_fre stalker monolit militar killer ecolog dolg   freedom bandit zombied strange trader arena_enemy wind
;=========================================================================================================================================
actor         = 0,     0,      0,      0,      -5000,  -5000,  -5000, 0,     0,     0,      -5000, -5000,  0,      0,     -5000,      0
actor_dolg    = 0,     0,      0,      0,      -5000,  -500,   -5000, 5000,  600,   -5000,  -5000, -5000,  0,      0,     -5000,      0
actor_freedom = 0,     0,      0,      0,      -5000,  -5000,  -5000, -1500, -5000, 5000,   0,     -5000,  0,      0,     -5000,      0
stalker       = 0,     0,      0,      0,      -5000,  -5000,  -5000, 0,     0,     0,      -5000, -5000,  0,      0,     -5000,      0
monolith      = -5000, -5000,  -5000,  -5000,  5000,   -5000,  -5000, -5000, -5000, -5000,  5000,  5000,   -5000,  0,     -5000,      0
military      = -5000, -5000,  -5000,  -5000,  -5000,  5000,   -5000, 0,     -5000, -5000,  -5000, -5000,  0,      0,     -5000,      0
killer        = -5000, -5000,  0,      -5000,  -5000,  -5000,  5000,  -5000, -5000, -5000,  0,     -5000,  -5000,  0,     -5000,      0
ecolog        = 0,     600,    -5000,  0,      -5000,  1000,   -5000, 5000,  500,   -5000,  -500,  -5000,  0,      0,     0,          0
dolg          = 0,     600,    -5000,  0,      -5000,  -500,   -5000, 5000,  5000,  -5000,  -5000, -5000,  0,      0,     0,          0
freedom       = 0,     -5000,  600,    0,      -5000,  -5000,  -5000, -1500, -5000, 5000,   0,     -5000,  0,      0,     0,          0
bandit        = -5000, -5000,  0,      -5000,  -5000,  -500,   0,     -5000, -5000, 0,      0,     -5000,  -5000,  0,     -5000,      0
zombied       = -5000, -5000,  -5000,  -5000,  5000,   -5000,  -5000, -5000, -5000, -5000,  -5000, 5000,   -5000,  0,     -5000,      0
stranger      = 0,     0,      0,      0,      -5000,  -5000,  -5000, 0,     0,     0,      -500,  -5000,  0,      0,     0,          0
trader        = 0,     0,      0,      0,      0,      0,      0,     0,     0,     0,      0,     0,      0,      0,     0,          0
arena_enemy   = -5000, -5000,  -5000,  -5000,  -5000,  -5000,  0,     0,     0,     -5000,  -5000, 0,      0,      0,     0,          0
wind          = 0,     0,      0,      0,      -5000,  -5000,  -5000, 0,     0,     0,      -5000, -5000,  0,      0,     -5000,      0

Also, change this line, adding there name and number groupings:

titles factions communities communities = actor, 0, actor_dolg, 1, actor_freedom, 2, stalker, 5, monolith, 6, military, 7, killer, 8, ecolog, 9, dolg, 10, freedom, 11, bandit, 12, zombied, 13, stranger, 14, trader, 15, arena_enemy, 16, wind, 18,

add wind into the communites_sympahy section

[communities_sympathy]
actor         = 0.0
actor_dolg    = 0.0
actor_freedom = 0.0
stalker       = 0.0
monolith      = 0.0
military      = 0.0
killer        = 0.0
ecolog        = 0.0
dolg          = 0.1
freedom       = 0.1
bandit        = 0.0
zombied       = 0.0
trader        = 0.0
stranger      = 0.0
arena_enemy   = 0.0
wind          = 0.0

2. After that, in a file death_manager.script line looking for local community_list in parentheses and add the name of your group:

function init_drop_settings()
	local community_list = { "stalker", "dolg", "freedom", "bandit", "military", "zombied", "ecolog", "killer", "monolith", 
"arena_enemy", "actor_dolg", "wind" }

3. The file death_items_by_communities.ltx write [x]: stalker (instead of x - the name of your group):

[...]
af_dummy_spring = 0
af_fuzz_kolobok = 0
 
;Еда
vodka = 0
 
[arena_enemy]
[actor_dolg]
 
[wind]: stalker
bread        = 0
kolbasa      = 0
vodka        = 0
energy_drink = 0.3

4. If respavn provides a new group of fighters, in se_respawn.script set in local simMaxCount = (row after row with zombified stalkers:

wind_novice = 20, wind_regular = 20, wind_veteran = 20, wind_master = 6,

5. Write the faction in xr_statistic.script as follows just under the zombied lines:

zombied_novice = 1, zombied_experienced = 2, zombied_veteran = 3, zombied_master = 4,

write

wind_novice = 1, wind_experienced = 2, wind_veteran = 3, wind_master = 4

6. in character_desk_x.xml choose any NPC (or group) and changing its community:

<!---esc_wolf--->
<specific_character id="esc_wolf" team_default = "1">
	<name>esc_wolf_name</name>
	<icon>ui_npc_u_stalker_neytral_balon_1</icon>
	<bio>esc_wolf_bio</bio>
 
	<class>esc_wolf</class>
	<community>wind</community>
	[...]

7. To have character in the "Grouping" not to show "wind", and "Wind", record put the following at the top the file under the lines shown in bold in file string_table_general.xml:

<?xml version="1.0" encoding="windows-1251" ?>
<string_table>
	<string id="wind">
		<text>wind</text>
	</string>
	<string id="actor">
		<text>wind</text>
	</string>
	[...]

Your new faction should now be working and whoever you changed will now be part of that faction you can replace wind with whatever you want them to be called.

Tutorial By Jamie Roberts (Jamie1992)

Personal tools