SC2Mapster Forums

Development > Data

Change color of model depending on player color?

  • 10 posts
    #1 Dec 02, 2012 at 16:26 UTC - 0 likes

    For example:

    Lets say that player 1 casts a Psi Storm. Is it possible to make the psi storm model become the same color as player 1 has?

    Green player casts a storm, the actor changes the psi storm model to green..

    #2 Dec 03, 2012 at 21:37 UTC - 0 likes

    Anyone knows?

    (24-hour bump 4-ever! Please do not kill me, Doctor )

    Last edited Dec 03, 2012 by Kabelkorven
    #3 Dec 03, 2012 at 22:04 UTC - 0 likes

    @Kabelkorven: Go

    Doable yes, easy, not so much. I can think of a couple ways to do this. One, have a big long trigger that watches for effects used and sends set tint actor messages accordingly, this might lag a little though, making the effects their usual color for a short while. The other way would be pure data, very possible to just dupe the same ability many times purely for the purpose of getting different colors based on the player. This would be very tedious though, and it would require disabling of player color choice (triggers you could simply grab the player's color).

    There may be other ways to accomplish this, but those are what I can think of, I've considered something like this before myself, decided it wasn't worth the effort, lol.

    Horologium Super Cluster RPG

    #4 Dec 04, 2012 at 10:45 UTC - 0 likes

    How hard would it be to export a model of a spell from the game, add team color and then import it back into the game?

    So if red player cast psi storm it becomes red. Just as his units are red. I plan to use this on a couple of spells.

    Note: I have never done anything like that. Is it possible to do for a newcomer, or it requries load of skills?

    #5 Dec 04, 2012 at 11:29 UTC - 0 likes

    To export a model, you need to rightclick its file and pick export. To edit it, you need 3d max + m3 exporter. In 3d max u'll have to chose "team color emissive" for material's emissive mode. Then export model from 3d max and import back to the editor.

    #6 Dec 04, 2012 at 14:39 UTC - 0 likes

    Thank you for your answear.

    So this one is all I need?

    http://www.sc2mapster.com/assets/m3-export-plugin-3ds-max/

    Or can you recommend any specific program?

    #7 Dec 05, 2012 at 22:54 UTC - 0 likes

    Blender is also a free alternative.

    #8 Dec 05, 2012 at 22:59 UTC - 0 likes

    @Kabelkorven: Go

    As an alternative you can use the rainbow macro :P While this wont be your desired effect its still pretty sweet.

    my maps will always be Free. and Available to the public at the earliest possible date.

    If you need a tester feel free to ask IShadowWolf.258

    You can also catch me on the IRC most times.

    #9 Dec 06, 2012 at 01:03 UTC - 0 likes

    Surely there is a way to tint the actors model based on team colour, actors create all our units one colour surely it is doable for other stuff, will have a look when I get home

    Current Project: Community Project

    #10 Dec 06, 2012 at 07:45 UTC - 0 likes

    @nevjmac: Go

    So after a bit of playing the actor effect I thought would work doesn't work as I had thought. as said previously, the only way would be able to send an actor message through triggers :)

    Last edited Dec 06, 2012 by nevjmac
  • 10 posts

You must login to post a comment. Don't have an account? Register to get one!