Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Message
| Take a look at the file doc/SMAUGDOC which comes with Smaug. Amongst other things, it says:
*npcfoe -- This is the # of the race that the deity "dislikes" so you get more
favour of killing a mob of this race. For example to set this deities
npcfoe to coder which lets say is race #4, you could do either:
setdeity shaddai npcfoe 4 OR
setdeity shaddai npcfoe coder
*susceptnum -- This sets the amount of favour needed otherwise, you get
set to any suscepts the deity has. For example if it was set to
500 and your favour was 400, you would be susceptible to whatever
this deities suscepts are.
setdeity shaddai susceptnum 500
*race -- If this is set then this deity only accepts worshippers of a certain
race. This too can be set by the name of the race or by the number.
So for example if you wanted the deity so only humans can devote to
it you would do:
setdeity shaddai race human
To clear this value set it to -1, like this:
setdeity shaddai race -1
*race2 -- If this is set 2 races can devote to this deity, but it will only be
checked if race is set as well. So if you wanted Shaddai deity to
have worshippers of humans AND dwarfs, you would do this:
setdeity shaddai race2 dwarf
Just like above to clear this flag set it to -1.
*npcrace -- This is similar to npcfoe, but you get a little less favour from
killing these than a npcfoe.
setdeity shaddai npcrace human
Now starting with that, and checking out deity.c to see what the fields for adjust_favor are:
/*
Internal function to adjust favor.
Fields are:
0 = flee 5 = sac 10 = backstab
1 = flee_npcrace 6 = bury_corpse 11 = die
2 = kill 7 = aid_spell 12 = die_npcrace
3 = kill_npcrace 8 = aid 13 = spell_aid
4 = kill_magic 9 = steal 14 = dig_corpse
15 = die_npcfoe 16 = flee_npcfoe 17 = kill_npcfoe
*/
void adjust_favor( CHAR_DATA * ch, int field, int mod )
I now do a grep adjust_favor to see where it is called:
$ grep adjust_favor *.c
act_obj.c: adjust_favor( ch, 6, 1 );
act_obj.c: adjust_favor( ch, 5, 1 );
deity.c:void adjust_favor( CHAR_DATA * ch, int field, int mod )
fight.c: adjust_favor( ch, 3, level_ratio );
fight.c: adjust_favor( ch, 17, level_ratio );
fight.c: adjust_favor( ch, 2, level_ratio );
fight.c: adjust_favor( victim, 11, 1 );
fight.c: adjust_favor( ch, 2, 1 );
fight.c: adjust_favor( victim, 12, level_ratio );
fight.c: adjust_favor( victim, 15, level_ratio );
fight.c: adjust_favor( victim, 11, level_ratio );
fight.c: adjust_favor( ch, 1, level_ratio );
fight.c: adjust_favor( ch, 16, level_ratio );
fight.c: adjust_favor( ch, 0, level_ratio );
magic.c: adjust_favor( ch, 7, 1 );
magic.c: adjust_favor( victim, 13, 1 );
magic.c: adjust_favor( ch, 4, 1 );
polymorph.c: adjust_favor( ch, -1, 1 );
skills.c: adjust_favor( ch, 14, 1 );
skills.c: adjust_favor( ch, 9, 1 );
skills.c: adjust_favor( ch, 10, 1 );
skills.c: adjust_favor( ch, 8, 1 );
skills.c: adjust_favor( ch, 9, 1 );
skills.c: adjust_favor( ch, 9, 1 );
skills.c: adjust_favor( ch, 9, 1 );
skills.c: adjust_favor( ch, 8, 1 );
skills.c: adjust_favor( ch, 10, 1 );
Burrowing into fight.c it seems that you get 3 possible favor adjustments:
- A standard "flee"
- One for fleeing from the deity's npc race
- One for fleeing from the deity's npc foe
If you work out what it all means you are welcome to add to the wiki at:
http://www.gammon.com.au/forum/?wiki=setdeity
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|