Page 1 of 1

What’s the “Checklist” for creating Ghost Roles?

Posted: Mon Dec 12, 2022 7:28 pm
by Epicgamer545
I’m looking forward to making maps designed around Icebox, but I’m a bit confused about /how/ to actually make one. I have no idea what files to touch and how I should edit them. Should I edit jobs.dm? Should I create a outfit? I see the listening station ghost role not creating a outfit for the agent, so what’s the deal?

Re: What’s the “Checklist” for creating Ghost Roles?

Posted: Tue Dec 13, 2022 1:33 am
by san7890
Something that's always helped me whenever I'm tackling a new type of mapping project is thinking what mechanics I want to use in my map (like ghost role spawning), and then looking at an example of that in already existing maps. You seem to already have done that with the Syndicate Agent. If you're wondering about the outfit for the syndicate listening station, in specific, it doesn't need to apply a new outfit because it's a subtype of /obj/effect/mob_spawn/ghost_role/human/lavaland_syndicate/comms (the one you see on Lavaland)

This means that since that above type is the parent of the space listening station /obj/effect/mob_spawn/ghost_role/human/lavaland_syndicate/comms/space, it'll automatically assume the outfit of the "comms" type as a subtype. We override some of the behavior on initialize for the space subtype (like deleting the spawner entirely depending on RNG.

Re: What’s the “Checklist” for creating Ghost Roles?

Posted: Tue Dec 13, 2022 6:22 am
by Epicgamer545
san7890 wrote: Tue Dec 13, 2022 1:33 am Something that's always helped me whenever I'm tackling a new type of mapping project is thinking what mechanics I want to use in my map (like ghost role spawning), and then looking at an example of that in already existing maps. You seem to already have done that with the Syndicate Agent. If you're wondering about the outfit for the syndicate listening station, in specific, it doesn't need to apply a new outfit because it's a subtype of /obj/effect/mob_spawn/ghost_role/human/lavaland_syndicate/comms (the one you see on Lavaland)

This means that since that above type is the parent of the space listening station /obj/effect/mob_spawn/ghost_role/human/lavaland_syndicate/comms/space, it'll automatically assume the outfit of the "comms" type as a subtype. We override some of the behavior on initialize for the space subtype (like deleting the spawner entirely depending on RNG.
Oh, alright, I see now.

Re: What’s the “Checklist” for creating Ghost Roles?

Posted: Tue Dec 13, 2022 6:39 am
by Epicgamer545
I’m having a hard time of seeing a example of a straight up ghost role being created. I have seen some made in like, 2021, but they use files that are outdated (https://github.com/tgstation/tgstation/ ... da21513371). There is listening station, one that was recent but that was more a rework and I fear I may be missing something that is not changed. Is there any PRs or files I can look at for ghost role examples?

Re: What’s the “Checklist” for creating Ghost Roles?

Posted: Wed Dec 14, 2022 12:57 am
by san7890
i dunno i dont' think the backend has changed that much, only thing i can think of being important is https://github.com/tgstation/tgstation/ ... YCONFIG.md