Recent Changes - Search:

Main.SideBar (edit)

PmWiki

WinningConditionHowTo

How to add a winning condition

Look into the handbook for more basic information about winning (lost) conditions and the editor. Here you can find the available Events.

The following list of instructions is probably obsolete, as the condition widget got redesigned completely.

  • Add an event matching rule with the "Add" button.
  • Change the event name from "AllUnitsDestroyed" to "UnitWithTypeDestroyed".
  • Set the "Unit Id" to the Id of a unit in your map (you can see the id in the Command Frame when you select a unit) this can also be a facility, e.g. the Command Bunker.
  • Change the Event name of the Condition to "PlayerLost" and remove the "Foobar" from Data1.
  • Now you need to add the Player Id for which player this event should apply. Unfortunately you cannot see this id in the Command Frame on the right or in the menu (http://bugs.kde.org/show_bug.cgi?id=92865)
  • To get the Player Id go to the "Debug" menu and select "Debug KGame...". Under "Debug Players" you can see the available player ids on the left, select them and find your player through "Player Name".
Edit - History - Print - Recent Changes - Search
Page last modified on August 29, 2005, at 23:07