Barotrauma

Barotrauma

Not enough ratings
Passive XP (lua)
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
282.623 KB
18 Feb, 2024 @ 7:23pm
1 Change Note ( view )

Subscribe to download
Passive XP (lua)

In 1 collection by Ekho
WHAT i'VE ODOONE
92 items
Description
Stole the code from a comment that evil factory made on the not lua Passive Experience mod, here for friends and others who need it.

200 XP every 5 Minutes, pretty low but balanced around what I am going for.

Original Comment:

Evil Factory Feb 14 @ 2:46pm
you don't need partial overrides, you just need some simple lua code that gives exp every minute

example (btw, its possible to run this by using the "lua" command and then just pasting the whole code into the console):
if CLIENT and Game.IsMultiplayer then return end local amountExperience = 500 local passiveExperienceDelay = 20 local passiveExperienceTimer = 0 Hook.Add('think', 'examples.passiveExperience', function() if Timer.GetTime() < passiveExperienceTimer then return end for k, v in pairs(Character.CharacterList) do if not v.IsDead and v.Info ~= nil then v.Info.GiveExperience(amountExperience) end end passiveExperienceTimer = Timer.GetTime() + passiveExperienceDelay end)

Original Mod: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3152763063&searchtext=passive+XP
11 Comments
Lobotomy Gaming 1 Mar @ 8:47am 
Turns out its not just "if" commands, every single command in the code is returning as not found. And yes, I have lua turned on otherwise all of my other lua dependent mods wouldn't be working.
Lobotomy Gaming 1 Mar @ 8:43am 
I'm trying to modify it so that I can get more xp, but it keeps saying "command 'if' not found"
Moisesjns 10 Jan @ 4:48am 
Mod still works for me just fine. Thank you for this.
Mr. Bob 28 Aug, 2024 @ 11:27am 
mod broke due to latest hot fix
all Christ-like 23 Jul, 2024 @ 7:20pm 
@Arne HD - it works as long as every player has LUA installed
Arne HD 16 Jun, 2024 @ 12:27pm 
Hi, does this work in multiplayer?
Sinfulmoon 10 Apr, 2024 @ 3:50pm 
@ebalsya Yes
ebalsya 10 Apr, 2024 @ 12:02pm 
does it work after 1st april patch?
nomSlime 29 Mar, 2024 @ 8:24am 
Is this the New Conglomerate faction mod i was searching for?
The Doc K, Grunkle 19 Feb, 2024 @ 1:37am 
Thank you for linking the original mod btw