Difference between revisions of "OLC Section 5"

From Immwiki
Jump to: navigation, search
m
 
(FEDIT)
 
(5 intermediate revisions by 4 users not shown)
Line 1: Line 1:
= FEDIT = <i>"Faction seldom leaves a man honest, however it might find him. -Samuel Johnson</i>
+
=FEDIT=
 +
<i>"Faction seldom leaves a man honest, however it might find him.</i>
 +
<i>  -Samuel Johnson</i>
  
Fedit allows you to create and edit npc factions.   
+
:Fedit allows you to create and edit npc factions.   
  
Faction enemy and friend ratings have defaults of -700 and 700 (which means
+
: Faction enemy and friend ratings have defaults of -700 and 700 (which means
it will take approximately 70 kills of mobs of your level for you to become
+
: it will take approximately 70 kills of mobs of your level for you to become
allied with or hated by a faction).   
+
: allied with or hated by a faction).   
  
Syntax: fedit [faction number]  
+
: Syntax: fedit [faction number]  
Provide a faction number and you will enter the editor for that  
+
: Provide a faction number and you will enter the editor for that  
faction. To see a list of faction numbers, type FLIST.
+
: faction. To see a list of faction numbers, type FLIST.
  
Syntax: fedit create
+
: Syntax: fedit create
This creates a new faction and enters the editor for that faction.
+
: 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  
+
: Once you are fediting a given faction, you can take a look at its  
properties with the SHOW command, or just by hitting [enter].
+
: properties with the SHOW command, or just by hitting [enter].
The following are attributes which appear when you SHOW.  
+
: The following are attributes which appear when you SHOW.  
  
<b>Name:</b>
+
<b>Name:</b>
Syntax: name [name]
+
: Syntax: name [name]
Changes the faction name.
+
: Changes the faction name.
  
<b>Min-Friend Rating:</b>
+
<b>Min-Friend Rating:</b>
Syntax: rating friend [rating]
+
: Syntax: rating friend [rating]
This changes the friend rating for the faction.  Players who meet or
+
: This changes the friend rating for the faction.  Players who meet or
surpass this rating are considered to be allied to the faction.
+
: surpass this rating are considered to be allied to the faction.
  
<b>Min-Enemy Rating:</b>
+
<b>Min-Enemy Rating:</b>
Syntax: rating enemy [rating]
+
: Syntax: rating enemy [rating]
This changes the enemy rating for the faction.  Players who meet
+
: This changes the enemy rating for the faction.  Players who meet
or fall below this rating are considered enemies of faction npcs.
+
: or fall below this rating are considered enemies of faction npcs.
  
<b>Flags:</b>
+
<b>Flags:</b>
Type the following flags to apply them to the faction.
+
: Type the following flags to apply them to the faction.
  
 
  <i>aggro_enemy</i>: Makes all members of the faction aggro to faction enemies.
 
  <i>aggro_enemy</i>: Makes all members of the faction aggro to faction enemies.
Line 42: Line 44:
 
     and allies. Example: the Animals of Nendor. The animals won't
 
     and allies. Example: the Animals of Nendor. The animals won't
 
     suddenly consider you an enemy... but you will piss off the druids.
 
     suddenly consider you an enemy... but you will piss off the druids.
  <i>noconceal</i>: The new thief/assassin skill 'conceal evidence' doesn't work
+
  <i>no_obscure</i>: The new thief/assassin skill 'conceal evidence' doesn't work
 
     against this faction.  
 
     against this faction.  
 +
<i>big_bargain</i>: Shops provide discount to faction friends.
  
<b>Ally:</b>
+
<b>Ally:</b>
Syntax: ally [faction number]
+
: Syntax: ally [faction number]
This toggles an allied faction.
+
: This toggles an allied faction.
  
<b>Opposing:</b>
+
<b>Opposing:</b>
Syntax: opposing [faction number]
+
: Syntax: opposing [faction number]
This toggles an opposing faction.
+
: This toggles an opposing faction.
  
<b>Initial Settings:</b>
+
<b>Initial Settings:</b>
Syntax: init
+
: Syntax: init
This enters the editor for initial settings. In the editor, add
+
: This enters the editor for initial settings. In the editor, add
strings as follows:
+
: strings as follows:
  race <race> <value>
