• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

upgrade attack owned by other

Status
Not open for further replies.
Level 19
Joined
May 1, 2008
Messages
1,130
use a dummy unit for the hero to buy
when the unit is bought remove the unit and make computer research upgrade (u need a custom attack upgrade that u give to the ship)
 
Level 8
Joined
Mar 12, 2008
Messages
437
Create an upgrade that increases attack damage or attack dice for the cannon. (Let's call it x.)
Then, make another upgrade that doesn't do anything at all. (Let's call it y.)

Make the tavern have the y upgrade.

Then, use this trigger:
  • Upgrade damage
    • Events
      • Unit - A unit Finishes an upgrade
    • Conditions
      • (Researched tech-type) equal to y
    • Actions
      • Player - Set the current research level of x to (Current research level of y for (Owner of (Researching unit))) for [Computer player]
 
Ok found it ty. Now I have new problem because I have 2 player team with 2 computer ship attackers, How i put only first team can reserach this ability and team number 2 can only theyr?

P.S A super extra idea for upgrade, I like if can make a dialog button for upgrade attack and armor of ship when a unit within in range x of unit, good no? but how i set for gold, if player have 100 gold research start, instead don't have don't start?
 
Last edited:
Level 8
Joined
Mar 12, 2008
Messages
437
I don't get the super extra idea, but for the first thing, I think you can change the actions to this:
  • Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (Owner of (Researching unit)) is An ally of Player 1 equal to True
      • Then - Actions
        • Player - Set the current research level of x to ((Current research level of x for [Computer 1]) + 1) for [Computer 1]
      • Then - Actions
        • Player - Set the current research level of x to ((Current research level of x for [Computer 2]) + 1) for [Computer 2]
If the researching unit is an ally of Player 1, Computer 1 will recieve the upgrade, otherwise, Computer 2 will.
 
i have maked this if a player have 100 or more gold upgrade else don't upgrade but don't run...


actions pulsed pirate
Events
Dialogue - A dialog button is clicked for Mydialog
Conditions
(Clicked dialog button) Same as Dialogbutton [1]
Stocks
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Owner of (Triggering unit)) Oro current) Greater than or equal to 100
Then - Actions
Player - Set the current level of research Mike Cannon to 1 for Player 8 (Rosa)
Player - Add (Sign (-100)) to (Owner of (Triggering unit)) Gold used in maintenance
Match - Display to (All players) for 10.00 seconds the text: Upgrade to cane lv ...
Otherwise - Stocks
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Owner of (Triggering unit)) Gold used in maintenance) Less than 100
Then - Actions
Match - Display to (All players) for 10.00 seconds the text: Hehe, need more goals ...
Otherwise - Stocks
Do nothing
 
Status
Not open for further replies.
Top