Page 1 of 1

CreateStruc

Posted: Sun May 17, 2009 10:53 pm
by paw1776
Hello,

I am getting an error in my Event. Pretty sure it is CreateStruc as I did not understand:

CreateStruc
[INDENT]SetType = StructureAlias
SetLevel = StructureLevel
SetName = Name[/INDENT]

Here is my code:
See .jpg

Posted: Mon May 18, 2009 4:02 am
by Gray_Lensman
This one I can't help you on... It's brand new and I don't believe it's used at all in AACW. Maybe Pocus will help out if he notices this thread.

Posted: Mon May 18, 2009 12:23 pm
by lodilefty
Are you tryting to 'build' a city after the start of scenario?

Try same syntax as Fort or Depot from any scenario setup or event....

Posted: Tue May 19, 2009 6:16 am
by paw1776
Lodi,

I understand how I get a Structure_Stockade, Structure_Settlement, or Fort or Depot.

So I will try City and see if it works.

Thx!

Posted: Tue May 19, 2009 9:18 am
by Pocus
CreateStruc is there since BOA1, as there are structures since the origin of the engine :) just check a cities.inc and you'll see the syntax that CSVSplitter generated:

CreateStruc
SetType = $City
SetName = New York City
SetLevel = 20
Apply
CreateStruc
SetType = $Port
SetName = _genName
SetLevel = 20
Apply

(each line translates to a line in the XLS file... what is after = go in the param0 column)

As for your second question (in PM but I reply there so that everyone can benefit from it), you can change the level of a structure, but the cost in settlers is not integrated in the command, as for now the AGE engine is not geared toward a civ-like style of game -(this would be feasible easily if you had access to the VGN code :) ).

So you need to have an event checking in some regions of interest (the settlement locations...) if there is 4 settlers units (you can do a selection on the number of elements of a particular type). Then if the condition is met, you can change the level of the settlement with that

ChangeStrucLevel = <SelectionType Value>;<LevelChange>

if you want to select a 'settlement' then selection type can be by alias so use the literal value 'ByDefUID' and then the UID of the settlement as in the structures folder.

If not clear, Lodilefty got some explanations about that some days ago iirc.