Jump to content

Option to change NPC profile?

Pending 1.1.7

Knarley
Knarley

Posted

I'm trying to set up different tiers of NPCs and reward XP (using Skill Tree), RP (using Server Rewards + Rust Rewards), and loot based on their difficulty. I'm having difficulty figuring out how to change the NPCs base profile.

For example, if I spawn an NPC with a heavy scientist suit and increased HP it still gives the same amount of XP/RP/loot as a junk pile scientist. Is there a way to select which default NPC the bot has when it is spawned in?

I hope this makes sense, thanks

Knarley

Posted

Essentially I'd like to assign the bot an NPC type and then assign that NPC type values and loot.

I found an NPC list that Custom Loot uses:

 

NPC types.

  • Oilrig
  • Excavator
  • CompoundScientist
  • BanditTown
  • Junkpile Scientist
  • Scarecrow
  • Military Tunnel Scientist
  • Cargoship
  • Heavy Scientist
  • Mounted Scientist
  • TunnelDweller
  • UnderwaterDweller
  • Trainyard
  • Airfield
  • Desert Scientist (roamtethered)
  • BotReSpawn*
  • Murderer
  • Administrator
Steenamaroo

Posted

Hey,
I'll take a look at that and get back to you. 👍

  • Administrator
Steenamaroo

Posted (edited)

@Knarley- RustRewards covers all those npc types too.
You've got options for each in the UI under Kill>NPCs. and also under Harvest.

It does need an update to bring it properly in line with NPCKits/Customloot...I think there are a few newer types missing like Gingerbread and maybe Dungeon Scarecrows,
but the majority are there right now. 👍

Edited by Steenamaroo
  • Administrator
Steenamaroo

Posted

That list you posted is for covering all the vanilla NPC types.
BotReSpawn is a separate thing.

You can either adjust the 'BotReSpawn' value in RustRewards UI > Kills > NPCs, which will apply to all BotReSpawn npcs regardless of profile
or, instead, you can set that to zero and use the RustRewardsValue in BotReSpawn, which is a per-profile option.

The latter option allows you to set different values for different profiles from BotReSpawn.

Knarley

Posted

Thank you very much for the help! I think I understand.

So I'll set up BotReSpawn as usual using profiles and then use RustRewards to apply whatever rewards to those profiles? 

Knarley

Posted

So I've tried this now and it's working with RP using RustRewards but I cannot get it to work with Skill Tree. From my understanding, it looks like all bots are spawned in as ScientistNormal which is what is applying the experience amount. So any bot I spawn, regardless of what kit, it giving the same amount of experience because they're all ScientistNormal.

Is there any way to choose what the internal ID of the bot is? I'd like to set up something like this:

Junkpile Scientist = 100 XP
Military Tunnel Scientist = 150 XP
Heavy Scientist = 200 XP

Right now, there's no way for me to change how much XP each bot is giving since I can't choose what type of NPC the bot is.

I hope this all makes sense!

 

  • Administrator
Steenamaroo

Posted (edited)

It makes sense but I'm afraid SkillTree isn't my plugin so I don't really know anything about how it works.

Just for general info, though, plugins wouldn't usually identify npcs by their kits.
It would usually be by prefab name or in some cases by identifying their spawngroup, or something like that.

BotReSpawn does have an OnBotReSpawnNPCSpawned and NPCProfile API that other plugins can use to get the npc's profile name.

Edited by Steenamaroo
1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.2k

Files Sold

Total number of files sold.

2m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.