OLC Section 5
From Immwiki
Revision as of 20:54, 15 January 2005 by 130.160.178.xxx (Talk)
= FEDIT = "Faction seldom leaves a man honest, however it might find him. -Samuel Johnson
Fedit allows you to create and edit npc factions.
Syntax: fedit [faction number] Providee a faction number and you will enter the editor for that faction. To see a list of faction numbers, you can type 'flist'.
Syntax: fedit create This creates a new faction and enters the editor for that faction. Once you are fediting a given faction, you can take a look at its properties with the SHOW command, or just by hitting [enter]. The following are attributes which appear when you SHOW.
Name: Syntax: name [name] Changes the faction name.
Min-Friend Rating: Syntax: rating friend [rating] This changes the friend rating from the default of 700.
Min-Enemy Rating: Syntax: rating enemy [rating] This changes the enemy rating from the default of -700.
Flags: Type the following flags to apply them to the faction.
aggro_enemy: Makes all members of the faction aggro to faction enemies. decay: Player faction ratings will slowly decay over time as the faction forgets the player's actions. fake: makes a fake faction. You don't gain or lose faction for killing members of this faction, but you do gain/lose faction with enemies and allies. Example: the Animals of Nendor. The animals won't suddenly consider you an enemy... but you will piss off the druids. noconceal: The new thief/assassin skill 'conceal evidence' doesn't work against this faction.
Ally: Syntax: ally [faction number] This toggles an allied faction.
Opposing: Syntax: opposing [faction number] This toggles an opposing faction.
Initial Settings: Syntax: init This enters the editor for initial settings. In the editor, add strings as follows: race <race> <value> class <class> <value> gender <gender> <value>
For example: race ch'taren 1400 class spirit templar 700 class spirit scholar 700 race shuddeni -1000
If the min-friend rating were default (700), then ch'tarens, spirit templars, and spirit scholars would all begin as friends of the faction. If the min-enemy rating were default (-700) shuddeni would begin as enemies of the faction.
OTHER FEDIT COMMANDS Add: Syntax: add [vnums...]: This adds a list of vnums to the faction being edited. One can also add a mob to the faction in medit, using the 'faction' command while editing that mob.
Other faction related imm-commands:
flist: lists all factions. flist <number>: lists all mobs in a faction. flist <player> [faction]: lists faction ratings for player. set char <target> faction <number> <rating>: set faction values.
Mob-prog support for factions:
if isfriend(<target>) [== faction number] if isenemy(<target>) [== faction number] -- if faction numbers are omitted, uses faction of mob performing check
mpfaction <target> <faction number> <change> [1/0] -- trailing 1/0 is to choose whether the standard faction improve/worsen message is displayed