Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local charstats = {
- ["Bleed"] = function( val ) wsys.bleeding = tonumber( val ) end,
- ["Rage"] = function( val ) wsys.stats.rage = tonumber( val ) end,
- }
- for _,str in ipairs( gmcp.Char.Vitals.charstats ) do
- local sep = str:find( ": " )
- if sep then
- local key = str:sub( 1, sep - 1 )
- local val = str:sub( sep + 2 )
- if charstats[key] then charstats[key]( val ) end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement