Jump to content

How do you create a mod that adds a keyword to all current and future guns?


Recommended Posts

I think TeaLz made something like this for his Legendary Effects mod, but I'm not sure how to do it myself.

 

Am I going to have to learn a scripting language to get the job done?

 

Any advice is appreciated. I'll also try to contact TeaLz to see what he says.

Link to comment
Share on other sites

I don't think you read what TealZ's mod does or how it works

it attaches things via scripts to items that contain a specific keyword

however , you can't add a keyword via a script

if you look here https://www.nexusmods.com/fallout4/articles/37 , this is the article by TealZ on how to make armors compatible with his mod Legendary Modifications

so he doesn't have a script that adds the keywords , you need to manually add them (although it's not difficult , it does take time if you have a long list of items , and you have to do it manually to each of them)

 

I may not know about a way this could be done , but I've never heard of anything like this

even the patchers of mods like Skyrim Redone worked with scripts that looked for keywords , but you had to manually add the keywords to the items before the patchers would be able to handle them

Link to comment
Share on other sites

 

so he doesn't have a script that adds the keywords , you need to manually add them (although it's not difficult , it does take time if you have a long list of items , and you have to do it manually to each of them)

 

If that's true then how does the Anti-Material Rifle from the CC have a legendary effect in the workbench?

 

I hear what you're saying, but weapons like the Anti-Material Rifle from the Creation Club have the legendary effect mod at the workbench and they have the ap_legendary on them as well. I doubt anyone at the creation club is adding attach point keywords for Nexus mods. And before you ask I already had the legendary modification mod installed.

 

So I'm curious how that's possible.

Link to comment
Share on other sites

apparently I'm also wrong about this , as Reneer seems to know a way to do this (I'm also waiting to see how it's done)

 

I don't know about CC content , I think it depends on who made it (if it's Bethesda I would agree with you , if it's a mod author I wouldn't be surprised if they set it up like that)

I'm also not sure if you can create a script that will add the keywords to all weapons (I guess you could do that for a specific item , but I doubt you could do that to all items that may or may not exist)

Link to comment
Share on other sites

Here is a brief outline of how I added keywords to weapons via script: Basically what you need to do is use a Quest script and a RegisterForRemoteEvent call on the player that checks when an item is added to their inventory. You then drop the weapon, grab the objectreference, add the keyword, and add the weapon back to the player's inventory.

Edited by Reneer
Link to comment
Share on other sites

  • Recently Browsing   0 members

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