Skip to content

VariantInfo

Nebby edited this page Jul 12, 2021 · 16 revisions

VariantInfo

The VariantInfo ScriptableObject is the backbone of any variant you create, It's main function is to store data related to the stat changes and any other ScriptableObjects you create, such as Mesh replacements, skill replacements, etc.

The mod itself registers the Variants using all the information found within VariantInfo. Due to the length of the scriptable object itself, it is separated in 5 distinct areas.

Important Settings

Variable Name Description
IdentifierName UNIQUE ID Given to every Variant
Used for debugging and special
interactions with VariantComponents
BodyName The name of the desired BodyPrefab to modify.
Exclude the "Body" part of the name to properly
obtain it.
For example, LemurianBody turns into just Lemurian.
List of available vanilla prefabs can be found here
OverrideName Array Accepts only VariantOverrideName Scriptable objects
Information on them can be found here
IsModded Wether the BodyPrefab youre trying to modify is from a mod.
Trying to access a body prefab from a mod and not having this
set to true will return null when attempting to fetch the prefab
VariantConfig Accepts VariantConfig scriptable object.
Information on them can be found here
AIModifier Basic modifications to the Variant's AI
Default: No changes are made
Unstable: The variant attempts to use Desesperation Attacks whenever possible
ForceSprint: The variant always sprints
VariantTier The Variant's Tier, Has no correlation with rewards nor
with spawn chances
Common: Nothing special
Uncommon: Has a purple healthbar
Rare: Has a purple healthbar and announces arrival
Legendary: Has a purple healthbar, announces arrival and
makes a unique sound effect when spawning

Reward Settings

Variable Name Description
Gives Rewards Wether or not the variant gives rewards or
if its used in rewards calculations.
Custom Variant Reward Accepts only a CustomVariantReward Scriptable Object
Information on them can be found here

Custom Inventory & Skills

Variable Name Description
Variant Inventory Accepts only a VariantInventory scriptable object
Information on them can be found here
Custom Equipment Accepts only an EquipmentInfo scriptable object
Information on them can be found here
Buff Array Accepts only VariantBuff scriptable objects
Information on them can be found here
Skill Replacement Array Accepts only VariantSkillReplacement Scriptable Objects
Information on them can be found here

Stat Modifiers

Variable Name Description
Health Multiplier Multiplies the Variant's Base Health.
Movement Speed Multiplier Multiplies the Variant's Base Speed.
Attack Speed Multiplier Multiplies the Variant's Attack Speed
Damage Multiplier Multiplies the Variant's Damage
Armor Multiplier Multiplies the Variant's Armor
Armor Bonus Adds or subtracts armor from the Variant
depending wether a negative or positive number
is in the input.

Other Settings

Variable Name Description
Arrival Message Used for Rare and Legendary Variants
If left empty it'll announce a generic message.
Mesh Replacement Array Accepts only VariantMeshReplacement scriptable objects
Information on them can be found here
Material Replacement Array Accepts only VariantMaterialReplacement scriptable objects
Information on them can be found here
Light Replacement Array Accepts only VariantLightReplacement scriptable objects, information on them can be found here
Size Modifier Accepts only a VariantSizeModifier scriptable object
information on them can be found here
Extra Component Accepts only a VariantExtraComponent scriptable object
Information on them can be found here
Custom Death State Replaces a variant's DeathState.
Accepts only a Fully Qualified Class name.

Clone this wiki locally