Fractal Softworks Forum

Please login or register.

Login with username, password and session length

Author Topic: Custom skill colours?  (Read 168 times)

Ruddygreat

  • Ensign
  • *
  • Posts: 23
  • Seals :^)
    • View Profile
Custom skill colours?
« on: October 17, 2021, 09:16:26 AM »

I've been working on a mod that introduces custom skills for officers hired at faction markets and i've run into a minor but annoying thing - can a way to change the colour border colour + elite border of a skill without requiring a new aptitude be added?

As for a solution, I'd say a "colorOverride" and "eliteBorderOverride" (alternatively and preferably, can the border colouring be done entirely in code, going off the coloroverride?) which will override whatever the aptitude has set for those fields should be added to the .skill file, like so
Spoiler
{
   "id":"rgto_hege_training",
   "governingAptitude":"combat",
   "colorOverride":"245,150,30,255"
   "eliteBorderOverride":"RGTO_HegeTrainingBorder.png" (then have it automatically look for the 48px & 32px versions from there)
   "compressHullmods":false,
   "elite":false,
   "scope":"PILOTED_SHIP",
   "effectGroups":[
      {
         "requiredSkillLevel":1,
         "effectBasedOnLevel":false,
         "effects":[
         {"type":"SHIP", "script":"data.scripts.skills.RGTO_HegeTrainingSkill$Level1"},
         ]
      }
   ],
}
[close]

and a second thought I had while writing up this post (or alternate solution to this problem, but I don't like messing with csvs) - is it possible to add an aptitude that the player can't see in the character menu (or can't take skills from), but officers can still progress through and whatnot?
as for a solution to this, I'd add 2 columns to aptitude_data.csv which are true / empty, "visibletoplayer" (or just "hidden") and "availabletoplayer", hopefully they're self-explanatory enough.

hopefully this is all coherent enough to undersand & reasonable enough to implement!
and sorry if it's in the wrong place, didn't feel right for the minor questions or api request threads
« Last Edit: October 17, 2021, 11:14:57 AM by Ruddygreat »
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 19397
    • View Profile
Re: Custom skill colours?
« Reply #1 on: October 17, 2021, 04:40:26 PM »

Hmm - let me make it so that adding an "npc_only" tag to the aptitude's skill effect makes it so that it doesn't show up in the character screen. That's the easiest way to go for me and sounds like it should cover your use case.
Logged

Ruddygreat

  • Ensign
  • *
  • Posts: 23
  • Seals :^)
    • View Profile
Re: Custom skill colours?
« Reply #2 on: October 18, 2021, 03:49:32 AM »

Yeah that'll work, thanks!
Logged