+
race <race> <value>
  class <class> <value>
+
class <class> <value>
  gender <gender> <value>
+
gender <gender> <value>
 +
:  altar <altar room vnum> <value>
  
For example:  
+
For example:  
  race ch'taren 1400
+
race ch'taren 1400
  class spirit templar 700
+
class spirit templar 700
  class spirit scholar 700
+
class spirit scholar 700
  race shuddeni -1000
+
race shuddeni -1000
 +
:  altar 3491 -1000
  
  If the min-friend rating were default (700), then ch'tarens, spirit templars,
+
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
+
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.
+
rating were default (-700) shuddeni and those whose recall altar is in room 3491
 +
would begin as enemies of the faction.
  
  
OTHER FEDIT COMMANDS
+
 
<b>Add:</b>
+
<b>Add:</b>
Syntax: add [vnums...]:  
+
: Syntax: add [vnums...]:  
This adds a list of vnums to the faction being edited.  One can also add a mob
+
: 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.
+
: to the faction in medit, using the 'faction' command while editing that mob.
  
 
----
 
----
  
Other faction related imm-commands:
+
==OTHER FACTION-RELATED IMM COMMANDS==
  
flist: lists all factions.
+
:<b>flist:</b> lists all factions.
flist <number>: lists all mobs in a faction.
+
:
flist <player> [faction]: lists faction ratings for player.
+
:<b>flist <number>:</b> lists all mobs in a faction.
set char <target> faction <number> <rating>: set faction values.
+
:
 +
:<b>flist <player> [faction]:</b> lists faction ratings for player. Without [faction],
 +
: it will list all factions with a non-zero standing for the player
 +
:
 +
:<b>set char <target> faction <number> <rating>:</b> set faction values manually.
  
 
----
 
----
  
Mob-prog support for factions:
+
==PROG SUPPORT FOR FACTIONS==
  
if isfriend(<target>) [== faction number]
+
:<b>if isfriend(<target>) [== faction number]</b>
if isenemy(<target>) [== faction number]
+
:
  -- if faction numbers are omitted, uses faction of mob performing check
+
:<b>if isenemy(<target>) [== faction number]</b>
 +
:
 +
: -- if faction numbers are omitted, uses faction of mob performing check
 +
:
 +
: <b>mpfaction <target> <faction number> <change> [1/0]</b> -- trailing 1/0 is to
 +
: choose whether the standard faction improve/worsen message is displayed
  
mpfaction <target> <faction number> <change> [1/0] -- trailing 1/0 is to
+
[[category:Leviticus]]
  choose whether the standard faction improve/worsen message is displayed
+
 
+
----
+
[[OLC Section 4]] | [http://http://www.ender.com/~jolinn/avendarbible/wiki.pl?Leviticus Leviticus -- Builder Resources Page]
+

Latest revision as of 07:56, 25 June 2019

FEDIT

"Faction seldom leaves a man honest, however it might find him.
   -Samuel Johnson
Fedit allows you to create and edit npc factions.
Faction enemy and friend ratings have defaults of -700 and 700 (which means
it will take approximately 70 kills of mobs of your level for you to become
allied with or hated by a faction).
Syntax: fedit [faction number]
Provide a faction number and you will enter the editor for that
faction. To see a list of faction numbers, 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 for the faction. Players who meet or
surpass this rating are considered to be allied to the faction.

Min-Enemy Rating:

Syntax: rating enemy [rating]
This changes the enemy rating for the faction. Players who meet
or fall below this rating are considered enemies of faction npcs.

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.
no_obscure: The new thief/assassin skill 'conceal evidence' doesn't work
   against this faction. 
big_bargain: Shops provide discount to faction friends.

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>
altar <altar room vnum> <value>

For example:

race ch'taren 1400
class spirit templar 700
class spirit scholar 700
race shuddeni -1000
altar 3491 -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 and those whose recall altar is in room 3491
would begin as enemies of the faction.


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. Without [faction],
it will list all factions with a non-zero standing for the player
set char <target> faction <number> <rating>: set faction values manually.

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