Ok, I have been idle from the forum for a little awhile.... Well about 6 months. As of recently, I have been adding mobs/objects/triggers to the Luminari Mud. I was asked to add a bell with an achievement I'm still working on it, but I would like to share the trigger that helped me do this.
Code:
Name: 'Bell ringer achievement', VNum: [145200], RNum: [ 1631]
Trigger Intended Assignment: Rooms
Trigger Type: Command , Numeric Arg: 100, Arg list: *
Commands:
*
* Written by Jordan(Alexandra)
* help from the staff of LuminariMud
* Help with the trigger from Rumble on the tbamud forums
* For German GamerCon 9/19/14
*
*
if %cmd.car% == ring
if bell /= %arg%
if %actor.varexists(bell_ringer)%
%echo% %actor.name% struggles as %actor.heshe% pushes on the button.
%send% %actor% You push the button putting all your weight into it, slowly gives.
wait 1 sec
%zoneecho% The bell rings.
%send% %actor% You have the bell achievement.
else
%echo% %actor.name% struggles as %actor.heshe% pushes on the button.
%send% %actor% You push the button putting all your weight into it, slowly gives.
wait 1 sec
%zoneecho% The bell rings.
%send% %actor% Congratulations: %actor.name% have rang the bell, you receive 100 exp for ringing the bell.
nop %actor.exp(100)%
set bell_ringer 1
remote bell_ringer %actor.id%
end
else
%send% %actor% You have to choose something to ring.
end
else
return 0
end
This was based on the Rumble's
trigger
if you want to look at it. As I'm not finished with this trigger yet. I will edit when I have completed it and show the rest of the trigger. Also I would like to add that this trigger helped me figure out how to teleport people without actually connecting the rooms in the traditional sense of n,e,s,w.