Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Random Color on Units
Random Color on Units
Mar 1 2008, 12:58 am
By: sessase  

Mar 1 2008, 12:58 am sessase Post #1



Hey guys,

I'm working on a personal project, Here the deal:

I want to use 1 computer as "cars" and it would be cool if they could be different colors. I can't figure out how to do this, but I know it's possible i've seen it already. I thought of using P12(neutral) as my "cars" computer and give them randomly to other computers that are different colors then give em back to p12. I was wondering if it could work?

Thank you for further response :D



None.

Mar 1 2008, 12:59 am Falkoner Post #2



Yes, they would keep the colors of the players they are given to, and as long as you give the orders to player 12 from other players in the trigger list, it will work out just fine.



None.

Mar 1 2008, 10:19 pm sessase Post #3



Thank you.

Actually I tried with P12 but I still have an issue, if player 1 is red and the car is exemple: blue, when I give it to player1 it turn red and well... that bother me... I was wondering a way to fix that. I thought of Setting Player 12 as Rescuable but I just can't figure out how to do this.



None.

Mar 1 2008, 10:29 pm Falkoner Post #4



Yeah, it will change colors if given to another player, but as long as it stays under players 9-12, it will keep its color.



None.

Mar 1 2008, 11:12 pm NudeRaider Post #5

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

you can only apply very few things to P9-12. Setting them to rescueable is unfortunately NOT one of them.

You would have to give it to one rescueable player of P1-8 first, then place a unit of the target player beneath it to do the rescue.
Giving from a rescueable player with triggers does NOT retain the rescueable player's color.




Mar 2 2008, 5:19 pm Pyro682 Post #6



Give it to player 12, like this

Trigger
Players

  • Player 8
  • Conditions

  • Always (or whatever you want)
  • Actions

  • Give all "Cars" owned by Force 1 to Player 12 (neutral)
  • Comments?
  • Preserve Trigger




  • You can also have something that has an even number of cars, like a trigger that says Create 12 Cars for Force 1, and then give them all to Player 12. They will retain their original colors.

    Post has been edited 1 time(s), last time on Mar 10 2008, 7:51 am by Pyro682.



    None.

    Mar 2 2008, 11:50 pm NudeRaider Post #7

    We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

    That won't work.
    Triggers owned by P9-12 are ignored and never executed.
    You must give the trigger to one of P1-8

    EDIT: Someone delete this reply as soon as the above trigger is fix'd. Thx

    Post has been edited 1 time(s), last time on Mar 6 2008, 8:51 am by NudeRaider.




    Mar 6 2008, 6:32 am Pyro682 Post #8



    Fine, then Give the trigger to 1-8... Doesnt make that much of a difference to the trigger.



    None.

    Options
      Back to forum
    Please log in to reply to this topic or to report it.
    Members in this topic: None.
    [02:41 am]
    Oh_Man -- i used to play TF2 competitive in that clan, and also was PR manager (ie: i wrote all the website posts)
    [02:41 am]
    Oh_Man -- another fun fact iaguz actually joined the clan i was part of - Frenetic Array
    [02:40 am]
    Symmetry -- Human memory is a fragile, fallible thing
    [02:39 am]
    Oh_Man -- i realised all his shit was halluc and i wiped out his measly army of fake hallucs and he called GG - yeah thts wat actually happened damn false memory strikes again
    [02:38 am]
    Oh_Man -- i was zerg, the toss guy did a bunch of hallucinates, and i was like, welp, i guess i'm dead, but i have that mindset of never giving up, so attacked him anyway, then tht was wen
    [02:38 am]
    Oh_Man -- coz i was actually a zerg main, so wat ACTUALLY happened was a complete reverse of this
    [02:37 am]
    Oh_Man -- i found an old comment of mine i actually think the idra thing over-ride my own memory
    [02:22 am]
    Symmetry -- was it idra
    [01:52 am]
    NudeRaider -- Oh_Man
    Oh_Man shouted: and i went on to win the tournament, and a pair of steelseries headphones. i even reember how i won the final match - hallucinated a fck-tonne of units and my opponent thought i had way more than he did and GGed
    classic
    [02:56 pm]
    Oh_Man -- long story short - patience is a virtue!
    Please log in to shout.


    Members Online: RIVE