These triggers will fire when:
Someone trips someone
Someone trips you
You trip someone
Someone or you misses a trip
Someone or you bashes someone AND sends them sprawling
Someone or you misses a bash on someone
Someone misses a bash on you
Someone gets dirtkicked successfully
It will take who was the victim from these situations, victim being one who is prone or has dirt in their eyes, and display a message in black letters highlighted in a yellow background saying what happened.
I.E.
Edoras's bash knocks the wind out of the_me.
Edoras slams into the_me and sends him sprawling.
(in black text with a bright yellow background) the_me has been BASHED!
Copy the AddTriggerEx calls down below and go to Game -> Immediate and paste them, then click run, and then close. Nothing will show saying it worked or anything. If you want to check, go to Game -> Configuration -> Triggers and you should see some new triggers.
You'll need to enable Lua scripting to even click the Immediate... option on the Game menu. You'll also need to enable triggers, just in case you have them disabled for whatever reason.
Trip needs two, one for when someone else trips, one for when you trip. I was able to consolidate bash into one. I've accounted for missing trips and bashes as well, although when you miss a bash, it isn't pretty. The dirt kick one only fires when others are dirt kicked. I decided not to make one for when you get dirt kicked because it's so easy to tell. The wall of text becomes a wall of someone.
Black is the text color, yellow is the background color. Change them to what you want. You can also change the " has been blah" to whatever you want, but I suggest keeping the space after the opening quotation mark.
Sorry for the lolcat speak in some situations.
AddTriggerEx("trip" , "* trips * sending * to the ground.", "ColourNote(\"black\", \"yellow\", GetClipboard()..\" has been TRIPPED!\")", 1, -1, 2, "", "", 12, 100)
AddTriggerEx("otripy" , "* trips you and you go down!", "ColourNote(\"black\", \"yellow\", \"You have been TRIPPED!\")", 1, -1, 2, "", "", 12, 100)
AddTriggerEx("ytrip" , "*trip * and * goes down!", "ColourNote(\"black\", \"yellow\", GetClipboard()..\" has been TRIPPED!\")", 1, -1, 2, "", "", 12, 100)
AddTriggerEx("mtrip" , "* tr* to trip * but end* up tripping*!", "ColourNote(\"black\", \"yellow\", GetClipboard()..\" has FAILED A TRIP!\")", 1, -1, 1, "", "", 12, 100)
AddTriggerEx("bash" , "*slam* into * and send* sprawling!", "ColourNote(\"black\", \"yellow\", GetClipboard()..\" has been BASHED!\")", 1, -1, 3, "", "", 12, 100)
AddTriggerEx("mbash" , "* bash misses*falls flat on * face.", "ColourNote(\"black\", \"yellow\", GetClipboard()..\" has MISSED A BASH!\")", 1, -1, 1, "", "", 12, 100)
AddTriggerEx("ombash" , "*evade *'s bash and * falls flat on * face.", "ColourNote(\"black\", \"yellow\", GetClipboard()..\" has MISSED A BASH!\")", 1, -1, 2, "", "", 12, 100)
AddTriggerEx("dirt" , "* is blinded by the dirt*", "ColourNote(\"black\", \"yellow\", GetClipboard()..\" has been DIRT KICKED!\")", 1, -1, 1, "", "", 12, 100)
EDIT: Just making some updates. I completely changed the one for trip, because I just did it wrong this whole time. Thanks to Syn for posting practically everything.
Last edited by Rodwen on Tue Nov 30, 2010 5:23 am, edited 4 times in total.
|