• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Random skill without them repeating

Status
Not open for further replies.
Level 3
Joined
May 12, 2007
Messages
21
so... hey guys:) at last I posted something here lol.
so anyways. I hope you know sheepy race.

It is actualy my map. its basically a race and each sheep has its own RANDOM SKILL

What I need from you guys is to help me know how to make Random skill per sheep without them repeating.
check below to see my own triggers.
 
Last edited:
Level 3
Joined
May 12, 2007
Messages
21
Level 3
Joined
May 12, 2007
Messages
21
THIS IS MY OWN CODE. STILL SOME UNITS REPEAT SOME SKILLS.
BTW THE TRIGGER BELOW STILL DOESNT WORKS. It still repeats

Code:
    Events
        Time - Elapsed game time is 0.20 seconds
    Conditions
    Actions
        Set Spell_Total = 40
        Set Spell_Count = 40
        Set Spells[1] = Assassinate (fragilous)
        Set Spells[2] = Blink (fragilous)
        Set Spells[3] = Life Steal (fragilous)
        Set Spells[4] = Mind Control (fragilous)
        Set Spells[5] = Tornado (fragilous)
        Set Spells[6] = Shadow Gate (fragilous)
        Set Spells[7] = Magic Boom (fragilous)
        Set Spells[8] = Propeller (fragilous)
        Set Spells[9] = Freeze Time (fragilous)
        Set Spells[10] = Impale (fragilous)
        Set Spells[11] = Kaboom! (fragilous)
        Set Spells[12] = Mana Burn (fragilous)
        Set Spells[13] = Metal Sheep Form (fragilous)
        Set Spells[14] = Serpent Ward (fragilous)
        Set Spells[15] = Possession (fragilous)
        Set Spells[16] = Fan of Knives (fragilous)
        Set Spells[17] = Mutate (fragilous)
        Set Spells[18] = Magic Tunnel (fragilous)
        Set Spells[19] = Laser (fragilous)
        Set Spells[20] = Big Bang (fragilous)
        Set Spells[21] = Earth Bend (fragilous)
        Set Spells[22] = Swap (fragilous)
        Set Spells[23] = Sprout Wings (fragilous)
        Set Spells[24] = Meltdown Bomb (fragilous)
        Set Spells[25] = Permanent Immolation (fragilous)
        Set Spells[26] = Blizzard (fragilous)
        Set Spells[27] = Countdown (fragilous)
        Set Spells[28] = Sprout (fragilous)
        Set Spells[29] = Dark Door (fragilous)
        Set Spells[30] = Gravity Blast (fragilous)
        Set Spells[31] = Minimize (fragilous)
        Set Spells[32] = Evil Eye (fraglous)
        Set Spells[33] = Mana Strike (fragilous)
        Set Spells[34] = Trap (fragilous)
        Set Spells[35] = Traffic (fragilous)
        Set Spells[36] = Screech (fragilous)
        Set Spells[37] = Tackle (fragilous)
        Set Spells[38] = Mamonite (fragilous)
        Set Spells[39] = Forked Chain Lightning (fragilous)
        Set Spells[40] = Volcano (fragilous)
        For each (Integer A) from 1 to 40, do (Actions)
            Loop - Actions
                Set Spell_Data[(Integer A)] = (Integer A)

and


Code:
    Events
    Conditions
    Actions
        Game - Display to (All players) the text: Starting...  
        For each (Integer A) from 1 to 11, do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        ((Player((Integer A))) slot status) Equal to Is playing
                    Then - Actions
                        Set SpellRepeat = (Random integer number between 1 and Spell_Total)
                        Unit - Add Spells[SpellRepeat] to Sheep[(Integer A)]
                        Set Spell_Picked[(Integer A)] = (Spell_Picked[(Integer A)] + 1)
                        Set Spell_Data[SpellRepeat] = Spell_Data[Spell_Count]
                        Set Spell_Count = (Spell_Count - 1)
                    Else - Actions
                        Do nothing
 
Last edited:
Status
Not open for further replies.
Top