I need to make a trigger that would when you research the ability in a shop it adds
the ability to the players hero, i think it would be a trigger but i am not sure.
if you can help thanks.
spell trigger
Moderator: Cheaters
-
- Forum Staff
- Posts: 506
- Joined: August 5th, 2007, 1:38 pm
- Title: Gui Expert
- Location: *Unknown*
Re: spell trigger
Here you go:
Hero Ability
Events
Unit - A unit owned by Player 1 (Red) Finishes research
Conditions
(Researched tech-type) Equal to Iron Forged Swords
Actions
Set Temp_Unit_Group = (Units owned by Player 1 (Red) of type Paladin)
Unit Group - Pick every unit in Temp_Unit_Group and do (Actions)
Loop - Actions
Unit - Add Acid Bomb to (Picked unit)
Custom script: call DestroyGroup (udg_Temp_Unit_Group)
Hero Ability
Events
Unit - A unit owned by Player 1 (Red) Finishes research
Conditions
(Researched tech-type) Equal to Iron Forged Swords
Actions
Set Temp_Unit_Group = (Units owned by Player 1 (Red) of type Paladin)
Unit Group - Pick every unit in Temp_Unit_Group and do (Actions)
Loop - Actions
Unit - Add Acid Bomb to (Picked unit)
Custom script: call DestroyGroup (udg_Temp_Unit_Group)
-
- Junior Member
- Posts: 34
- Joined: August 12th, 2008, 9:35 pm
Re: spell trigger
Thanks but could there be 1 that when and 1 upgrades it it works for every 1
but only gives the person that buys the upgrade the ability.
but only gives the person that buys the upgrade the ability.
-
- Forum Staff
- Posts: 506
- Joined: August 5th, 2007, 1:38 pm
- Title: Gui Expert
- Location: *Unknown*
Re: spell trigger
Here you go:
Hero Research
Events
Unit - A unit owned by Player 1 (Red) Finishes research
Unit - A unit owned by Player 2 (Blue) Finishes research
Unit - A unit owned by Player 3 (Teal) Finishes research
Unit - A unit owned by Player 4 (Purple) Finishes research
Unit - A unit owned by Player 5 (Yellow) Finishes research
Unit - A unit owned by Player 6 (Orange) Finishes research
Unit - A unit owned by Player 7 (Green) Finishes research
Unit - A unit owned by Player 8 (Pink) Finishes research
Unit - A unit owned by Player 9 (Gray) Finishes research
Unit - A unit owned by Player 10 (Light Blue) Finishes research
Unit - A unit owned by Player 11 (Dark Green) Finishes research
Unit - A unit owned by Player 12 (Brown) Finishes research
Conditions
(Researched tech-type) Equal to Iron Forged Swords
Actions
Set Unit_Group = (Units owned by (Triggering player) of type Paladin)
Unit Group - Pick every unit in Unit_Group and do (Actions)
Loop - Actions
Unit - Add Acid Bomb to (Picked unit)
Custom script: call DestroyGroup (udg_Unit_Group)
Hero Research
Events
Unit - A unit owned by Player 1 (Red) Finishes research
Unit - A unit owned by Player 2 (Blue) Finishes research
Unit - A unit owned by Player 3 (Teal) Finishes research
Unit - A unit owned by Player 4 (Purple) Finishes research
Unit - A unit owned by Player 5 (Yellow) Finishes research
Unit - A unit owned by Player 6 (Orange) Finishes research
Unit - A unit owned by Player 7 (Green) Finishes research
Unit - A unit owned by Player 8 (Pink) Finishes research
Unit - A unit owned by Player 9 (Gray) Finishes research
Unit - A unit owned by Player 10 (Light Blue) Finishes research
Unit - A unit owned by Player 11 (Dark Green) Finishes research
Unit - A unit owned by Player 12 (Brown) Finishes research
Conditions
(Researched tech-type) Equal to Iron Forged Swords
Actions
Set Unit_Group = (Units owned by (Triggering player) of type Paladin)
Unit Group - Pick every unit in Unit_Group and do (Actions)
Loop - Actions
Unit - Add Acid Bomb to (Picked unit)
Custom script: call DestroyGroup (udg_Unit_Group)
-
- Junior Member
- Posts: 34
- Joined: August 12th, 2008, 9:35 pm
Re: spell trigger
thanks but could you make it so it works on any research?, instead of making all those triggers.