• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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