• Basic NPC Spawning
  • Basic Ideas
  • Balance
  • Terraria Spawning
  • Return values
  • ModNPC.SpawnChance
  • ModNPC.CanTownNPCSpawn
  • Conditionals (if-else)
  • Not Operator (!)
  • And and OR (&& and ||)
  • = vs ==
  • Ternary
  • NPCSpawnInfo
  • Player Biomes
  • Heights
  • Other Values
  • SpawnCondition
  • Examples
  • Spawn on my ModTile
  • Spawn if player in custom Biome/Zone
  • Spawn in Jungle Temple
  • Spawn during Solar Eclipse
  • Player standing on Sunplate tile
  • Combining Snippets
  • Combining bool and float
  • Easy Syntax
  • Moderate Syntax
  • Complicated Syntax
  • Common Errors
  • Why is my world in HardMode suddenly?
  • CS0161 '[ClassName].SpawnChance(NPCSpawnInfo)': not all code paths return a value
  • CS0029 Cannot implicitly convert type 'bool' to 'float'
  • Relevant References
  • Not covered in Basic level