XCiD
Terrarian
Totally knew thatDoes that mean it wont spawn?
[DOUBLEPOST=1457561402,1457561159][/DOUBLEPOST]
Also, its !Main.Day.Time. The ! means it wont, so it spawns at night ^_^
[DOUBLEPOST=1457561688][/DOUBLEPOST]One last thing, how do I make the bool go to true when I equip it?
In the Update() method of ModItem:
((Player)player.GetModPlayer(mod, "Player")).accessoryOn = true;
EDIT: also, in the PreUpdate() method of ModPlayer:
((Player)player.GetModPlayer(mod, "Player")).accessoryOn = false;
what this does is make it so that when the accessory is taken off the NPC wont spawn anymore
[DOUBLEPOST=1457564818][/DOUBLEPOST]
and no, you would put the "return 0f;" outside of the if statement, like in an else statement.Does that mean it wont spawn?
this makes it so that the NPC wont spawn if you dont have the accessory on