Jump to content

Option to change NPC profile?

Pending 1.1.7

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

Share this comment


Link to comment

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

Share this comment


Link to comment

@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

Share this comment


Link to comment

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.

Share this comment


Link to comment

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? 

Share this comment


Link to comment

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!

 

Share this comment


Link to comment

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

Share this comment


Link to comment
1.1m

Downloads

Total number of downloads.

5.6k

Customers

Total customers served.

81.3k

Files Sold

Total number of files sold.

1.6m

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.