I want to make a custom companion . i Already checked Gaomon companion Mod. The instruction in it is pretty easy to understand. But there is still one last thing i still not clear yet: How did you code spawning condition for Gaomon companion (or any other companion in your mod right now)? Example, Sardine Spawn right after king slime has been defeated, But i can't see the line of code about that event in Sardine.cs file. Did i missing something? Or you Code it elsewhere?
I am really looking forward to your awswer! And thank for reading
The code is elsewhere, and partially functions like how Gaomon npc spawns. For how Gaomon spawns, you'd need to check Item/BlueDigivice.cs.
The method
NpcMod.SpawnGuardianNpc(PosX, PosY, GuardianID, GuardianModID);
will allow you to spawn the guardian npc in the world.
I recommend you to make use of
NpcMod.AddGuardianMet(GuardianID, GuardianModID);
to let the world know that companion has been met.
Also, the code
PlayerMod.AddPlayerGuardian(PlayerCharacter, GuardianID, GuardianModID);
will add the companion directly to the player.
Depending on the way you make your companion recruitment, may be a good idea to make the player have knowledge that companion exists. :3
mi personaje se fusiona con michel wtf tuve que hacerme otro personaje y borrar el mundo and and can you make a mod that does terraguardians compatible with overhaul? Quiero decir que tienen las mismas cosas y diferentes animaciones que hay.
That's one confusion of english with spanish. Did you say your character fused with Michelle?
And what Terraria overhaul brings that could be needing support to the mod? I never played it, so I don't know.
Well if you want, I can tell you the couple ideas I have, though each terraguardian would have preferences, kinda like Miitopia with food. It'd add or subtract from the amount of friendship points they get, but never negate it meaning even stuff they don't exactly like they will still give a bit of friendship points.
I don't actually like that idea, It would make it more complicated to feed the companions, and Terraria 1.3 is actually quite limited on amount of food you can give them. Also, in no way reducing friendship points is possible on the mod.