Follower

From CoffeeMud Wiki
Revision as of 16:56, 20 May 2017 by Loki (talk | contribs) (Created page with "{{BehaviorTemplate|Name=Follower|Targets=MOBs, Items|Usage=min, max, pct (inv) (group) (nofollowers) (wander) (follow mask) (name="name")|Examples=min=1 max=1 chance=50 -race...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
CoffeeMUD
Administrator                                                  Builder                                                              Player
=CoffeeMUD Builder Information=
Basics Praetor     Player Support     Commands     Zapper Masks Advanced Races     Classes     Abilities     Socials     Scripting    
Building Behaviors     Properties     Areas     Rooms     Exits     Items     Mobs Systems Achievements     Crafting     Help Info     Ships     Planes of Existence     Quests     Triumphs    
===Follower===
Targets: MOBs, Items
Parameters: min, max, pct (inv) (group) (nofollowers) (wander)

(follow mask) (name="name")

Examples: min=1 max=1 chance=50 -race +elf

group nofollowers -race +elf +gnome

min=4 max=20 chance=100 inv -race +elf +gnome

Description: The mob with this behavior will follow any other mob that leaves the room. Following normally happens on the tick, but if minticks and maxticks are -1, it will be instant. A chance percentage (1-100) parameter may be given to better randomize the opportunity. A GROUP flag may also be included to make the mob join the targets group instead of merely following them out of the room. The rate of non-grouping following is dictated by the min and max ticks. The NOFOLLOWERS flag will make sure that this behavior does not trigger when the mob has someone following him/her. The WANDER flag may be added to allow the mob to leave their home area.

An item with this behavior will also follow mobs around, depending upon whether the INVENTORY flag is in the parameters or not. If it is, then the item will reappear in the inventory of the first person to pick it up whenever it is dispensed with. If the INVENTORY flag is not used, it will always appear in the same room as the first it comes across. The rate of reappearance is dictated by the min and max ticks. Items with this behavior can not be sold to shopkeepers.

A NAME may be given to limit the person followed to only that name. A mask may also be given to define what sort of targets are elligible to be followed by the mob or item. Valid masks include:

+SYSOP (allow archons to bypass the rules), -SYSOP (ignore archons)

+SUBOP (allow local area staff to bypass the rules), -SUBOP (ignore)

-PLAYER (ignore all players), -MOB (ignore all mobs/npcs)

-CHANCE 50 (ignore the given % of the time)

-JAVACLASS "+GENMOB" etc.. (ignore only objects of +java class)

+JAVACLASS "-GENITEM" etc.. (Do not ignore objs of -classes)

-CLASS +thief +mage +ranger (ignore all but excepted char classes)

+CLASS -thief -mage -ranger (ignore only listed classes)

-BASECLASS +thief +mage (ignore all but excepted base char classes)

+BASECLASS -thief -mage -ranger (ignore only listed base char classes)

-RACE +elf +dwarf (ignore all but excepted races)

+RACE -elf -dwarf -human -half -gnome (ignore only listed races)

-RACECAT +elf +insect +humanoid (ignore all but listed racial categories)

+RACECAT -elf -humanoid (ignore only listed racial categories)

-ALIGNMENT +evil +neutral +good (ignore all but excepted alignments)

+ALIGNMENT -evil -good -neutral (ignore only listed alignments)

-GENDER (ignore genders), -GENDER +male +neuter (create exceptions)

+GENDER -male -female -neuter (ignore only listed genders)

-FACTION (ignore all faction and values, even a lack of faction)

-FACTION +myfactionrange +faction.rangecode (create exceptions)

+FACTION -rangecode -faction.rangecode (ignore only faction range code)

-NAMES +bob "+my name" (ignore all except those with given names)

+NAMES -bob "-my name" (ignore only those with one of the given names)

-SUBNAMES +*ending +*inside* (ignore all except those with partial name)

+SUBNAMES -*ending -*insid* (ignore only those with partial name mask)

-TATTOOS +mytatto +thistattoo (ignore all but those with excepted tatts)

+TATTOOS -mytatt -anytattoo, (ignore only those with a listed tattoo)

-EXPERTISES +myedu +thisedu (ignore all but those with listed expertise)

+EXPERTISES -myedu -anyedu (ignore those with a listed expertise)

-LEVEL +=1 +)5 +)=7 +(13 +(=20 (ignore all but those player level ranges)

-=1 -)5 -)=7 -(13 -(=20 (ignore only listed levels range)

-CLASSLEVEL +=1 +)5 +(=20 (ignore all except those with current class lvl)

-MAXCLASSLEVEL +=1 +(13 (ignore only those with current class level range)

+ANYCLASS -thief -mage (ignore only those with a listed multi-class)

-ANYCLASSLEVEL +thief +)5 +mage +(10 (ignore all except multi-class lvl)

+ANYCLASSLEVEL -thief -)5 -mage -(10 (ignore only these multi-class lvls)

-SECURITY +cmdrooms +area cmditems (ignore all but listed security flags)

+SECURITY -cmdrooms +area cmditems,(ignore only those with listed flags)

-MOOD +grumpy +normal (ignore all except those with given moods)

+MOOD -grumpy -normal (ignore only those with subtracted moods)

-CLAN +Killers "+The Avengers" (ignore all except those in listed clan)

+CLAN -Killers "-Avengers" (ignore only those in a listed clan)

-DEITY +Apollo "+Grothon" (ignore all except worshippers of listed deity)

+DEITY -God "-Rothon 1" (ignore only worshippers of a listed deity)

-ANYCLASS +thief +ranger (ignore all except those with a multi-class)

-STR X (ignore those with strength greater than X)

+STR X (ignore those with strength less than X)

-INT, -WIS, -CON, -CHA, -DEX (Same as -STR, for other current stats)

+INT, +WIS, +CON, +CHA, +DEX (Same as +STR, for other current stats)

+-ADJSTR...ADJCON (Same as above, but uses current values)

-GROUPSIZE X (ignore those in groups larger than X)

+GROUPSIZE X (ignore those in groups smaller than X)

-AREA +thatarea "+my areaname" (ignore all except those in listed area)

+AREA -thatarea "-my areaname" (ignore only those in listed area)

-HOME "+area name" (ignore all except those from listed home/beacon area)

+HOME "-my areaname" (ignore only those from listed home/beacon area)

-ISHOME (ignore all npcs not currently in their home/beacon areas)

+ISHOME (ignore all npcs unless they are in their home/beacon areas)

-ITEM "+item name" etc... (ignore only those with an item name)

-WORN "+item name" etc... (ignore only those wearing item name)

-MATERIAL "+WOODEN" etc.. (ignore only items of added materials)

+MATERIAL "-WOODEN" etc.. (Do not ignore items of -materials)

-RESOURCES "+OAK" etc.. (ignore only items of added resources)

+RESOURCES "-OAK" etc.. (Do not ignore items of -resources)

-IF (CONDITION) (ignore, unless they meet Scriptable conditions)

+IF (CONDITION) (never ignore anyone who meets Scriptable cond)

-IFSTAT +STAT=VALUE +STAT=VALUE (ignore, unless a stat value is true)

+IF -STAT=VALUE -STAT=VALUE (ignore those with a stat value)

-VALUE X (ignore those with value or money less than X)

+VALUE X (ignore those with value or money greater than X)

-WEIGHT X (ignore those weighing less than X)

+WEIGHT X (ignore those weighing more than X)

-ARMOR/-DAMAGE/-ATTACK X (ignore armor/damage/attack bonus less than X)

+ARMOR/+DAMAGE/+ATTACK X (ignore armor/damage/attack bonus more than X)

+-WEAPONTYPE, +-WEAPONCLASS, and +-WEAPONAMMO for wielded weaponchecks

-WORNON "+TORSO" etc.. (ignore only items wearable on +locations)

+WORNON "-NECK" etc.. (Do not ignore items wearable on -locations)

-DISPOSITION "+ISHIDDEN" etc.. (ignore only with +dispositions)

+DISPOSITION "-ISHIDDEN" etc.. (Do not ignore only with sub disp)

-SENSES "+CANSEEDARK" etc.. (ignore only those with +senses)

+SENSES "-CANSEEDARK" etc.. (Do not ignore those with -senses)

-ABILITY X (ignore those with magical ability less than X)

+ABILITY X (ignore those with magical ability greater than X)

-HOUR/-MONTH/-DAY +X (ignore always, unless the hour/month/day is X)

+HOUR/+MONTH/+DAY -X (ignore those only when the hour/month/day is X)

-SEASON +FALL (ignore those only when season is FALL)

+SEASON -SPRING (ignore those whenever the season is SPRING)

-WEATHER +DROUGHT (ignore those only when weather is DROUGHT)

+WEATHER -BLIZZARD (ignore those whenever the weather is BLIZZARD)

-QUESTWIN "+MY QUEST" (ignore those who have not my MY QUEST)

+QUESTWIN "-MY QUEST" (ignore those who have won MY QUEST)

-EFFECTS +Sleep "+Wood Chopping" (ignore all except those with effects)

+EFFECTS -Sleep "-Wood Chopping" (ignore only those with listed effect)

-SKILLS +Spell_Sleep(75) (ignore all except those with skill proficiency)

+SKILLS -Spell_Sleep(75) (ignore only those with skill proficiency)

-SKILLFLAG +ENCHANTMENT etc.. (ignore all except those with skillflag)

+SKILLFLAG -ENCHANTMENT etc.. (ignore only those with listed skillflag)

-ACCCHIEVES +mytatto etc.. (ignore all except those with achievements)

+ACCCHIEVES -mytattoo etc.. (ignore only those with listed achievements)

Notes

.