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.
    [2024-5-31. : 2:36 pm]
    Wing Zero -- Bop em
    [2024-5-31. : 2:36 pm]
    Wing Zero -- Mods
    [2024-5-29. : 9:40 pm]
    Ultraviolet -- :wob:
    [2024-5-28. : 8:43 am]
    TheHappy115 -- Yea, thats the issue. Thanks. It would also explain why my deleted map couldn't get updated. Updated version reduced collision on units (only thing added) since was dodging game (players collide with each other)
    [2024-5-28. : 5:26 am]
    Ultraviolet -- If so, I'd just focus on getting them on scmscx.com and then you can link to that in the showcase thread for your maps
    [2024-5-28. : 5:25 am]
    Ultraviolet -- I can't upload my EUD maps, I think the DLDB has some issue with handling them. Are you trying to upload EUD maps?
    [2024-5-28. : 2:06 am]
    TheHappy115 -- Its been awhile but ever since I requested one of the Maps I posted to be deleted since I couldn't delete it myself (or update it), I haven't been able to upload any more maps. Any reason for that?
    [2024-5-26. : 7:14 pm]
    Kyradax -- Hi
    [2024-5-26. : 5:05 pm]
    O)FaRTy1billion[MM] -- :wob:
    [2024-5-25. : 9:22 am]
    Zycorax -- :wob:
    Please log in to shout.


    Members Online: NudeRaider, RIVE