S
shadowvzs
Guest
When unit buy follow (rune) item then dodo follow him, but how can i do without periodic things when dodo enter his region then add something unit who buying from dodo ?
Code:
Dodo Quest
Events
Unit - A unit Sells an item (from shop)
Conditions
Or - Any (Conditions) are true
Conditions
(Item-type of (Sold Item)) Equal to Blood Sacrifice
(Item-type of (Sold Item)) Equal to Follow
(Item-type of (Sold Item)) Equal to Stop
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Item-type of (Sold Item)) Equal to Blood Sacrifice
(Percentage mana of (Selling unit)) Not equal to 100.00
Then - Actions
Unit - Set life of (Buying unit) to ((Life of (Buying unit)) / 20.00)
Unit - Set mana of (Selling unit) to 100.00%
Unit - Set life of (Selling unit) to 100.00%
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Item-type of (Sold Item)) Equal to Follow
(Percentage mana of (Selling unit)) Equal to 100.00
Then - Actions
Unit - Set life of (Buying unit) to ((Life of (Buying unit)) / 1.50)
Unit - Order (Selling unit) to Follow (Buying unit)
Unit - Set mana of (Selling unit) to 100.00%
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Selling unit)) Equal to Dodo
Then - Actions
Cinematic - Ping minimap for (Player group((Owner of (Buying unit)))) at (Center of Dodo Mother Region <gen>) for 3.00 seconds
Else - Actions
Cinematic - Ping minimap for (Player group((Owner of (Buying unit)))) at (Center of SheepCaran <gen>) for 3.00 seconds
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Item-type of (Sold Item)) Equal to Stop
(Percentage mana of (Selling unit)) Equal to 100.00
Then - Actions
Unit - Set life of (Buying unit) to ((Life of (Buying unit)) / 1.50)
Unit - Order (Selling unit) to Stop
Unit - Set mana of (Selling unit) to 100.00%
Else - Actions
Code:
Dodo Mother Region
Events
Unit - A unit enters Dodo Mother Region <gen>
Conditions
(Unit-type of (Entering unit)) Equal to Dodo
Actions
Set Temp_point[8] = (Position of (Triggering unit))
Wait 10.00 seconds
Item - Create Feather at Temp_point[8]
Unit - Remove (Triggering unit) from the game
Custom script: call RemoveLocation(udg_Temp_point[8])