Difference between revisions of "Better Spawner/Spawn Info/NPC"
From Pixelmon Wiki
m (Link to NPC trainer) |
(Added example) |
||
Line 14: | Line 14: | ||
'''Note''': This is potentially going to be removed and replaced with specific [[Better Spawner/Spawn Info|SpawnInfo]] types for each type of NPC in future. | '''Note''': This is potentially going to be removed and replaced with specific [[Better Spawner/Spawn Info|SpawnInfo]] types for each type of NPC in future. | ||
+ | |||
+ | Example: | ||
+ | <div onload="prettyPrint()"> | ||
+ | <pre class="prettyprint"> | ||
+ | { | ||
+ | "name": "Relearner", | ||
+ | "stringLocationTypes": [ | ||
+ | "Land" | ||
+ | ], | ||
+ | "condition": { | ||
+ | "stringBiomes": [ | ||
+ | "plains", | ||
+ | "ice_plains", | ||
+ | "mountainous" | ||
+ | ] | ||
+ | }, | ||
+ | "rarityMultipliers": [ | ||
+ | { | ||
+ | "multiplier": 0.5, | ||
+ | "condition": { | ||
+ | "stringBiomes": [ | ||
+ | "ice_plains" | ||
+ | ] | ||
+ | } | ||
+ | } | ||
+ | ], | ||
+ | "typeID": "npc", | ||
+ | "rarity": 50 | ||
+ | } | ||
+ | </pre> | ||
+ | </div> |
Latest revision as of 04:17, 5 June 2018
SpawnInfoNPC are SpawnInfo for the general NPC. For NPC trainers, it is better to use SpawnInfoTrainer.
These are the properties available when a SpawnInfo has "typeID": "npc"
:
Property label | Type of value | Description |
---|---|---|
"name"
|
Any of the following: "Trainer" ,"ChattingNPC" ,"Relearner" ,"Tutor" ,"Trader" ,"Shopkeeper" ,"NurseJoy" .
|
The type of NPC to spawn. The properties of the NPC will be generated automatically. |
Note: This is potentially going to be removed and replaced with specific SpawnInfo types for each type of NPC in future.
Example:
{ "name": "Relearner", "stringLocationTypes": [ "Land" ], "condition": { "stringBiomes": [ "plains", "ice_plains", "mountainous" ] }, "rarityMultipliers": [ { "multiplier": 0.5, "condition": { "stringBiomes": [ "ice_plains" ] } } ], "typeID": "npc", "rarity": 50 }