Jump to content

Leveled list injections scripting and one other.


Recommended Posts

I'm still new to scripting but I've heard and read the best way to avoid conflicts is to inject your items via scripts. For example, my mod that provides ammo crafting adds components to some enemy loot lists. But this will likely cause conflict with other mods which do the same. I use my own lists already which are then added as an overwrite to those enemy lists so it should be a little easier than trying to dump a whole bunch of components in. How would I go about doing this?

 

One other question I had was about applying a debuff to the player when an item is used in exchange for another. Basically, I want to create a mod that lets the player to craft the item, and upon use consumes the item and applies a temporary debuff. In return it gives them a new item but while the debuff is active they cannot repeat the process. This would need to be done via scripting that sends a "on use" command when the item is consumed I think, and the script would then fire a command that would use a consumable item to apply the debuff? Something similar to how drinking water from a source works I think... I've seen there is an ingestible item I'm guessing that is used by the game to apply either radiated or clean water consumption when drinking from these spots.

 

Back on subject, I'd have to use a command to then add the preferred object to the user's inventory. Somewhere (Probably at the start so it terminates the script if the effect has been applied.) I also need to add in a command to check the player for the debuff and if it is active stop the player from using the item. Am I getting this right?

 

Any help on either of these would be greatly appreciated, thank you.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...