Building & Scripting > Scripting Board
Trigger of the .... something
Kvetch:
I was just pointing out that there may be a way around the script.
Kvetch:
--- Code: ---Name: 'Crystal Ball to Locate a Mob.', VNum: [ 205], RNum: [ 205]
Trigger Intended Assignment: Objects
Trigger Type: Command , Numeric Arg: 7, Arg list: locate
Commands:
* By Rumble of The Builder Academy tbamud.com 9091
set find %arg%
if !%find.is_pc%
eval rname %find.room%
%send% %actor% As you gaze into the ball, it starts to glow. You see an image of %find.name% in %rname.name%.
else
%send% %actor% All that you see is a blurry haze.
end
%echoaround% %actor% %actor.name% peers into %actor.hisher% gently glowing crystal ball.
--- End code ---
Kvetch:
--- Code: ---Name: 'Open a Chest once per zone reset', VNum: [ 209], RNum: [ 209]
Trigger Intended Assignment: Objects
Trigger Type: Command , Numeric Arg: 100, Arg list: open
Commands:
* By Mordecai
if chest /= %arg%
* Verify that the player typed 'open chest'
* Has the player already opened this chest?
context %actor.id%
if %already_opened_chest%
%send% %actor% The chest has already been opened, and emptied.
else
* The first time! OK, open the chest.
%send% %actor% You get a jar of naphthalene from an iron bound chest.
%load% obj 306 %actor% inv
set already_opened_chest 1
global already_opened_chest
return 0
end
else
* Not 'open chest' - pass control back to the command parser
return 0
end
--- End code ---
Kvetch:
A voodoo doll that could actually hurt a PC? Sounds dangerous.
--- Code: ---Name: 'Voodoo Doll', VNum: [ 1381], RNum: [ 453]
Trigger Intended Assignment: Objects
Trigger Type: Command , Numeric Arg: 2, Arg list: pin
Commands:
* By Heiach
if !%arg%
%send% %actor% Stab a pin into a voodoo doll of who?
else
eval dmg %arg.hitp% * 100 / %arg.maxhitp%
if (%dmg% > 25)
eval pain %random.15%
switch %pain%
case 1
set hurt back
break
case 2
set hurt head
break
case 3
set hurt stomach
break
case 4
set hurt left eye
break
case 5
set hurt chest
break
case 6
set hurt right eye
break
case 7
set hurt left arm
break
case 8
set hurt right arm
break
case 9
set hurt left leg
break
case 10
set hurt right leg
break
case 11
set hurt groin
break
case 12
set hurt left foot
break
case 13
set hurt right foot
break
case 14
set hurt throat
break
case 15
set hurt heart
break
default
break
done
%send% %actor% You slowly push a pin into the voodoo doll of %arg.name%'s %hurt%.
%echoaround% %actor% %actor.name% slowly pushes a pin into a voodoo doll.
%send% %arg% You suddenly feel a sharp stabbing pain in your %hurt%!
%echoaround% %arg% %arg.name% suddenly screams with pain, clenching %arg.hisher% %hurt%!
%damage% %arg% 10
wait 20 s
elseif %dmg% < 26
set msg %random.5%
switch %msg%
case 1
%send% %actor% %arg.name% has suffered enough!
break
case 2
%send% %actor% %arg.name% can't take it anymore!
break
case 3
%send% %actor% %arg.name% is too weak!
break
case 4
%send% %actor% %arg.name% is still writhing in pain!
break
case 5
%send% %actor% %arg.name% won't survive another pin!
break
default
break
done
end
end
--- End code ---
Molly:
Heh, I like that.
Can I have one.
There is someone I'd like to hurt a bit. :P
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version