Something strange is happening with this trigger. It works, but a series of errors pop up for case 1. It happens right after the first send actor, "You chip away pieces of rock little by little."
Thus far they've been all over the place, and none of them are related to the object or trigger as far as I can tell. None of the objects involved have any triggers on them beyond the raw cut gem, and that one only has this trigger.
Error examples, bearing in mind nothing has been changed about the trigger from error to error:
Code:
[ Obj (a polished gemstone with flawed facets and a clouded colour, VNum 32604):: Unknown object cmd: 'actore irreparably, ruining it.' ]
[ Obj (a polished gemstone with flawed facets and a clouded colour, VNum 32604):: Unknown object cmd: 'actorrunk starting to sink faster.' ]
[ Obj (a polished gemstone with flawed facets and a clouded colour, VNum 32604):: Unknown object cmd: 'actor' ]
[ Obj (a polished gemstone with flawed facets and a clouded colour, VNum 32604):: Unknown object cmd: 'actor on the floor.' ]
[ Obj (a polished gemstone with flawed facets and a clouded colour, VNum 32604):: Unknown object cmd: 'actor eyes turning to face you.' ]
The trigger:
Code:
* Chime of Aeternum, using tstat 48 template by Rumble of tbaMUD
* Polish a polluted gemstone
if %actor.inventory(32609)% && %actor.inventory(32600)%
* Transform 32600, but leave 32609 since it's the tool.
* lets make it a 50/50 chance of working.
switch %random.2%
case 1
%transform% 32604
%send% %actor% You chip away pieces of rock little by little.
%echoaround% %actor% %actor.name% chips away pieces of rock from %actor.hisher% rough gemstone.
wait 3 s
%send %actor% You buff the gemstone's surface until it gleams.
%echoaround% %actor% %actor.name% buffs the gemstone until it gleams.
break
default
%transform% 32610
%send% %actor% A large piece breaks off while chipping the rock away.
%echoaround% %actor% %actor.name% breaks a large piece of %actor.hisher% rock away.
wait 3 s
%send% %actor% The gemstone cracks, ruining it.
%echoaround% %actor% %actor.name% cracks %actor.hisher% gemstone irreparably, ruining it.
break
done
detach 1386 %self.id%
else
%send% %actor% You need a buffing cloth and raw gemstone.
end
Any ideas?