User avatar
jastaV
AGEod Guard of Honor
Posts: 1159
Joined: Mon Apr 14, 2008 9:22 am

Changing Depot levels

Sat Nov 08, 2008 12:51 pm

At Scenario start I have A french level 1 depot in Nuremberg:

N13; Dépôt de Nuremberg; Depot; 1
N13; NULL; ChangeSupply; 250|125|0

Later during the campaign I want to change depol level and accumulated supply for that depot by an event.
Is then possible to act in the same way for adding new Groups?

NULL; NULL; Actions; NULL; NULL; NULL; NULL; NULL; NULL; NULL

N13; Dépôt de Nuremberg; Depot; 4; NULL; NULL; NULL; NULL; $Nuremberg; 0; 0

N13; NULL; ChangeSupply; 1000|500|0; NULL; NULL; NULL; NULL; $Nuremberg; NULL; NULL

Note Dépôt de Nuremberg already exist on map when changing its level and accumulated supply.

I noticed ChangeStruc comands are also available, although I id not catched a working example within NCP files.
Attachments

[The extension xls has been deactivated and can no longer be displayed.]

Ney: The army will not move!
Napoleon: The army will obey me!
Ney: The army will obey to its Generals’ orders!

[SIZE="1"]Fontainebleau, April 1814[/size]

User avatar
jastaV
AGEod Guard of Honor
Posts: 1159
Joined: Mon Apr 14, 2008 9:22 am

Sat Nov 08, 2008 1:48 pm

jastaV wrote:At Scenario start I have A french level 1 depot in Nuremberg:

N13; Dépôt de Nuremberg; Depot; 1
N13; NULL; ChangeSupply; 250|125|0

Later during the campaign I want to change depol level and accumulated supply for that depot by an event.
Is then possible to act in the same way for adding new Groups?

NULL; NULL; Actions; NULL; NULL; NULL; NULL; NULL; NULL; NULL

N13; Dépôt de Nuremberg; Depot; 4; NULL; NULL; NULL; NULL; $Nuremberg; 0; 0

N13; NULL; ChangeSupply; 1000|500|0; NULL; NULL; NULL; NULL; $Nuremberg; NULL; NULL

Note Dépôt de Nuremberg already exist on map when changing its level and accumulated supply.

I noticed ChangeStruc comands are also available, although I id not catched a working example within NCP files.


Okay: first way does not work!
I had an error notification.

Now I have chance to use ChangeStruc and ChangeStrucType

Any tip as regard?
Ney: The army will not move!

Napoleon: The army will obey me!

Ney: The army will obey to its Generals’ orders!



[SIZE="1"]Fontainebleau, April 1814[/size]

Lafrite
Posts: 847
Joined: Mon Nov 14, 2005 9:00 pm
Contact: Website

Sat Nov 08, 2008 2:09 pm

I don't know very well but ChangeStrucType convert a structure DefUID into another

User avatar
jastaV
AGEod Guard of Honor
Posts: 1159
Joined: Mon Apr 14, 2008 9:22 am

Sat Nov 08, 2008 2:35 pm

Lafrite wrote:I don't know very well but ChangeStrucType convert a structure DefUID into another


That's true!

I just tested ChangeStruc command and it does not work, (I have an error notification!), when a depot already exist in the region.
Indeed I need something to change depot level, so to increase or decrease it at will!
Ney: The army will not move!

Napoleon: The army will obey me!

Ney: The army will obey to its Generals’ orders!



[SIZE="1"]Fontainebleau, April 1814[/size]

Lafrite
Posts: 847
Joined: Mon Nov 14, 2005 9:00 pm
Contact: Website

Sat Nov 08, 2008 2:47 pm

Try to make a new depot in x:\Program Files\Napoleon's Campaigns\NCP\GameData\Structures

And use ChangeStrucType oldUID, yourUID

Warning, it's theorical, i don't know very well this section

User avatar
jastaV
AGEod Guard of Honor
Posts: 1159
Joined: Mon Apr 14, 2008 9:22 am

Sat Nov 08, 2008 3:25 pm

Lafrite wrote:Try to make a new depot in x:\Program Files\Napoleon's Campaigns\NCP\GameData\Structures

And use ChangeStrucType oldUID, yourUID

Warning, it's theorical, i don't know very well this section


Guess I have no need for creation of a new structure.
I just need to be able to change the depot level, (1-4) for depots existing on map at scenario start.
But I fear a dedicated command does not exist.

Example: Dépôt de Strasbourg, 2 level is to be changed to level 4,...or to level 0, (in this last example depot is removed)!
Ney: The army will not move!

Napoleon: The army will obey me!

Ney: The army will obey to its Generals’ orders!



[SIZE="1"]Fontainebleau, April 1814[/size]

User avatar
Pocus
Posts: 25673
Joined: Wed Oct 19, 2005 7:37 am
Location: Lyon (France)

Mon Nov 10, 2008 10:59 am

I'll work something on that, this is needed.
Image


Hofstadter's Law: "It always takes longer than you expect, even when you take into account Hofstadter's law."

User avatar
jastaV
AGEod Guard of Honor
Posts: 1159
Joined: Mon Apr 14, 2008 9:22 am

Mon Nov 10, 2008 11:37 am

Pocus wrote:I'll work something on that, this is needed.


Great!
I'll pass over the 1813 CG depot-network for now, with hope to see it available soon! :neener:
Ney: The army will not move!

Napoleon: The army will obey me!

Ney: The army will obey to its Generals’ orders!



[SIZE="1"]Fontainebleau, April 1814[/size]

User avatar
Pocus
Posts: 25673
Joined: Wed Oct 19, 2005 7:37 am
Location: Lyon (France)

Mon Nov 10, 2008 4:00 pm

Can be sooner that you think!
Image


Hofstadter's Law: "It always takes longer than you expect, even when you take into account Hofstadter's law."

Return to “Modding AGE engine games”

Who is online

Users browsing this forum: No registered users and 19 guests