FOR MODDERS // OPEN SOURCE
WRITE A GIG FOR HER
She is meant to be shared. If you are making a quest mod and want a fixer to hand it out, use Hodan instead of inventing one, and your gig lands on her counter next to everyone else's. Your mod requires hers and copies nothing out of it. Two short pieces of code do the whole job.
1. Register at launch. TweakXL runs every class extending ScriptableTweak after every mod's tweak files have been applied. Ship this as a .reds file in r6\scripts\<your mod>\, with your own module name and gig id:
module YourGig
@if(ModuleExists("CyberpunkCodes.Fixer01"))
import CyberpunkCodes.Fixer01.*
@if(ModuleExists("CyberpunkCodes.Fixer01"))
public class YourGigRegisters extends ScriptableTweak {
protected cb func OnApply() -> Void {
Fixer01Gigs.Register(n"your_gig_id");
}
}
Keep both @if lines. If somebody installs your gig without hers, the file compiles to nothing. Without them the compile error would break every script mod they have.
2. Add one to the count when your gig closes. Add one to the quest fact cc_f01_fixer_count, once, at the ending. That is what moves her icon from 1/2 to 2/2. The game's own gigs do the same thing to their district's counter.
Everything else is optional, and none of it needs copying into your mod:
contacts/cc_f01_fixer her contact, for your texts and calls
Character.cc_f01_fixer (fixer01) her record and appearance, for a video call
$/mod/cc_f01_cast/#cc_f01_cast_com her community; entry "fixer" is her on the couch
cc_f01_intro_done 1 once she has introduced herself
cc_f01_intro_time world clock when her call ended, if you need a delay
Wait for cc_f01_intro_done before your gig starts, so nobody gets a job from a fixer they have never met. If your gig needs to wait a day, read the clock against cc_f01_intro_time rather than putting a delay in the quest graph: a quest delay counts from the first load with your mod installed, which is the wrong clock for a player who met her a week earlier.
Return Ticket is a complete working example and its full source is in the repo with hers. If you ship one, send a message and it gets linked here and on her Nexus page.
HER DESIGN NOTES, IN FULL[READ]
THE SOURCE ON GITHUB[FORK]
BUILD A WHOLE GIG FROM SCRATCH[INJECT]