Code: Select all
object:<ATCP Test> function:<Alias1>
<[string "status = {}..."]:5: bad argument #1 to 'match' (string expected, got nil)>
This is the current incarnation of the script I tested:
Code: Select all
status = {}
function CharVitals(event, arg)
local r = rex.new( "NL:(\\d+)/100 H:(\\d+)/(\\d+) M:(\\d+)/(\\d+) E:(\\d+)/(\\d+) P:(\\d+)/(\\d+) N:(\\d+)/(\\d+) W:(\\d+)/(\\d+)" )
if r:match(arg) then
status.next_level,
status.current_health, status.max_health,
status.current_mana, status.max_mana,
status.current_ego, status.max_ego,
status.current_power, status.max_power,
status.current_endurance, status.max_endurance,
status.current_willpower, status.max_willpower = r:match( arg )
end
end
Code: Select all
table {
'RoomEnvironment': 'road'
'CharName': 'Ilithyia Ecclesiar Ilithyia Argentas'
'RoomExits': 'e,s,u,in'
'AuthRequest': 'CH dfpnshzbzghjptptgvmh'
'CharVitals': 'NL:23/100 H:3156/3156 M:4860/4860 E:4632/4176 P:10/10 N:13320/13320 W:22440/22440 '
'RoomBrief': 'Before the Syrinx Plaza Hotel (road)'
'RoomFullExits': 'e(17087),s(1559),u(1557),in(10978)'
'RoomCoordinates': '11,0,-7,0'
'RoomNum': '1558'
}