[Solved] Mine Tower

Status
Not open for further replies.
Level 9
Joined
Aug 16, 2008
Messages
318
I'm about to create a spell of a tower that the goblin mine dummy will automatically place land mines. The problem is it's bugged about indexing.

Produce Mine
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Produce Mine to...
(Casting unit) Equal to MineProducer[MineProducerMain]
Actions
Set MineProducerMain = (Custom value of (Casting unit))
Unit - Move MineProducerTarget[MineProducerMain] instantly to (Target point of ability being cast)
 
Dome fixing the point leak. Here are the rest of Mine tower trigger.

Mineproducer
Events
Unit - A unit Finishes construction
Conditions
(Unit-type of (Constructed structure)) Equal to Mine Producer
Actions
Set MineProducerMain = (Custom value of (Constructed structure))
Set TowerPoint = (Position of (Constructed structure))
Set MineProducer[MineProducerMain] = (Constructed structure)
Unit - Create 1 Mine Target for (Owner of (Constructed structure)) at TowerPoint facing Default building facing degrees
Set MineProducerTarget[MineProducerMain] = (Last created unit)
Custom script: call RemoveLocation(udg_TowerPoint)

Mineproducer Dies
Events
Unit - A unit Dies
Conditions
(Unit-type of (Dying unit)) Equal to Mine Producer
Actions
Set MineProducerMain = (Custom value of (Dying unit))
Unit - Kill MineProducerTarget[MineProducerMain]
 
Status
Not open for further replies.
Back
Top