The %actor.skill(<skill>)% value provides the LEARNED amount of the specific skill in an integer value. Use this value for a comparison logic check.
Format: %actor.skill(<skill>)%
Example: %actor.skill(pick lock)%
Note: Use the exact text string of the skill within the sub call parentheses.
Example script:
Name: 'trap damage', VNum: [35007], RNum: [ 712] Trigger Intended Assignment: Rooms Trigger Type: Command , Numeric Arg: 3, Arg list: open Commands: * * 052022 Aegon 350 Ice Fortress *
* This is a room trigger to accomodate doors
*
if %actor.is_pc%
if %cmd% == unlock && (%arg% /= chest || %arg% /= door || %arg% /= foot || %arg% /= panel )
if %actor.skill(pick lock)% > 90 && %actor.int% > 17
%echoaround% %actor% %actor.name% expertly disarms the %arg%!
%send% %actor% You have disarmed the trapped %arg%!
detach 35007 %self.id%
return 0
halt
else
%send% %actor% You sprung a trap!
%echoaround% %actor% %actor.name% has sprung a lock trap!
eval trapdamage %%random.%actor.maxhitp%%
%damage% %actor% %trapdamage%
return 1
halt
end
else
return 0
halt
end
end
