Separate names with a comma.
Discussion in 'Plugins' started by Mixed, Apr 24, 2017.
What workshop item is required for the UU food plugin?
The UU addons. http://steamcommunity.com/sharedfiles/filedetails/?id=593929594&searchtext=UU
Oh, didn't know this was here. I was planning on coding these food items in myself. Lol, just saved me a lot of time. Cheers.
Edit: Are the items supposed to not be edible?
Are the consumables not consumable?
Only one of them, the CP Ration, and the code was not even correct. Mixed spotted the issue and I corrected it in my files.
I could add some code to allow players to actually consume them but it would be better if he does it.
So the CP ration is the only thing that's broken. Anything else or?
I'll fix the More Food UU tonight.
With different bonus stats for each item.
Life and Armor
Here a video, in French.
Description: It's a very simple plugin, it add dynamic text under character description. You can easily do other text with shared vars.
Is there an updated link that makes the foods consumable? Or should I try making them
I'll update this plugin soon.
I started remaking them myself for my community. When I am done you can have them.
I found a fix, you just had to replace those end lines of each items with
-- Called when a player uses the item.
function ITEM:OnUse(player, itemEntity)
player:SetHealth( math.Clamp( player:Health() + 10, 0, player:GetMaxHealth() ) );
player:BoostAttribute(self.name, ATB_ENDURANCE, 2, 120);
player:BoostAttribute(self.name, ATB_ACCURACY, 1, 120);
-- Called when a player drops the item.
function ITEM:OnDrop(player, position) end;
And obviously change the attribute numbers to what you want
Yeah I know, but the descriptions and names are all kinda weird or at least seem weird to me so I will remake it anyways.
It'll support the Primary Needs V2 Plugin.
The new version of More Food UU will provide Primary Needs V2 support.
Well ima make my own anyways.
Too far to turn back now.
Hey, would you know where to find the Unique ID's for the citizen rations, loyalist rations, cp rations,etc?
If there are no ITEM.uniqueID set, this is the Item name in lower case with _ for space.
ITEM.name = "Ration Package";
It's unique id will be: ration_package