Im up to the stage in modding Terraria where i want to get into the .cs scripts side of things so i thaught the easiest thing to do would be would to make a NPC i have a good idea of what i want and im following the tutorial on the Tconfig wiki and its help full but i want my NPC to spawn the same as the guide with out any needs, so what i'm asking is there anyway to make a NPC spawn straight off when you start the game?
that was the tutorial that i was looking at it dosent give any other examplaes of how an npc can spawn but thanks for trying
"the easiest thing" - you got it all backwards. It's the HARDEST THING, imo. Other than some other crazy ideas. The easiest are custom items.
The only way I can think of to get a custom NPC to spawn exactly to the conditons you want is to substitute the guide for your custom NPC. That requires advanced coding, though. You can get an NPC to spawn immediately when a house is available, though. Try using this: Code: public static bool TownSpawn() { return true; }
i tried that and in my world i have 2 houses available both are suitable and its been a few hours and he still has not arrived. i have even tried starting a new world and that has still not worked. when i first tried reversing the script on the wiki so that if hard mode is enabled he will not spawn and if its not enabled he will spawn and he spawned immediately (died and never came back) (my game is not yet in hard mode)
Hmm, try this: Code: public static bool TownSpawn() { if(Main.dayTime) return true; else return false; }
they both make sense but i cant tell why he wont show up, i will get one of my friends to test the mod out and see if it happens for them.
i have sort of skipped doing the npc antill a later time but do you know how to make custom ores spawn in a custome world because atm im not having much luck.
If you wanna start out easily like you said, I strongly recommend making custom items. http://tconfig.wikia.com/wiki/How_to_make_a_non-basic_item Here's the tutorial for how to spawn custom ore. (PM me if you still need help.) http://tconfig.wikia.com/wiki/Spawning_Ores