Comments (2)
Hello since running the legendary script my maxdoc mk1 became legendary as well as all the lootable versions of that item. Could it be possible to reset the rarity and what commands could I run to do so?
If you look at the cheats/legend.lua
script, you can see that it upgrades every item that the player has equipped including consumables, cyberware, etc. You can modify this script to suit your preferences by simply removing any slots that you do not want upgraded from the slots
variable.
In order to undo any upgrades, replace the 'cheats/legend.lua' script with the script below (to revert to the original you can copy and past from this repo). It is set right now to revert the item equipped in the consumable slot back to uncommon. If you want it to edit something else, change Consumable
in the line with itemid = espd:GetItemInEquipSlot2('Consumable', 0)
to whatever you want to edit. To change the rarity, change 'Uncommon' in the line with Game['gameRPGManager::ForceItemQuality;GameObjectgameItemDataCName'](player, itemdata, CName.new('Uncommon'))
to your desired rarity.
After changing the script, restart your game so the changes can become active. I couldn't figure out how to get changes in the script to work without restarting the game.
local Legend = {
rootPath = "plugins.cyber_engine_tweaks.mods.braindance_protocol."
}
local Utilities = require(Legend.rootPath.."utility")
function Legend.Create()
local moduleName = "I Am Legend - Make all equipped gear Legendary with max stats."
Utilities.StartProtocol(moduleName)
player = Game.GetPlayer()
ssc = Game.GetScriptableSystemsContainer()
ts = Game.GetTransactionSystem()
es = ssc:Get(CName.new('EquipmentSystem'))
cs = ssc:Get(CName.new('CraftingSystem'))
espd = es:GetPlayerData(player)
espd['GetItemInEquipSlot2'] = espd['GetItemInEquipSlot;gamedataEquipmentAreaInt32']
cs['SetItemLevel2'] = cs['SetItemLevel;gameItemData']
itemid = espd:GetItemInEquipSlot2('Consumable', 0)
if itemid.tdbid.hash ~= 0 then
itemdata = ts:GetItemData(player, itemid)
cs:SetItemLevel2(itemdata)
Game['gameRPGManager::ForceItemQuality;GameObjectgameItemDataCName'](player, itemdata, CName.new('Uncommon'))
end
Utilities.FinishProtocol(moduleName)
end
return Legend
Edit: for a better version of this, check out #34
from braindanceprotocol.
#34 merged
from braindanceprotocol.
Related Issues (20)
- Some protocols no long work
- Chinese in a Lua script can not be displayed correctly in the front end HOT 1
- Not all achievements unlocked using cheat HOT 1
- Male V and river, female V and Paran, After entering the code, no intimacy options will be generated HOT 7
- [CI] Automate publishing to Cybermods & Nexus HOT 1
- [MEDIA] New Images HOT 1
- [CI] Automate README update with new protocols HOT 1
- [CI] Update scripts and config to support NMM installs HOT 3
- Upgrade to CET 1.8.4
- Vehicle Knockdown missing from GUI HOT 2
- BD.Cheats.Legend.Create() does not add missing mod slots to existing legendaries since patch 1.1 HOT 6
- Need help with translation HOT 9
- Missing mouse cursor HOT 2
- Deprecate Utilities.StartProtocol()
- Fix God Mode & Add Infinite Ammo & Remove quest flags from items HOT 5
- Can't seem to open the UI after update to latest HOT 3
- init.lua error/crash HOT 2
- Menu open with CyberEngineTweaks console key HOT 1
- Release 1.7.3 - Can no longer collapse Braindance Protocol interface when desired HOT 3
- Todo list for future development
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from braindanceprotocol.