Xebarsis
New Member
- Reaction score
- 7
I have a spell that traps a bunch of units in web, then after 10 seconds the web is removed from the inflicted units. Unfortunately, if a player casts two different webs, the first group that was webbed does not have their buff removed... which is bad because it means they're stuck forever. I need some help converting this trigger to MUI:
Trigger:
- Giant Web
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to Giant Web
- Actions
- Set WebGroup[(Player number of (Owner of (Triggering unit)))] = (Units within 350.00 of (Target point of ability being cast) matching (((Matching unit) belongs to an enemy of (Owner of (Triggering unit))) Equal to True))
- Set TheOtherPoint = (Target point of ability being cast)
- Unit - Create 1 Dummy Web for (Owner of (Triggering unit)) at TheOtherPoint facing Default building facing degrees
- Unit - Add a 10.00 second Generic expiration timer to (Last created unit)
- Custom script: call RemoveLocation (udg_TheOtherPoint)
- Unit Group - Pick every unit in WebGroup[(Player number of (Owner of (Triggering unit)))] and do (Actions)
- Loop - Actions
- Set ThePoint = (Position of (Picked unit))
- Unit - Create 1 Dummy Caster for (Owner of (Triggering unit)) at ThePoint facing Default building facing degrees
- Unit - Add Giant Web (Single Target) to (Last created unit)
- Unit - Order (Last created unit) to Undead Crypt Fiend - Web (Picked unit)
- Unit - Add a 5.00 second Generic expiration timer to (Last created unit)
- Custom script: call RemoveLocation (udg_ThePoint)
- Loop - Actions
- Wait 10.00 seconds
- Unit Group - Pick every unit in WebGroup[(Player number of (Owner of (Triggering unit)))] and do (Actions)
- Loop - Actions
- Unit - Remove Giant Web (Air) buff from (Picked unit)
- Unit - Remove Giant Web (Ground) buff from (Picked unit)
- Loop - Actions
- Events