How would you add the weapons to vendors, to random gen in chests, or just place in a chest in the intro mission?
I've discovered something I find interesting: when spawning an item, if you misspell the item name as in the "itemName" in this case "PMlightsaber" then it gives you "a generic block". If you edit the starter broadsword (broken broadsword) and change its itemName then it gives you a generic block in the chest or just the Generic block if you skip intro. BUT i believe if you dont change the itemName then you can change its stats.
You would need to patch the appropriate treasure pool file. Anytime you do not spell an item/objects name right, you will get the PGI. Changing the starting swords name causes the PGI because the treasure pool is looking for the old swords name and there is no longer a sword of that name. And yes...you can change basically everything but the name of an item/object and the item/object will still spawn naturally where it's suppose to.
Well... Im a noob. I only got the game a week ago and have barely played without any mods and now am using FrackinUniverse (plus a custom mod of mine to make the protectorate armor actually have some protection) so anything that is semi-secret is a discovery for me.
Go into admin mode with "/admin", then do"/spawnitem (your itemname as specified the .activeitem file" So if you wanted a tungsten magnum, you'd type "/spawnitem tungstenmagnum".
For projectiles: damageType can be "NoDamage" i believe, and "IgnoresDef". The first one is used for, well, no damage, and the second one is used for Nuru's Spear, ignoring the defense. *Fun fact, you can kill Asra Nox with Nuru's Spear even during the shield*
Bro, I try to do this but it doesn't let me, I mean it lets me do the firedps and basedps thing, but the damageSourceKind and the statusEffects don't.
any idea how to fix this one? ``[14:24:07.797] [Error] Could not instantiate item '[tempestsniper, 1, {}]'. (LuaException) Error code 2, [string "/items/buildscripts/buildunrandweapon.lua"]:46: bad argument #1 to 'for iterator' (table expected, got nil) stack traceback: [C]: in ? [C]: in for iterator 'for iterator' [string "/items/buildscripts/buildunrandweapon.lua"]:46: in function <[string "/items/buildscripts/buildunrandweapon.lua"]:6>``
Yeah, I know, 6 years is pretty much, but... How can you change your weapon's position in hand? Like if you have a huge sword or something like that, and you're holding it by the blade instead of the handle