• 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 for other players...

Status
Not open for further replies.
I want it so when player 1 red upgrades, it upgrades player 6 oganges units too.

  • Events
    • Unit - A unit owned by Player 1 (Red) Finishes an upgrade
  • Conditions
    • (Researched tech-type) Equal to (Upgrade) damage
  • Actions
    • Player - Set the current research level of (upgrade) damage to 1 for Player 6 (Orange)
The trigger above didnt work...What dose?
 
Last edited:
Level 40
Joined
Dec 14, 2005
Messages
10,532
Display (random text) to all players, so you know if the trigger went or not.

Sorry about the terminology, it's what you call it when you're programming, and also I partially call it that because of the JASS function

JASS:
function BJDebugMsg takes string msg returns nothing
    local integer i = 0
    loop
        call DisplayTimedTextToPlayer(Player(i),0,0,60,msg)
        set i = i + 1
        exitwhen i == bj_MAX_PLAYERS
    endloop
endfunction

Which is basically "Text spam all players with msg for 60 seconds"

EDIT: Chaos beat me to it >.>
 
Sorry fot late reply, It was my bedtime.....

I added a trigger doing like you said, and I found out the trigger never ran.
BUT I fixed the problem, by changeing the trigger to this:
  • Untitled Trigger 002
    • Events
      • Unit - Research Shop 0031 <gen> Finishes research
    • Conditions
      • (Researched tech-type) Equal to Attack damage
    • Actions
      • Player - Set the current research level of Attack damage to 1 for Player 6 (Orange)
In other words, I changed the trigger to the exact unit, unstead if just any unit owned by player 1....For some reason, that worked..
 
Status
Not open for further replies.
Top