I made this trigger prior to adding questpoints to the tbaMUD codebase. It is no longer needed but it is a good example of how to create a variable on players and manipulate it.
Code:
Name: 'Questpoint Setter - 44', VNum: [ 168], RNum: [ 168]
Trigger Intended Assignment: Objects
Trigger Type: Command , Numeric Arg: 1, Arg list: questpoints
Commands:
* Questpoint setter. For STAFF only! Make sure player has nohassle off.
* Make sure name matches a player, purge mobs or use 0.name if you have
* troubles.
* Usage: questpoints <player> <#>
if !%actor.is_pc% || %actor.level% < 32
%send% %actor% Only human staff can use this.
else
set victim %arg.car%
if %victim.is_pc%
set questpoints %arg.cdr%
remote questpoints %victim.id%
%send% %actor% %arg.car%'s questpoints set to %arg.cdr%.
else
%send% %actor% Don't use it on mobs. Use 0.<name>!
return 0
end
end
If this was helpful please
vote
or leave a
review
for TBA.