User avatar
teufel0331
Sergeant
Posts: 78
Joined: Mon Aug 27, 2007 4:40 pm
Location: nyc

Add/subtract value to existing structure with event?

Sun Oct 01, 2023 5:09 am

How do I use an event to buff an existing structure? Say, an existing deport or fort at level 2 - how do I increase it to level 4? Conversely, how would I reduce the value of a level 3 fort to level 1? This only works if it doesn't already exist:

SelectFaction = $X
SelectRegion = $X

CreateStruc
SetType = $Depot
SetLevel = 4
SetName = Depot
Apply

Thank you!

User avatar
Bohémond
Posts: 2799
Joined: Wed May 14, 2008 8:47 pm

Re: Add/subtract value to existing structure with event?

Sun Oct 01, 2023 2:29 pm

Hello

You cannot increase/decrease struture level with a single script command.
You will need to destroy the existing structure first and create a new one with the intended level.

Regards

Return to “Modding AGE engine games”

Who is online

Users browsing this forum: No registered users and 12 guests