spell trigger

For fulfilled maps that most likely don't work on the latest patch (1.24 or later).

Moderator: Cheaters

Dark_coolness
Junior Member
Posts: 34
Joined: August 12th, 2008, 9:35 pm

spell trigger

Post by Dark_coolness »

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.
Arabidnun
Forum Staff
Posts: 506
Joined: August 5th, 2007, 1:38 pm
Title: Gui Expert
Location: *Unknown*

Re: spell trigger

Post by Arabidnun »

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)
Dark_coolness
Junior Member
Posts: 34
Joined: August 12th, 2008, 9:35 pm

Re: spell trigger

Post by Dark_coolness »

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.
Arabidnun
Forum Staff
Posts: 506
Joined: August 5th, 2007, 1:38 pm
Title: Gui Expert
Location: *Unknown*

Re: spell trigger

Post by Arabidnun »

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)
Dark_coolness
Junior Member
Posts: 34
Joined: August 12th, 2008, 9:35 pm

Re: spell trigger

Post by Dark_coolness »

thanks but could you make it so it works on any research?, instead of making all those triggers.