#SimpleCustomRoles (YML)

1 messages · Page 1 of 1 (latest)

regal cape
#

YML Based custom role creation.

Set damage to any source. (Tesla doesn't damage for example)
Set Stats like health, shield, ahp.
Spawns in specific place, room, or even coordinate.
Can set as revive only for SCP's.
SCP Specific actions to control.
Spawn role in a Wave.
Soon more and fixes.

Examples can be seen in here:
https://github.com/KadavasKingdom/SimpleCustomRoles/tree/main/SimpleCustomRoles.Example

Current Release:
https://github.com/KadavasKingdom/SimpleCustomRoles/releases

("simple" yeah, more like "confusing" am I right?)

low compass
regal cape
#

have fun ClassDTrollHD I yoinked the YML parsing code too

low compass
#

How to see where you do where

low compass
low compass
#

Right?

regal cape
#

If you didnt add something to a yml it will create the default value you set in the parameters. (and classes)

regal cape
#

So if you for example doesnt want to do any health action or add any items you dont need to add that in yml

low compass
regal cape
#

when creating a class you can set the parameters what should be the default value, when yml parsing it creaeting a class then filling the parametrs with stuff you inputed

for example you have a class like this:

public class FunnyYML
{
  public string name { get; set; } = "no_name";
  public FunnyYMLOther other { get; set; } = new();
  public FunnyYMLOther other2 { get; set; } = new();
}
public class FunnyYMLOther
{
public int SelectThis { get; set; } = 69;
public ItemTypeId ItemToUse { get; set; } = ItemTypeId.SCP500;
}

and a yml:

name: test
other:
 selectThis: 2

it will result that name, other:SelectThis is set but other2 and other:ItemToUse become default as you set in the last place

#

so if you would have been parse back to yml would look like:

name: test
other:
  selectThis: 2
  itemToUse: SCP500
other2:
  selectThis: 69
  itemToUse: SCP500
regal cape
#

Update on this:
Applied many fixed and stuff.
Current issue being:
Excess item drops

Added custom escaping, can control in config yaml.
Will check if customrole if so then checks if the role has a custom escaping, otherwise doesn't do anything, if not custom role it will try to use the existing escaping config.

regal cape
#

UPDATE!
Since wanted to do much more I started patching the game, also breaking some exiled stuff but I honestly do not care. (There will be no support for EXILED)

New stuff
In waves you can set only appear in once then never again.
In giving effects your can set the "canEnable" to false to disable getting this effect.
Added "keeping the inventory" this means as before the items stay in your stuff, uhh bugs can happen with this. (Getting more medkits, etc, it doesnt check any overflow!)

For Only 049
Can set/change these values:
Sesne Cooldown
Sense Target lost cooldown
Sense Attempt fail cooldown
Sense Effect duration.
Max Resurrection.
Human corpse revive duration
Target killed corpse revive duration
Attack cooldown time
attack distance
attack effect duration (CardiacArrest)

For Only 096
Can set/change these values:
Attack Cooldown (Left and right swing)
Charge duration
Charge Cooldown
Default Rage Activation time
Normal Hume shield generation
Max rage time
minimum enrage time
Time per extra target
calming / enraging shield multiplier

For Only 106
Can set/change these values:
Corroding effect time
Vigor bonus on kill
Sinkhole cooldown bonus on kill
Vigor cost per minute in stalk
min vigor usage for atlas
Stalk vigor regeneration amount
stalk cost stationary
stalk cost moving
minimum vigor to submerge
movement range to gain vigor
movement timer to check to gain again.

For Only 173
Can set/change these values:
Blink Cooldown
Breakneck recharge time
breaknake stare limit
tantrum usage cooldown
Blink distance
Blink distance multiplier when on breakneck

For Only 939
Can set/change these values:
Can create a cloud
Cloud fail cooldown
cloud place cooldown

regal cape
#

[0.5.3] (YML) SimpleCustomRoles

#

Removed useless Movement stuff added some more stuff to Groups

agile surge
regal cape
#

I dont think 3114 works right now

#

if you enable debug log it should say what doesnt work.
you can also set it yourself (scr_set CLASSDNAME)

regal cape
#

fun fact, you dont need to specify all things.
since its a regular type you dont need to add waves and other things you didnt set.
also you should use

roleToSpawn: ClassD
replaceRole: ClassD
#

it will replace ClassD with itself

#

also you should rename the template to something like
Drug_Boss.yml
every file that has .d or .disable it will not load

agile surge
#

okey thank you

agile surge
regal cape
#
rolename: Drogenboss
display:
  rARoleName: Drogenboss
  areaRoleName: Drogenboss
  colorHex: 'orange'
spawn:
  spawnChance: 4000
  spawnAmount: 3
roleToSpawn: ClassD
replaceRole: ClassD
hint:
  broadcast: "<size=40><color=orange><b>Du bist der Drogenboss!</b></color></size>\n<size=30>Zeig allen, wer hier das Sagen hat.</size>"
  broadcastDuration: 10
inventory:
  items:
    - Adrenaline
    - Medkit
deniable:
  items:
    Medkit:
      canUse: false
      canDrop: true
agile surge
#

Thanks

viscid field
#

Is there a way for a human role to not do any damage to SCPs and vice versa? I.e Serpent's hand, SCP035

regal cape
#

Currently no, but now added as a plan for it

viscid field
#

Alr thank you

#

Does Trigger096 and Observe173 currently work? Im testing them but it still triggers/observes but i set them to false

regal cape
#

Hmm, should work, i gonna check the yml

#

Oh my bad

#

I check the 096 Player not the target player

#

173 should work

muted forum
#

how can i force myself into the custom role ingame because forceclass just sets me to the “none” role

#

this might be a little dumb

regal cape
#

scr_set NameOfTheRole

#

for example
scr_set ClassD_Spy

#

It has to be a valid role & also might check the yml it is actually valid

muted forum
#

oh okie

#

ty

regal cape
#

If you encounter something like yml doesnt load property, enable debug, it will tell what yml will load next so you can see what actual role is wrong

muted forum
regal cape
#

Yes

muted forum
#

what’s the command for it

regal cape
#

scr_seto RoleName PlayerId

muted forum
#

alr

#

thanks a lot

regal cape
#

Dont remember if works with a group of player or just one, so use one

muted forum
#

okay

regal cape
#

Appearance is broken so I removed (commented out the thing( hopefully when fix comes it will work too.
Working on to make able to use
Any damage.
Also added atracker role so you can hurt twice as much your friend (?)

lofty spoke
#

ER

regal cape
#

?

low compass
lofty spoke
#

oops I didn't realise I sent that 💀

jagged oar
#

Hey, I'm unable to add a scp049-2 custom role with more health:

#

rolename: Armoured_049-2
roleType: ScpSpecific
display:
roleCanDisplay: true
rARoleName: Armoured 049-2
areaRoleName: Armoured 049-2
colorHex: '#ff0000'
spawn:
spawnChance: 0
spawnAmount: 2
roleToSpawn: Scp0492
replaceRole: Scp0492
stats:
health:
value: 600
math: None
maxHealth:
value: 600
math: None
effects:

  • effect_type: Slowness
    duration: -1
    intensity: 5
    removable: false
    hint:
    broadcast: "You are <color=#ff0f0f><b>Armoured SCP-049-2</b></color>! It seems that 049 has strengthened you! Go forth!"
    broadcastDuration: 15
    hintDuration: 16
    fpc:
    scale:
    x: 1.05
    y: 1
    z: 1.05
#

I also tried your loot goblin subclass but no luck there either

#

I believe it may be due to the roleType as a custom D-class I made seemed to work?

regal cape
#

Math: Set

#

and ScpSpecific only spawns if you set Scp0492.CanSpawnIfNoCustom094 true

#

in your own custom role

regal cape
#

removed those so not be faulty

jagged oar
jagged oar
regal cape
#

ye

jagged oar
#

No luck

regal cape
#

[0.5.5] (YML) SimpleCustomRoles

#

0Harmony.dll
LabApiExtensions.dll
is a dependency put them there

jagged oar
#

Ok Ill try again

#

Still no luck

regal cape
#

??

#

check console

#

can you send the yml file here

jagged oar
regal cape
#

how does the 0492 spawn?

#

if you spawn by RA doesnt work

#

roles that does not spawn first in the game does not get replaced
IF you want to spawn as a 0492 role, set Scp.Scp0492.CanSpawnIfNoCustom094 true and set to be SCP Specific, otherwise 0492 role doesnt do anything

jagged oar
regal cape
#
roleType: ScpSpecific
scp:
  scp0492:
    chanceForSpawn: 10000
    canSpawnIfNoCustom049: true
jagged oar
#

Idk what I'm doing wrong its still not working

regal cape
#

how does the 0492 spawn?

#

like what you do to see that 0492 role

jagged oar
#

I spawn in a dummy, kill it as 049, resurrect it

regal cape
#

ah

#

updated the yaml

jagged oar
#

still no luck

#

so sorry, this must be infuriating

regal cape
#

can you send again?

jagged oar
regal cape
#

there is no error in console?

jagged oar
#

none

#

even saying other non-scp custom roles have spawned

#

could it be with also having
spawn:
spawnChance: 10000
spawnAmount: 2

#

while also having

#

chanceForSpawn: 10000

regal cape
#

nah one is to be in a list other is to get from that list

jagged oar
#

Ah right, you know what it could be then?

regal cape
#

no idea checking it

jagged oar
#

Thx 🙏

regal cape
#

in the config did you disabled
use_player_percent: false

#

player area seems to be fucked idk why

jagged oar
#

That seems to have done the trick

#

tysm!!

jagged oar
#

One last question - For spawn chance, do I use the one under "spawn:" or "scp049-2"

regal cape
#

One spawns control how many should spawn in that round
Other chance is 049 how much chance can be that role once a random selected

lofty spoke
#

Hello, just wanted to ask, does this plugin support subdirectories? Like in the "Roles" folder with all the yml files, can I add a subdirectory like "D-Class Roles" and put my yml files in there and have separate folders?

#

If not, I feel like that would be a good idea as it makes it easier to stay organised with roles

regal cape
lofty spoke
#

fire

#

thanks!

lofty spoke
#

Hey, how would I go about adding custom keycards to my custom roles?

regal cape
#

Create a Plugin adding such keys, you can subscribe to the OnSpawn or something like that event

lofty spoke
#

Minor issue with the plugin, roles that have spaces in them cannot be spawned in using the setscr command. For instance, I have a yml file consisting of rolename: "Nine-Tailed Fox Ninja" and I cannot spawn it in with /setscr "Nine-Tailed Fox Ninja" I get the error that Role "Nine-Tailed does not exist Would it be possible to make the setscr command consider whatever has spaces in it as long as it is surrounded by speech marks?

regal cape
#

the rolename there is not a display name, use display class/field
IDK how wouly you even do that with the command so

lofty spoke
#

I guess it's time for a rework on my own

regal cape
#

there is literally a field for it

#

called display

#
display:
# Can the role display
  roleCanDisplay: true
  # Role area name
  areaRoleName: 'Armoured SCP-0492'
  # Role RA name
  rARoleName: 'Armoured SCP-0492'
  # Role Spectator name
  spectatorRoleName: 'Armoured SCP-0492'
  # Role color
  colorHex: '#ffffff'
lofty spoke
#

Yeah it's just this is what my own plugin used

#

very easy rework tho

jagged oar
#

Am I missing something? I tried to refer to the template but no matter what I change, the plugin just wont work

regal cape
#
damage:
  damageDealt:
    ?
      damageType: Universal
      damageSubType: UniversalSubType
      subType: Tesla
    : value: 0
      math: Set
#

Ye should be working wgat u sent

#

Check console log what is throwing as error

jagged oar
#

Cheers, now running around 1 tapping scps with a com 18

regal cape
#

SimpleCustomRoles (YML)

jagged oar
#

Hey, I was trying to enable bypass for SCP049-2:

#

Am I using it wrong or is it just not available for scps?

regal cape
#

it should work

#

check it on RA I guess

#

it is set with
Owner.IsBypassEnabled = Role.Extra.Bypass;

vocal robin
#

here is a fun idea what if you added a thing called command on spawn so you can do stuff with that.

#

also at the moment can we do things with sss?

regal cape
regal cape
vocal robin
regal cape
#

Oh, if you want to add ability and anything else you have to code it and do it yourself.
I don't believe there is any good scripting language that does much many things for you

#

I used SE but i didn't seen viable long run

regal cape
jagged oar
#

@regal cape Is it possible to change the spectators list role names

#

like:

regal cape
#

Like? This is a pic for basegame and English, if you want to edit do it in translation

lofty spoke
#

@regal cape I think the latest release of this plugin is borked? I install the V0.5.10 release and it shows up in my console as V0.5.9 and spits errors, refuses to load. I do have the LabAPIExtensions dependency installed. I can't work on my special ability roles bonkers

regal cape
regal cape
#

Added hume shield related changing
Added option to able to change when gaining ticket

proud venture
#

esla

#

gates

regal cape
#

what

hollow crater
#

you can set permissions to roles

regal cape
#

Wdym

jagged oar
#

I assume theres not a way to assign different SCRs to different factions i.e a tutorial SCR being a SCP?

regal cape
#

Ye you cant do that rn, would need many patch and maintenance around that

jagged oar
#

Yeah thought so - main reason to is for win conditions

jagged oar
#

Hey, I've got an issue now I'm using the latest release where I'm getting no error messages, yet the plugin is not working (no commands working or anything)

#

Ive uploaded the labapiextension dependency too and have harmony also

regal cape
#

Wdym command doesnt work?

#

did you add scr.* OR scr. Specific permissions to the permissions.yml file?

jagged oar
#

Ive set to scr*

#

still no luck

jagged oar
#

just no commands

regal cape
#
owner:
  permissions:
  - scr.*
jagged oar
#

Was anything changed to do with perms between updates

#

Ill be honest - I dont remember what ver i had before

twin pulsar
#

where do i need to put done ymls

#

just got a new server and im new too coding so i would appreciate help very much

#

i just put it in simple custom roles is that right

#

like right there

regal cape
#

LabApi/Configs/<port>/SimpleCustomRole/Roles/