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.
    [10:34 am]
    NudeRaider -- SEN doesn't rely on spammers initiate its sleep cycle. It hat fully automated rest and clean-up phases. Please understand that this is necessary for the smooth operation of the site. Thank you.
    [03:45 am]
    Sylph-Of-Space -- Does the shoutbox get disabled when there's spammers?
    [2024-5-17. : 6:47 am]
    NudeRaider -- lil-Inferno
    lil-Inferno shouted: nah
    strong
    [2024-5-17. : 5:41 am]
    Ultraviolet -- 🤔 so inf is in you?
    [2024-5-17. : 4:57 am]
    O)FaRTy1billion[MM] -- my name is mud
    [2024-5-17. : 4:35 am]
    Ultraviolet -- mud, meet my friend, the stick
    [2024-5-16. : 10:07 pm]
    lil-Inferno -- nah
    [2024-5-16. : 8:36 pm]
    Ultraviolet -- Inf, we've got a job for you. ASUS has been very naughty and we need our lil guy to go do their mom's to teach them if they fuck around, they gon' find out
    [2024-5-16. : 5:25 pm]
    NudeRaider -- there he is, right on time! Go UV! :D
    [2024-5-16. : 5:24 pm]
    lil-Inferno -- poopoo
    Please log in to shout.


    Members Online: 4carolinec9485tB0, 7taylore7623rb1, 6miac9791gr1