- Joined
- Jan 1, 2005
- Messages
- 133
i know i have alrdy posted i think 2 threads about this but i need a new thread 4 this time becuz i have been able 2 b more specific with wat needs 2 happen in the ability process.
Basically wat i need is either an
- ability + a trigger
or an
- item + Ability + a trigger
that would appear on the unit (vulture) only afta i have research the upgrade for that ability.
At this point i have 2 different abilities, 1 uses the Ability + trigger Combination which goes as follows;
Trigger 1 (Init)
Event
unit finsihes training a unit
Condition
(Unit-type of (Trained unit)) Equal to unit (Vulture)
Event
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Researched tech-type) Equal to Spider Mines
Then - Actions
Unit - Add Spider Mines to (Trained unit)
Hero - Give (Last created item) to (Triggering unit)
Unit - Set Level of Spider Mines for (Trained unit) to 3
Else - Actions
Do nothing
Trigger 2 (Laying Down Mines)
Event
Unit - A unit Finishes casting an ability
Conditions
(Unit-type of (Casting unit)) Equal to unit (Vulture)
(Ability being cast) Equal to Spider Mines
Actions
Unit - Decrease Level of Spider Mines for (Casting unit)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Spider Mines for (Casting unit)) Equal to 1
Then - Actions
Unit - Remove Spider Mines from (Casting unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
(Level of Spider Mines for (Casting unit)) Equal to 2
(Level of Spider Mines for (Casting unit)) Equal to 3
Then - Actions
Unit - Decrease Level of Spider Mines for (Casting unit)
Else - Actions
Do nothing
Spider Mine Ability is a Hero Ability
Trigger created by IceWhiteDragon
The second Trigger uses the item + Ability + a trigger, but i was neva able 2 implenment completely, this is how it went;
Trigger 1 (init)
Was basically the same as the first 1 i post but instead it would give u 3 items into the units invertory and the ability 2 lay the mines to the unit
Trigger 2 (no mines left)
Events
Unit - A unit Uses an item
Conditions
(Item-type of (item)) Equal to Terran Spider Mine
Actions
and from there i had 2 make an action like if there were no items in the units invertory then remove the ability
Dr. Super God provided this trigger for me but i couldnt find the rite coding for wat he wanted me 2 input into the trigger. If there is a correct code i misunderstood could sum1 plz post the coding for me.
If any1 can help me to create a correct, working trigger that gives the mines to the unit afta the upgrade has been research plz post the trigger here. (GUI or JASS) thanx
Basically wat i need is either an
- ability + a trigger
or an
- item + Ability + a trigger
that would appear on the unit (vulture) only afta i have research the upgrade for that ability.
At this point i have 2 different abilities, 1 uses the Ability + trigger Combination which goes as follows;
Trigger 1 (Init)
Event
unit finsihes training a unit
Condition
(Unit-type of (Trained unit)) Equal to unit (Vulture)
Event
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Researched tech-type) Equal to Spider Mines
Then - Actions
Unit - Add Spider Mines to (Trained unit)
Hero - Give (Last created item) to (Triggering unit)
Unit - Set Level of Spider Mines for (Trained unit) to 3
Else - Actions
Do nothing
Trigger 2 (Laying Down Mines)
Event
Unit - A unit Finishes casting an ability
Conditions
(Unit-type of (Casting unit)) Equal to unit (Vulture)
(Ability being cast) Equal to Spider Mines
Actions
Unit - Decrease Level of Spider Mines for (Casting unit)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Spider Mines for (Casting unit)) Equal to 1
Then - Actions
Unit - Remove Spider Mines from (Casting unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
(Level of Spider Mines for (Casting unit)) Equal to 2
(Level of Spider Mines for (Casting unit)) Equal to 3
Then - Actions
Unit - Decrease Level of Spider Mines for (Casting unit)
Else - Actions
Do nothing
Spider Mine Ability is a Hero Ability
Trigger created by IceWhiteDragon
The second Trigger uses the item + Ability + a trigger, but i was neva able 2 implenment completely, this is how it went;
Trigger 1 (init)
Was basically the same as the first 1 i post but instead it would give u 3 items into the units invertory and the ability 2 lay the mines to the unit
Trigger 2 (no mines left)
Events
Unit - A unit Uses an item
Conditions
(Item-type of (item)) Equal to Terran Spider Mine
Actions
and from there i had 2 make an action like if there were no items in the units invertory then remove the ability
Dr. Super God provided this trigger for me but i couldnt find the rite coding for wat he wanted me 2 input into the trigger. If there is a correct code i misunderstood could sum1 plz post the coding for me.
If any1 can help me to create a correct, working trigger that gives the mines to the unit afta the upgrade has been research plz post the trigger here. (GUI or JASS) thanx