CampGen Reference

From Wesnoth

Contents

Introduction

This might become a short tutorial on how to use CampGen.

Basic work flow

The main part of any campaign will be the various maps. These are best created in the map editor that comes with wesnoth, since the map editing capabilities of CampGen itself are and will be very inferior to it. You can run the map editor from within CampGen, to start it with a new empty map, or make changes to existing maps at any time, or you can also import existing maps.

After you have the maps, without CampGen, you would now need to start hacking together WML code, which is the scripting language understood by Wesnoth. The main task of CampGen is to output such WML code, from the data you fill in over its graphical user interface.

Campaign

Here you fill in basic campaign parameters.

Scenario

Here you fill in basic scenario parameters.

Side

Here you fill in basic parameters for a side.

Recruits

Which unit this side can recruit.

AI

Define AI parameters.

Story

Here you can design your story.

Markers

Place dots and crosses to mark pathes and battles, or any other markers you want.

Map

Units

Place additional units for any of the sides of the current scenario.

Items

Place items into the map.

MoveTo events

You can place 100 moveto events. Choose an event, then paint with it all the locations which should trigger it. Right click on any of the positions of a moveto event to open a dialog defining what should happen when it is triggered. By default, it will be triggered when any unit walks onto it, and a default message is displayed.

If you an event to trigger only for a specific person, or only for units of a specific side, use the Filter button, and fill in the name or side respectively. For more advanced uses, read below the section about filters.

To change the message, select it, then click the Edit button. You will be able to modify the text of the message, and various other settings. For more advanced things to do, see the section on events below.

Terrain

Modify terrain during the game. This is usually only used inside an event.

Map

Lets you modify the actual map data. Normally, you would do this in the map editor, which is much more convenient for larger changes.

Events (advanced)

For advanced uses, you can define a lot of things using the events system. To know what the various events do, you may have to consult the ReferenceWML. In the following, only some special notes related to CampGen will be given.

Filter

The Not tab is for things which may not be true for the event to trigger.

Store Unit

This allows you to modify a unit, for example, to make it stronger after drinking a potion. TODO: Example how to do it

Variables

In WML, variables can be used for most settings. You can use them as well in CampGen, but so far only by typing them into text fields.

Campaign publishing

A simple interface to the campaign server, it allows you to manage your finished campaigns.

WML Inspector

CampGen has a lot of bugs so far, so best to inspect the WML. You can do it in a text editor, or with the WML Inspector. Sometimes it is even possible to work around a bug by modifying the WML created by CampGen here.

This page was last modified 08:58, 25 February 2008.