How to remove jobs?

How, what and why to code in BYOND.
Post Reply
MasonKin
Joined: Sun Mar 24, 2019 4:21 pm
Byond Username: Verhulst

How to remove jobs?

Post by MasonKin » #489009

First off just going to say, please be patient I have autism.

I'm currently trying to make a small unique station for my friends and I to play on. There are a couple of jobs that I to remove, specifically the head roles.

This is located in my map folder, titled "job_changes.dm"
Spoiler:

Code: Select all

#define JOB_MODIFICATION_MAP_NAME "testingstation"
#define MAP_REMOVE_JOB(captain)
#define MAP_REMOVE_JOB(head_of_personnel)
#define MAP_REMOVE_JOB(chief_engineer)
#define MAP_REMOVE_JOB(research_director)
#define MAP_REMOVE_JOB(chief_medical_officer)
This is in map_changes.dm
Spoiler:

Code: Select all

#include "..\..\..\..\_maps\map_files\PubbyStation\job_changes.dm"
#undef JOB_MODIFICATION_MAP_NAME

#include "..\..\..\..\_maps\map_files\testing station\job_changes.dm"
#undef JOB_MODIFICATION_MAP_NAME
So I have two questions

1. This wasn't enough to remove the jobs from the code. What am I missing here?

2. Once the jobs are removed, will I still have to remove them from a list? For instance in code/modules/jobs/jobs.dm, will the head jobs need to be commented out?

Any help would be greatly appreciated, I'm very new to coding as you are already probably aware.
SpaceManiac
Joined: Fri Sep 22, 2017 4:06 am
Byond Username: SpaceManiac
Github Username: SpaceManiac

Re: How to remove jobs?

Post by SpaceManiac » #489037

You need to lose the "#define" before each of the "MAP_REMOVE_JOB" lines. After that it should be handled by the rest of the code.
MasonKin
Joined: Sun Mar 24, 2019 4:21 pm
Byond Username: Verhulst

Re: How to remove jobs?

Post by MasonKin » #497146

SpaceManiac wrote:You need to lose the "#define" before each of the "MAP_REMOVE_JOB" lines. After that it should be handled by the rest of the code.
I totally forgot about this, but it worked perfectly. Thank you so much this really helped.
Post Reply

Who is online

Users browsing this forum: No registered users