public class NPC_ extends MajorRecordNamed implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
NPC_.Aggression |
static class |
NPC_.Assistance |
static class |
NPC_.Confidence |
static class |
NPC_.FacePart |
static class |
NPC_.Mood |
static class |
NPC_.Morality |
static class |
NPC_.NPCFlag
Collection of various flags applied to the NPC (ACBS flags)
|
static class |
NPC_.NPCStat
Enum representing the various stats of the NPC
|
static class |
NPC_.SoundLocation |
static class |
NPC_.SoundPackage
Sound package containing sounds to play for different actions
|
static class |
NPC_.SoundPair
Pair containing sound to play and chance to play it
|
static class |
NPC_.TemplateFlag
The template flags telling the NPC which parts to use from its target
template.
|
static class |
NPC_.TintLayer |
MajorRecord.MajorFlags
Modifier and Type | Method and Description |
---|---|
boolean |
addAIPackage(FormID aiPackageReference)
Deprecated.
modifying the ArrayList will now directly affect the record.
|
boolean |
addFaction(FormID factionRef,
int rank)
Deprecated.
modifying the ArrayList will now directly affect the record.
|
void |
addHeadPart(FormID pnam)
Deprecated.
modifying the ArrayList will now directly affect the record.
|
boolean |
addItem(FormID itemReference,
int count) |
boolean |
addItem(ItemListing item)
Deprecated.
modifying the ArrayList will now directly affect the record.
|
void |
addPerk(FormID perkRef,
int rank)
Deprecated.
modifying the ArrayList will now directly affect the record.
|
boolean |
addSoundPackage(NPC_.SoundPackage sounds)
Deprecated.
modifying the ArrayList will now directly affect the record.
|
boolean |
addSpell(FormID spellReference)
Deprecated.
modifying the ArrayList will now directly affect the record.
|
boolean |
addTinting(NPC_.TintLayer tinting)
Deprecated.
modifying the ArrayList will now directly affect the record.
|
void |
clearAIPackages()
Deprecated.
modifying the ArrayList will now directly affect the record.
|
void |
clearFactions()
Deprecated.
modifying the ArrayList will now directly affect the record.
|
void |
clearHeadParts()
Deprecated.
modifying the ArrayList will now directly affect the record.
|
void |
clearItems()
Deprecated.
modifying the ArrayList will now directly affect the record.
|
void |
clearPerks()
Deprecated.
modifying the ArrayList will now directly affect the record.
|
void |
clearSoundPackages()
Deprecated.
modifying the ArrayList will now directly affect the record.
|
void |
clearSpells()
Deprecated.
modifying the ArrayList will now directly affect the record.
|
void |
clearTinting()
Deprecated.
modifying the ArrayList will now directly affect the record.
|
boolean |
get(NPC_.NPCFlag flag) |
int |
get(NPC_.NPCStat stat)
Returns the value of the stat data represented by the given enum.
|
boolean |
get(NPC_.TemplateFlag flag) |
int |
get(Skill skill)
Returns the base value of the skill represented by the given enum.
|
NPC_.Aggression |
getAggression() |
int |
getAggroAttack() |
int |
getAggroWarn() |
int |
getAggroWarnAttack() |
java.util.ArrayList<FormID> |
getAIPackages() |
NPC_.Assistance |
getAssistance() |
FormID |
getAttackDataRace() |
FormID |
getAudioTemplate() |
FormID |
getCombatOverride() |
FormID |
getCombatStyle() |
NPC_.Confidence |
getConfidence() |
FormID |
getCrimeFaction() |
FormID |
getDeathItem()
The item to be added to the NPC's inventory upon death.
|
FormID |
getDefaultOutfit() |
FormID |
getDefaultPackageList() |
int |
getEnergy() |
int |
getEyePreset() |
float |
getFaceTint(RGB color) |
float |
getFaceValue(NPC_.FacePart part) |
java.util.ArrayList<SubFormInt> |
getFactions()
Returns the group of factions assigned to the NPC.
|
float |
getFarAwayModelDistance() |
FormID |
getFarAwayModelSkin() |
int |
getFatigueOffset() |
FormID |
getFeatureSet() |
int |
getGearedUpWeapons() |
FormID |
getGiftFilter() |
FormID |
getGuardWornOverride() |
FormID |
getHairColor() |
java.util.ArrayList<FormID> |
getHeadParts() |
int |
getHealthOffset() |
float |
getHeight() |
java.util.ArrayList<ItemListing> |
getItems() |
KeywordSet |
getKeywordSet() |
int |
getMagickaOffset() |
int |
getMod(Skill skill)
Returns the mod value of the skill represented by the given enum.
|
NPC_.Mood |
getMood() |
NPC_.Morality |
getMorality() |
int |
getMouthPreset() |
int |
getNosePreset() |
FormID |
getNPCClass() |
FormID |
getObserveDeadOverride() |
java.util.ArrayList<SubFormInt> |
getPerks() |
FormID |
getRace() |
ScriptPackage |
getScriptPackage() |
java.lang.String |
getShortName() |
FormID |
getSkin() |
FormID |
getSleepingOutfit() |
java.util.ArrayList<NPC_.SoundPackage> |
getSounds() |
SoundVolume |
getSoundVolume() |
FormID |
getSpectatorOverride() |
java.util.ArrayList<FormID> |
getSpells() |
FormID |
getTemplate() |
java.util.ArrayList<NPC_.TintLayer> |
getTinting() |
FormID |
getVoiceType()
The voice type of the NPC.
|
float |
getWeight() |
boolean |
isTemplated() |
LVLN |
isTemplatedToLList(NPC_.TemplateFlag... templateFlagsToCheck)
Checks the NPC's template chain to see if a Leveled List is on it, and
returns it if found.
Flags can be specified if you only want to return a Leveled List if AT LEAST one of those flags is checked. |
boolean |
removeAIPackage(FormID aiPackageReference)
Deprecated.
modifying the ArrayList will now directly affect the record.
|
boolean |
removeFaction(FormID factionRef)
Deprecated.
modifying the ArrayList will now directly affect the record.
|
void |
removeHeadPart(FormID pnam)
Deprecated.
modifying the ArrayList will now directly affect the record.
|
boolean |
removeItem(FormID itemReference)
Deprecated.
modifying the ArrayList will now directly affect the record.
|
boolean |
removePerk(FormID perkRef)
Deprecated.
modifying the ArrayList will now directly affect the record.
|
boolean |
removeSoundPackage(NPC_.SoundPackage sounds)
Deprecated.
modifying the ArrayList will now directly affect the record.
|
boolean |
removeSpell(FormID spellReference)
Deprecated.
modifying the ArrayList will now directly affect the record.
|
boolean |
removeTinting(NPC_.TintLayer tinting)
Deprecated.
modifying the ArrayList will now directly affect the record.
|
void |
set(NPC_.NPCFlag flag,
boolean on) |
void |
set(NPC_.NPCStat stat,
int value)
Sets the value of the stat data represented by the given enum.
|
void |
set(NPC_.TemplateFlag flag,
boolean on) |
void |
set(Skill skill,
int value)
Sets the base value of the skill represented by the given enum.
|
void |
setAggression(NPC_.Aggression level) |
void |
setAggroAttack(int aggro) |
void |
setAggroWarn(int aggro) |
void |
setAggroWarnAttack(int aggro) |
void |
setAssistance(NPC_.Assistance level) |
void |
setAttackDataRace(FormID attackRaceRef) |
void |
setAudioTemplate(FormID audioTemplateRef) |
void |
setCombatOverride(FormID list) |
void |
setCombatStyle(FormID combatRef) |
void |
setConfidence(NPC_.Confidence level) |
void |
setCrimeFaction(FormID crimeFactionRef) |
void |
setDeathItem(FormID deathItemRef)
The item to be added to the NPC's inventory upon death.
|
void |
setDefaultOutfit(FormID defaultOutfitRef) |
void |
setDefaultPackageList(FormID list) |
void |
setEnergy(int energy) |
void |
setEyePreset(int val) |
void |
setFaceTint(RGB color,
float value) |
void |
setFaceValue(NPC_.FacePart part,
float value) |
void |
setFarAwayModelDistance(float dist) |
void |
setFarAwayModelSkin(FormID id) |
void |
setFatigueOffset(int value) |
void |
setFeatureSet(FormID headPartsRef) |
void |
setGearedUpWeapons(int value) |
void |
setGiftFilter(FormID id) |
void |
setGuardWornOverride(FormID list) |
void |
setHairColor(FormID hairColorRef) |
void |
setHealthOffset(int value) |
void |
setHeight(float height) |
void |
setMagickaOffset(int value) |
void |
setMod(Skill skill,
int value)
Sets the mod value of the skill represented by the given enum.
|
void |
setMood(NPC_.Mood value) |
void |
setMorality(NPC_.Morality level) |
void |
setMouthPreset(int val) |
void |
setNosePreset(int val) |
void |
setNPCClass(FormID classReference) |
void |
setObserveDeadOverride(FormID list) |
void |
setRace(FormID raceRef) |
void |
setShortName(java.lang.String alias) |
void |
setSkin(FormID wornArmorRef) |
void |
setSleepingOutfit(FormID sleepingOutfitRef) |
void |
setSoundVolume(SoundVolume vol) |
void |
setSpectatorOverride(FormID list) |
void |
setTemplate(FormID templateRef) |
void |
setVoiceType(FormID voiceTypeRef)
The voice type of the NPC.
|
void |
setWeight(float weight) |
void |
templateTo(FormID npc,
NPC_.TemplateFlag... flags)
Takes in another NPC, and assumes all the information associated with the
input flags.
|
void |
templateTo(NPC_ otherNPC,
NPC_.TemplateFlag... flags)
Takes in another NPC, and assumes all the information associated with the
input flags.
|
getName, setName
copy, deepEquals, equals, get, getEDID, getForm, getFormMaster, getFormStr, hashCode, print, set, setEDID, setForm, toString
getRecordLength, getType
public void templateTo(NPC_ otherNPC, NPC_.TemplateFlag... flags)
otherNPC
- NPC FormID to assume info from.flags
- Types of information to assume. If none are given, then the
NPCs active flags will be assumed.public void templateTo(FormID npc, NPC_.TemplateFlag... flags)
npc
- flags
- Types of information to assume. If none are given, then the
NPCs active flags will be assumed.public LVLN isTemplatedToLList(NPC_.TemplateFlag... templateFlagsToCheck)
templateFlagsToCheck
- Flags to consider. If none are given, then
all considered.public ScriptPackage getScriptPackage()
public void set(NPC_.TemplateFlag flag, boolean on)
flag
- Template flag to set.on
- What to set the template flag to.public boolean get(NPC_.TemplateFlag flag)
flag
- Template flag to get.public java.util.ArrayList<SubFormInt> getFactions()
SubRecordList
public boolean addFaction(FormID factionRef, int rank)
factionRef
- FormID of the faction to add the NPC into.rank
- Rank within the faction to set the NPC at.public boolean removeFaction(FormID factionRef)
factionRef
- FormID matching the FactionRef record to remove.public void clearFactions()
public java.util.ArrayList<SubFormInt> getPerks()
public void addPerk(FormID perkRef, int rank)
perkRef
- rank
- public boolean removePerk(FormID perkRef)
perkRef
- public void clearPerks()
public boolean get(NPC_.NPCFlag flag)
flag
- NPCFlag to get.public void set(NPC_.NPCFlag flag, boolean on)
flag
- NPCFlag to set.on
- What to set the NPCFlag to.public int get(Skill skill)
skill
- The enum of the skill to return the base value of.Skills
public void set(Skill skill, int value)
skill
- The enum of the skill to set to the value.value
- Sets the base value of the skill to this value.Skills
public int getMod(Skill skill)
skill
- The enum of the skill to return the mod value of.Skills
public void setMod(Skill skill, int value)
skill
- The enum of the skill to set to the value.value
- Sets the mod value of the skill to this value.Skills
public void setAggression(NPC_.Aggression level)
level
- public NPC_.Aggression getAggression()
public void setConfidence(NPC_.Confidence level)
level
- public NPC_.Confidence getConfidence()
public void setMorality(NPC_.Morality level)
level
- public NPC_.Morality getMorality()
public void setAssistance(NPC_.Assistance level)
level
- public NPC_.Assistance getAssistance()
public int get(NPC_.NPCStat stat)
stat
- The enum of the stat data to return.Stat_Values
public void set(NPC_.NPCStat stat, int value)
stat
- The enum of the stat data to set to the value.value
- Sets the value of the stat data to this value.Stat_Values
public void setDeathItem(FormID deathItemRef)
deathItemRef
- public FormID getDeathItem()
public void setVoiceType(FormID voiceTypeRef)
voiceTypeRef
- public FormID getVoiceType()
public void setTemplate(FormID templateRef)
templateRef
- public FormID getTemplate()
public boolean isTemplated()
public void setRace(FormID raceRef)
raceRef
- public FormID getRace()
public java.util.ArrayList<FormID> getSpells()
public boolean addSpell(FormID spellReference)
spellReference
- FormID of the spell to give to the NPC.public boolean removeSpell(FormID spellReference)
spellReference
- FormID of the spell to remove from the NPCpublic void clearSpells()
public boolean addItem(FormID itemReference, int count)
itemReference
- count
- public boolean addItem(ItemListing item)
item
- public boolean removeItem(FormID itemReference)
itemReference
- public void clearItems()
public java.util.ArrayList<ItemListing> getItems()
public boolean addAIPackage(FormID aiPackageReference)
aiPackageReference
- public boolean removeAIPackage(FormID aiPackageReference)
aiPackageReference
- public java.util.ArrayList<FormID> getAIPackages()
public void clearAIPackages()
public void setNPCClass(FormID classReference)
classReference
- public FormID getNPCClass()
public void setHairColor(FormID hairColorRef)
hairColorRef
- public FormID getHairColor()
public void setSkin(FormID wornArmorRef)
wornArmorRef
- public FormID getSkin()
public void setAttackDataRace(FormID attackRaceRef)
attackRaceRef
- public FormID getAttackDataRace()
public void setDefaultOutfit(FormID defaultOutfitRef)
defaultOutfitRef
- public FormID getDefaultOutfit()
public void setSleepingOutfit(FormID sleepingOutfitRef)
sleepingOutfitRef
- public FormID getSleepingOutfit()
public void setCombatStyle(FormID combatRef)
combatRef
- public FormID getCombatStyle()
public void setCrimeFaction(FormID crimeFactionRef)
crimeFactionRef
- public FormID getCrimeFaction()
public void setFeatureSet(FormID headPartsRef)
headPartsRef
- public FormID getFeatureSet()
public void setAudioTemplate(FormID audioTemplateRef)
audioTemplateRef
- public FormID getAudioTemplate()
public void setDefaultPackageList(FormID list)
list
- public FormID getDefaultPackageList()
public void setHeight(float height)
height
- public float getHeight()
public void setWeight(float weight)
weight
- public float getWeight()
public void setFarAwayModelSkin(FormID id)
id
- public FormID getFarAwayModelSkin()
public void setFarAwayModelDistance(float dist)
dist
- public float getFarAwayModelDistance()
public void setHealthOffset(int value)
value
- public int getHealthOffset()
public void setMagickaOffset(int value)
value
- public int getMagickaOffset()
public void setFatigueOffset(int value)
value
- public int getFatigueOffset()
public void setMood(NPC_.Mood value)
value
- public NPC_.Mood getMood()
public void setEnergy(int energy)
energy
- public int getEnergy()
public void setAggroWarn(int aggro)
aggro
- public int getAggroWarn()
public void setAggroWarnAttack(int aggro)
aggro
- public int getAggroWarnAttack()
public void setAggroAttack(int aggro)
aggro
- public int getAggroAttack()
public void setGiftFilter(FormID id)
id
- public FormID getGiftFilter()
public void setGearedUpWeapons(int value)
value
- public int getGearedUpWeapons()
public void setSpectatorOverride(FormID list)
list
- public FormID getSpectatorOverride()
public void setObserveDeadOverride(FormID list)
list
- public FormID getObserveDeadOverride()
public void setGuardWornOverride(FormID list)
list
- public FormID getGuardWornOverride()
public void setCombatOverride(FormID list)
list
- public FormID getCombatOverride()
public void setShortName(java.lang.String alias)
alias
- public java.lang.String getShortName()
public void setSoundVolume(SoundVolume vol)
vol
- public SoundVolume getSoundVolume()
public void setFaceValue(NPC_.FacePart part, float value)
part
- value
- public float getFaceValue(NPC_.FacePart part)
part
- public java.util.ArrayList<NPC_.TintLayer> getTinting()
public boolean addTinting(NPC_.TintLayer tinting)
tinting
- public boolean removeTinting(NPC_.TintLayer tinting)
tinting
- public void clearTinting()
public java.util.ArrayList<NPC_.SoundPackage> getSounds()
public boolean addSoundPackage(NPC_.SoundPackage sounds)
sounds
- public boolean removeSoundPackage(NPC_.SoundPackage sounds)
sounds
- public void clearSoundPackages()
public float getFaceTint(RGB color)
color
- public void setFaceTint(RGB color, float value)
color
- value
- public int getNosePreset()
public void setNosePreset(int val)
val
- public int getEyePreset()
public void setEyePreset(int val)
val
- public int getMouthPreset()
public void setMouthPreset(int val)
val
- public java.util.ArrayList<FormID> getHeadParts()
public void addHeadPart(FormID pnam)
pnam
- public void removeHeadPart(FormID pnam)
pnam
- public void clearHeadParts()
public KeywordSet getKeywordSet()