lol... real life for moronz is a realy hard job i don't think anyone else can make same thing its reeeeaaaaalllyy annoying ^^
So, for they're spell they made:
__1st: they had to convert all doodats into units so you can select and cast into it.
__2nd: they made a targetable ability based on targetabke spell like... maybe heal..., then removed
spells buff made range into about 200 colddown casting time damage into zero gave abbility special icon.
__3ed: They made a simple but loooooooooooong trigger
_Event: unit begins casting an abbility
_Condition: Ability being casted equals to "roleplay actions"
_"And then they made an action For EVERY ROLE PLAYABLE ITEM in game !!! there is THOUSANDS OF Them.
For example the trigger which works when you use toilet to get drugs out of it for the mafia quest."
_Actions: If then else "multiple actions"
______Conditions: Targeted unit equals to "Toilet"
______Do: Display "You found a drugpack hiden inside toilet"
__________Create "Joe's Drugpack" on position of "Casting unit"
______Else: do nothing
Then they addedd more IF THEN ELSE "multiple actions" into Triggers main actions ... one for every doodat(unit)...
Thats all... if you still want to make such a trigger go on ^^ its way not hard its more like .... BOOOOOOORIIIING 8)