- Joined
- Jun 10, 2013
- Messages
- 473
Thanks to an example I found of LordDz's I manage to get a time charm working perfectly however I would like it only be allowed to be casted upon units which are level 4 and below.
Here"s the trigger and I based it on the channel spell:
Here"s the trigger and I based it on the channel spell:
-
Mind Control
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Mind Control
-
Actions
- Set Bob = (Target unit of ability being cast)
- Set BobPlayer = (Owner of Bob)
- Unit - Change ownership of Bob to (Owner of (Triggering unit)) and Change color
-
For each (Integer tempInt) from 1 to 6, do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Item carried by Bob in slot tempInt) is Sellable) Equal to True
-
Then - Actions
- Item - Make (Item carried by Bob in slot tempInt) Undroppable
-
Else - Actions
- Wait 45.00 seconds
-
For each (Integer tempInt) from 1 to 6, do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Item carried by Bob in slot tempInt) is Sellable) Equal to True
-
Then - Actions
- Item - Make (Item carried by Bob in slot tempInt) Droppable
-
Else - Actions
- Unit - Change ownership of Bob to BobPlayer and Change color
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
-
Events