Help with Alliances...

Some1Sneakin

New Member
Reaction score
5
Ok ill make myself short!

I need help fixing alliances in like this way:

Think of Island Def/Vampirism

You get builder...

It get killed...

You get a evil minion...

but how do you change that youre friendly with the Vampire maybe? And hostile with the workers?

It wont work for me, the "Vampire" is killing its minion :/

Thanks for reading...
 

cleeezzz

The Undead Ranger.
Reaction score
268
try the trigger

Set alliance

when the game starts out, add the players who are builders to a player group, ex: Builders, and vampires to another player group, ex: Vampires

then

Code:
Untitled Trigger 001
    Events
        Unit - A unit Dies
    Conditions
        (Unit-type of (Triggering unit)) Equal to Builder
    Actions
        Player Group - Remove (Owner of (Triggering unit)) from Builders
        Player Group - Add (Owner of (Triggering unit)) to Vampires
        Player Group - Make (Player group((Player((Player number of (Owner of (Triggering unit))))))) treat Builders as an Enemy
        Player Group - Make (Player group((Player((Player number of (Owner of (Triggering unit))))))) treat Vampires as an Ally with shared vision
 

Some1Sneakin

New Member
Reaction score
5
ok thx... its still not working :(

My Triggers...
Code:
Player Groups
    Events
        Map initialization
    Conditions
    Actions
        Player Group - Add Player 12 (Brown) to Evil_GRP
        For each (Integer A) from 1 to 11, do (Actions)
            Loop - Actions
                Player Group - Add (Player((Integer A))) to Survivor_GRP

Code:
Survivor Dies
    Events
        Unit - A unit Dies
    Conditions
        (Unit-type of (Dying unit)) Equal to Survivor
    Actions
        Unit Group - Pick every unit in (Units owned by (Owner of (Dying unit))) and do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        (Unit-type of (Picked unit)) Not equal to Survivor
                    Then - Actions
                        Unit - Remove (Picked unit) from the game
                    Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Killing unit) Not equal to Haunted Gold Mine 0025 <gen>
            Then - Actions
                Unit - Create 1 Evil Minion for (Owner of (Dying unit)) at (Position of (Dying unit)) facing Default building facing degrees
            Else - Actions
                Player Group - Remove (Owner of (Dying unit)) from Survivor_GRP
                Player Group - Add (Owner of (Triggering unit)) to Evil_GRP
                Player Group - Make (Player group((Player((Player number of (Owner of (Dying unit))))))) treat Evil_GRP as an Ally with shared vision
                Player Group - Make (Player group((Player((Player number of (Owner of (Dying unit))))))) treat Survivor_GRP as an Enemy
                Player Group - Make Evil_GRP treat Survivor_GRP as an Enemy
                Player Group - Make Survivor_GRP treat Evil_GRP as an Enemy

well can any1 see what ive done wrong? :confused:
 

cleeezzz

The Undead Ranger.
Reaction score
268
Code:
Survivor Dies
    Events
        Unit - A unit Dies
    Conditions
        (Unit-type of (Dying unit)) Equal to Survivor
    Actions
        Unit Group - Pick every unit in (Units owned by (Owner of (Dying unit))) and do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        (Unit-type of (Picked unit)) Not equal to Survivor
                    Then - Actions
                        Unit - Remove (Picked unit) from the game
                    Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Killing unit) Not equal to Haunted Gold Mine 0025 <gen>
            Then - Actions
                Unit - Create 1 Evil Minion for (Owner of (Dying unit)) at (Position of (Dying unit)) facing Default building facing degrees
            [COLOR="Red"]Else - Actions[/COLOR]
                Player Group - Remove (Owner of (Dying unit)) from Survivor_GRP
                Player Group - Add (Owner of (Triggering unit)) to Evil_GRP
                Player Group - Make (Player group((Player((Player number of (Owner of (Dying unit))))))) treat Evil_GRP as an Ally with shared vision
                Player Group - Make (Player group((Player((Player number of (Owner of (Dying unit))))))) treat Survivor_GRP as an Enemy
                Player Group - Make Evil_GRP treat Survivor_GRP as an Enemy
                Player Group - Make Survivor_GRP treat Evil_GRP as an Enemy

took awhile to notice it :D (kinda missed it although i read it like 5 times -_-

anyway, wanna tell me why the actions are in else?

basically that says, if it is not killed by a Haunted gold mine, create a Minion

if its killed by a gold mine, change the teams and make allies and stuff ( but dont create minion)

fix? just move all the ally actions up to the Then actions.
 

Some1Sneakin

New Member
Reaction score
5
Haha it was that simple? Nice done finding it! :) i <3 you :D thx alot!

And the haunted gold mine thing? hehe i had a trigger which killed all builders at start if they were afk, and then the action was:
Code:
Unit - Cause Haunted Gold Mine 0025 <gen> to damage circular area after 0.00 seconds of radius 550.00 at (Center of Spawn <gen>), dealing 1000000000.00 damage of attack type Spells and damage type Normal

or whatever just ignore it :/
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top