HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Heeeelp Meee

02-18-2004, 11:27 PM#1
demonicbaboon2
i have a question. No doubt it will be very obvious for you veterans but how can i make it so that you win when an opponents main building is destroyed ( well all 3 of the opponents main base buildings). because for whatever reason when i execute the map i win automatically.

plz help, thxes
02-18-2004, 11:28 PM#2
volatile
I think you have to disable melee initialization, and set up a trigger that say this

NE Wins
Events
Unit - A unit Dies
Conditions
(Dying unit) Equal to Necropolis 0005 <gen>
Actions
Game - Victory Player 2 (Blue) (Show dialogs, Show scores)
Game - Victory Player 3 (Teal) (Show dialogs, Show scores)
Game - Victory Player 4 (Purple) (Show dialogs, Show scores)
Game - Victory Player 5 (Yellow) (Show dialogs, Show scores)
Game - Victory Player 6 (Orange) (Show dialogs, Show scores)
Game - Defeat Player 8 (Pink) with the message: Defeat!
Game - Defeat Player 9 (Gray) with the message: Defeat!
Game - Defeat Player 10 (Light Blue) with the message: Defeat!
Game - Defeat Player 11 (Dark Green) with the message: Defeat!
Game - Defeat Player 12 (Brown) with the message: Defeat!
02-18-2004, 11:30 PM#3
Aznwhore
go to triggers and disable the map initialization...see the check box on top? uncheck them 2...
then for win afta building is destroyed:
use the event: "whatever player" commands "0" "whatever building"
and action: "victory for whatever player"

im not really good at wc triggers but this is probably the only thing i no
02-18-2004, 11:35 PM#4
LegolasArcher
Events:
A Unit Dies

Conditions:
Dying unit is equal to <building>

Actions:
Defeat Player (owner of (dying unit))
02-18-2004, 11:59 PM#5
RaeVanMorlock
Code:
Define:
    defeated_player    Player
    killing_player     Player
    enemy_count        Integer

Main Building Death
    Events
        Unit - A unit Dies
    Conditions
        (Unit-type of (Dying unit)) Equal to Main Building
    Actions
        Set defeated_player = (Owner of (Dying unit))
        Set killing_player = (Owner of (Killing unit))
        Unit Group - Pick every unit in (Units in (Playable map area) owned by (defeat_player) and do (Actions)
            Loop - Actions
                Unit - Explode (Picked unit)
        Game - Defeat (defeat_player) with the message: Defeat!

        -------- Victory? --------
        Set enemy_count = 0
        Player Group - Pick every player in (All enemies of killing_player) and do (Actions)
            Loop - Actions
                Set enemy_count = (enemy_count + 1)
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                enemy_count Equal to 0
            Then - Actions
                Player Group - Pick every player in (All allies of killing_player) and do (Actions)
                    Loop - Actions
                        Game - Victory (Picked player) (Show dialogs, Show scores)
            Else - Actions
02-19-2004, 03:34 AM#6
demonicbaboon2
ok thanks a ton, so do i just copy this into the trigger description?


also kind of a stupid question but do any of you know any middle-easternish ancient hero? ie suleiman or genghis kahn

ok and i deleted the melee thing thanks didnt notice that ^_^
02-19-2004, 11:24 PM#7
demonicbaboon2
actually 2 more things then i promise that im done,

1.) how do i set the units so that when you kill an enemy unit you get experience and gold.


also....... i cant remember i will edit this and put it in when i remember
02-19-2004, 11:42 PM#8
Aznwhore
eziest way is making the enemies creeps...
i don't think there is another way...
02-20-2004, 11:00 PM#9
demonicbaboon2
ok... is there a way to set it so that you can have creeps give levels past level 5 ?
02-20-2004, 11:01 PM#10
Aznwhore
yeah, go to gameplay constants
02-23-2004, 11:24 PM#11
demonicbaboon2
ok thanks, i got that configured ( victory n stuff )

but do i have to go through and reconfigure all the troops so they are creeps?

also, damnit i cant remember the second thing :(