Welcome to the Builder Academy

Question Override IG commands and don't override IG commmands

More
13 Aug 2015 00:23 - 13 Aug 2015 00:33 #5502 by Kay
Trying to make a trigger that will kill somebody who tries to forge an item in my area. Haven't had much success in my attempts.
Issue here:

1) The trigger activates when you type "Forge" with whatever else afterwards. Does not activate when you "forg" - I suspect it has something to do with the 5) Arguments. Dunno what though

2) "mkill" and "%mkill%" are not working by not killing me(the actor)


Code:
if (%cmd% == forge || forg ||) if (%arg% == Exodus || Exodu || Exod || Exo || Ex || Topaz || Topa || Top || To || Gemstone || Gemston || Gemsto || Gemst || Gems || Gem || 62930 || Ge) wait 1 s %send% %actor% You try to tamper with the Topaz but it explodes violently infront of you! %echoaround% %actor% %actor.name% tries to tamper with the Topaz but it explodes violently infront of %actor.himher%! mkill %actor% else return 1 end end



Is what I see when I type 'forge'
Last edit: 13 Aug 2015 00:33 by Kay.

Please Log in or Create an account to join the conversation.

More
13 Aug 2015 02:26 #5503 by krell
My suspicion is that mkill is a command for MOBs not objects.

HELP MKILL

Mkill will force the mob to attack the victim.

You might want to check out HELP %DAMAGE% instead. Check out HELP TRIGEDIT-COMMANDLIST as well.

Please Log in or Create an account to join the conversation.

More
13 Aug 2015 03:14 #5504 by Rumble
Change
5) Arguments: for

HELP TRIGEDIT-OBJ-COMMAND
for some good examples

if forge /= %cmd%
should check all abbreviatons

Rumble
The Builder Academy
tbamud.com 9091
rumble@tbamud.com

Please Log in or Create an account to join the conversation.

More
15 Aug 2015 22:14 #5505 by Parnassus
Just because I miss Fizban so much, I'm gonna toss this link in:
www.tbamud.com/forum/2-general/1674-trig...command-example#1933

One of the best reasons I've seen for this is a trigger (not on TBA) where the trigger was /= king. Whenever anyone in the room said "king" the trigger hit. This included making, thinking, walking. And, yes, those words all contain "king" but it turns the trigger into a bit of a nuisance.

I'll also toss in this great example of what I call the "Fizban Fix" in action:
www.tbamud.com/forum/3-building/107-fizb...easure-chest-trigger

Please Log in or Create an account to join the conversation.

Time to create page: 0.190 seconds