Deleted member 231919
D
Deleted member 231919
This is a pretty simple trigger but I always have trouble with pauses and waits for abilities.
This ability will be used by multiple players, but it bugs up and I don't understand how to fix it.
You use the ability from the item and you target a wisp. Once you do that, your unit (the caster) is paused for 5 seconds. After the 5 seconds, your unit is unpaused and there is a chance that your unit will get an item. The wisp in the lake should also die whether or not you get the item.
This ability will be used by multiple players, but it bugs up and I don't understand how to fix it.
You use the ability from the item and you target a wisp. Once you do that, your unit (the caster) is paused for 5 seconds. After the 5 seconds, your unit is unpaused and there is a chance that your unit will get an item. The wisp in the lake should also die whether or not you get the item.
-
Fishing Rod
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Fishing Rod
-
Actions
- Set Fishing_Drop = (Random integer number between 1 and 100)
- Set Unit_Got_Fish = (Triggering unit)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Unit-type of (Target unit of ability being cast)) Equal to Fish Test
- Fishing_Drop Less than or equal to 30
-
Then - Actions
- Special Effect - Create a special effect at (Position of (Target unit of ability being cast)) using Abilities\Spells\Human\AerialShackles\AerialShacklesTarget.mdl
- Unit - Pause Unit_Got_Fish
- Wait 5.00 seconds
- Hero - Create Strawberry Seed and give it to Unit_Got_Fish
- Unit - Kill (Target unit of ability being cast)
- Unit - Unpause Unit_Got_Fish
-
Else - Actions
- Special Effect - Create a special effect at (Position of (Target unit of ability being cast)) using Abilities\Spells\Human\AerialShackles\AerialShacklesTarget.mdl
- Unit - Pause Unit_Got_Fish
- Wait 5.00 seconds
- Unit - Kill (Target unit of ability being cast)
- Unit - Unpause Unit_Got_Fish
-
If - Conditions
-
Events
Last edited by a moderator: