-color trigger

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

Black-Hole
Forum Fanatic
Posts: 315
Joined: October 16th, 2007, 7:32 pm

-color trigger

Post by Black-Hole »

Ive been trying to get this damn trigger to work all night and have failed in every attempt...

What am i doing wrong? To change the tint i has to be in Real so i convert them to real but it doesn't work still?

Code: Select all

Tint
    Events
        Player - Player 1 (Red) types a chat message containing -color as A substring
        Player - Player 2 (Blue) types a chat message containing -color as A substring
        Player - Player 3 (Teal) types a chat message containing -color as A substring
        Player - Player 4 (Purple) types a chat message containing -color as A substring
        Player - Player 5 (Yellow) types a chat message containing -color as A substring
        Player - Player 6 (Orange) types a chat message containing -color as A substring
        Player - Player 7 (Green) types a chat message containing -color as A substring
        Player - Player 8 (Pink) types a chat message containing -color as A substring
    Conditions
    Actions
        Set A_Color_Code[1] = (Substring((Entered chat string), 8, 10))
        Set A_Color_Code[2] = (Substring((Entered chat string), 11, 13))
        Set A_Color_Code[3] = (Substring((Entered chat string), 14, 17))
        For each (Integer A) from 1 to 3, do (Actions)
            Loop - Actions
                Set A_Color_Code_Integer[(Integer A)] = (Real(A_Color_Code[(Integer A)]))
        Unit Group - Pick every unit in (Units owned by (Triggering player)) and do (Actions)
            Loop - Actions
                Animation - Change (Triggering unit)'s vertex coloring to (A_Color_Code_Integer[1]%, A_Color_Code_Integer[2]%, A_Color_Code_Integer[3]%) with 50.00% transparency
User avatar
Ken
Spice Pirate
Posts: 862
Joined: January 29th, 2009, 5:35 pm
Title: LHC
Location: Canada

Re: -color trigger

Post by Ken »

Animation - Change (Triggering unit)'s vertex coloring to (A_Color_Code_Integer[1]%, A_Color_Code_Integer[2]%, A_Color_Code_Integer[3]%) with 50.00% transparency

Should be Picked unit, not Triggering unit.
Spoiler:
xkiska wrote:BARTIMEAUS is more understandable then u
Senethior459 wrote:Wow, Dream Theatre reminds me of Dragonforce, but with real skill.
Ozzapoo wrote:We laughed, we cried. Trashed.
FatherSpace: You don't find smart chicks hawt?
GeorgeMots: not anymore, im fed up with that kind of girls
FatherSpace: lol
FatherSpace: What happened?
GeorgeMots: most smart girls find out that i date/do/see other girls....
FatherSpace: ...
FatherSpace: So monogamy is your enemy?
Bartimaeus: Hmm, well, I hope my sister hasn't been kidnapped.
FatherSpace: What happened, Bart?
Bartimaeus: She walked out of the house saying that she was going over to some friends, and it's been like two hours, and my mom is trying to get a hold of her, which she's been unable to.
Bartimaeus: I can also hear three car alarms going off.
GeorgeMots: how old is she?
Bartimaeus: I haven't a clue. Probably 17.
UndeadxAssassin: wut
AbusivePie: You don't know how old your sister is?
Bartimaeus: Nope.
UndeadxAssassin: Epic fail
GeorgeMots: is she cute??
Bartimaeus: So, uh, how about you get into the Christmas spirit and put that avatar on before I do it myself and take away your bloody avatar-changin' rights?
UndeadxAssassin: If I thought of a random one...
UndeadxAssassin: Like....
UndeadxAssassin: I'll get back to you on that
Black-Hole
Forum Fanatic
Posts: 315
Joined: October 16th, 2007, 7:32 pm

Re: -color trigger

Post by Black-Hole »

Ya ya ya i got found that way before you posted it :P