HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

victory

04-05-2004, 06:37 PM#1
Stitch
ok how can i make it so when a players unit enters a specific region, he wins, maybe display a message and the "quit/continue game" screen comes up? thank you.
04-05-2004, 07:02 PM#2
[niro]
This is very very simple.

Event:
Unit enters region 001 (or whatever region)
Conditon:
Unit Type of(entering unit) equal to (unit) *SPECIFIC TYPE OF UNIT
OR
(entering unit) equal to (unit) *SPECIFIC UNIT
Action:
Player victory (show) dialogs (show) scores



that should give the player victory once the unit enters the region. If its a campaign with heros and you want to have the hero trigger the victory use the 2nd condition I showed.

Hope this helps.
04-05-2004, 08:47 PM#3
Stitch
Unit - A unit enters win <gen>
(Unit-type of (Triggering unit)) Equal to Racers
Game - Victory (Triggering player) (Show dialogs, Show scores)


that is what i found, originally had that and doesnt work for me.
i didnt see anything about
player victory (Show dialogs, Show scores)
04-05-2004, 10:23 PM#4
Prophecy
Change triggering unit to entering unit. The unit is entering a region, not triggering a region.

Untitled Trigger 001
Events
Unit - A unit enters Region 000 <gen>
Conditions
(Unit-type of (Entering unit)) Equal to Footman
Actions
Game - Victory Player 1 (Red) (Show dialogs, Show scores)


Try that instead, or if you already have the units in the game already you can do

Untitled Trigger 001
Events
Unit - A unit enters Region 000 <gen>
Conditions
(Entering unit) Equal to Knight 0000 <gen>
Actions
Game - Victory Player 1 (Red) (Show dialogs, Show scores)
Game - Defeat Player 2 (Blue) with the message: Defeat!

etc..
04-06-2004, 03:50 PM#5
Stitch
okay that was my fault, i didnt catch the unit enters regions/entering unit part. it works now, thank you very much