• Journey's End on PC - Find info here and here. Please report bugs and issues for PC 1.4 and 1.4.1 to Re-Logic here.
  • Journey's End on Mobile - Find info here. Report bugs for Mobile 1.4 to DR Studios at this link and give as much detail as possible.
  • 1.4 will bring many changes to the PC version. We strongly advise making plans to back up your worlds and players prior to updating your game. More details here.
  • Console and Switch - The latest news can be found here. To report a bug, please use this link.

Editing AI?

Saobie

Terrarian
So, im brand new to coding and modding and through help online, tutorials, and a book i was lent i made 4 weapons (the bow doesnt work) and 4 bosses (one of them doesnt spawn)

2 of the bosses use AI from existing bosses since those bosses AI are as close to what i wanted as possible. One of my bosses uses Retinazers AI, and one uses the eye of cthulu

Heres the thing. I dont want the one using Retinazer AI to shoot lasers, and it needs to deal less damage. and i dont want the one using eye of cthuu to spawn cthulu servents (id have it spawn something else but idk how to make custom enemies)

Is there a place i can find the AI scripts for bosses so i can edit what i need to? Would that even be something i should bother attempting, given my lack of experience?
 

Sin Costan

Eye of Cthulhu
So, im brand new to coding and modding and through help online, tutorials, and a book i was lent i made 4 weapons (the bow doesnt work) and 4 bosses (one of them doesnt spawn)

2 of the bosses use AI from existing bosses since those bosses AI are as close to what i wanted as possible. One of my bosses uses Retinazers AI, and one uses the eye of cthulu

Heres the thing. I dont want the one using Retinazer AI to shoot lasers, and it needs to deal less damage. and i dont want the one using eye of cthuu to spawn cthulu servents (id have it spawn something else but idk how to make custom enemies)

Is there a place i can find the AI scripts for bosses so i can edit what i need to? Would that even be something i should bother attempting, given my lack of experience?
You can always attempt.

You can use ilSpy program to look inside the code for it. All the NPCs are by ID so be sure to use https://github.com/blushiemagic/tModLoader/wiki to get the IDs you want to check out. To use ilSpy, just drag Terraria.exe into the window and it will show up in the panel to the left, you can then look at codestuffs.
 

Saobie

Terrarian
Sorry i havnt seen this til now. This is going to be a lot of help! Iv already got ID's for npcs, sounds, dusts, etc all bookmarked so with this new tool hopefully i can make bosses function like existing ones, but edit them to work like how i want them to
 
Top Bottom