Someone with suggestions or ideas on, if and how it was possible to make a script that randomize the amount of garrison units (mostly Rebells) in the beginning of a new campaign? :hmmm:
Someone with suggestions or ideas on, if and how it was possible to make a script that randomize the amount of garrison units (mostly Rebells) in the beginning of a new campaign? :hmmm:
Last edited by Userpro; September 11, 2008 at 10:10 PM.
Visit our TWC M2TW-Kingdoms Hosted Mods Forum for...Proudly Sega & Steam Boycotter since ETW! See why here or this petition
!!! RAE Development stopped --- read last Statement here !!!
M2TW-Kingdoms Mod Creator REDEO AD EXORDIUM ( RAE )
Progress: 95% internal final beta release - 85% official release
RAE TWC-Wiki Eagle Standard interview ... RAE.net Homepage ... RAE TWZ-Germany
Sorry for bad english here, there and in my tutorials > advanced horde invasion & hide/unhide stratmap-ui & Beginners modding
Sure, thats not hard at all, just long. Use the generate_random_counter command if you are using Kingdoms, use Alpacas fallthrough method if you are using M2. Both methods can be seen in this thread.
Do a FactionTurnStart FactionIsLocal, create an if statement that includes the random selector and various armies for each settlement you want this to happen in.
if you have kinhgdoms follow the british isles campaign script Edward crusade part this make use of randomized numbers.
edit: to late i have been beat here.
Thanks to both. The thread linked from GrnEyedDvl i remember i've read in the past. But i'm not beeing able to find it anymore with the search function.
Seems to be simple to scripting this. Yes, there are many lines to write, but the most are copy & paste.
Wouw, i didn't know that.if you have kinhgdoms follow the british isles campaign script Edward crusade part this make use of randomized numbers.
Last edited by Userpro; September 08, 2008 at 06:00 PM.
Visit our TWC M2TW-Kingdoms Hosted Mods Forum for...Proudly Sega & Steam Boycotter since ETW! See why here or this petition
!!! RAE Development stopped --- read last Statement here !!!
M2TW-Kingdoms Mod Creator REDEO AD EXORDIUM ( RAE )
Progress: 95% internal final beta release - 85% official release
RAE TWC-Wiki Eagle Standard interview ... RAE.net Homepage ... RAE TWZ-Germany
Sorry for bad english here, there and in my tutorials > advanced horde invasion & hide/unhide stratmap-ui & Beginners modding
![]()
Please can anybody confirm (or not) that the command spawn_army not accept settlements coordinates? Even with the correct settlement coordinates, they spawn only one square near a settlement. In the example below they spawn on x188,y261!
How can i activate a spoiler alert box here???
EDIT: Okay i want explain me better (with my bad english). I hoped that with the command "spawn_army" i could not only randomize the unit amount of a garrison, but also randomize the faction owner of a settlement.
To randomize the unit amount of a garrison the "create_unit London...." command work fine!
But what about randomizing settlement ownership?
Last edited by Userpro; September 11, 2008 at 10:08 PM.
Visit our TWC M2TW-Kingdoms Hosted Mods Forum for...Proudly Sega & Steam Boycotter since ETW! See why here or this petition
!!! RAE Development stopped --- read last Statement here !!!
M2TW-Kingdoms Mod Creator REDEO AD EXORDIUM ( RAE )
Progress: 95% internal final beta release - 85% official release
RAE TWC-Wiki Eagle Standard interview ... RAE.net Homepage ... RAE TWZ-Germany
Sorry for bad english here, there and in my tutorials > advanced horde invasion & hide/unhide stratmap-ui & Beginners modding
To use the spoiler type:
[spoiler]This is the content of the spoiler[/spoiler]
And it will look like this:
Spoiler Alert, click show to read:
You have to use the create_unit to place a unit inside a city, like this:
You cannot use anything like this to determine the settlement owner. That is set in descr_strat.Code:create_unit London, Welsh Spearmen Mercs, num 2, exp 0, arm 0, wep 0
Thanks for the spoiler tutorial!
Yes, i've found that out, too.You have to use the create_unit to place a unit inside a city, like this:
But can you realy confirm, that there is no way to change settlement ownership via script or randomize it in the descr_strat?
Last edited by Userpro; September 10, 2008 at 02:12 AM.
Visit our TWC M2TW-Kingdoms Hosted Mods Forum for...Proudly Sega & Steam Boycotter since ETW! See why here or this petition
!!! RAE Development stopped --- read last Statement here !!!
M2TW-Kingdoms Mod Creator REDEO AD EXORDIUM ( RAE )
Progress: 95% internal final beta release - 85% official release
RAE TWC-Wiki Eagle Standard interview ... RAE.net Homepage ... RAE TWZ-Germany
Sorry for bad english here, there and in my tutorials > advanced horde invasion & hide/unhide stratmap-ui & Beginners modding
The only idea i have at the moment is to assign a settlement as usual in the descr_strat without a garrison. Then via script randomizing how many garrison units to give to the owner, or giving them none, and placing another factions army near them, to take the empty settlement in the next turn.
What you think about this solution?
Example when assigned London as rebel settlement in descr_strat:
Spoiler Alert, click show to read:
Last edited by Userpro; September 10, 2008 at 12:56 AM.
Visit our TWC M2TW-Kingdoms Hosted Mods Forum for...Proudly Sega & Steam Boycotter since ETW! See why here or this petition
!!! RAE Development stopped --- read last Statement here !!!
M2TW-Kingdoms Mod Creator REDEO AD EXORDIUM ( RAE )
Progress: 95% internal final beta release - 85% official release
RAE TWC-Wiki Eagle Standard interview ... RAE.net Homepage ... RAE TWZ-Germany
Sorry for bad english here, there and in my tutorials > advanced horde invasion & hide/unhide stratmap-ui & Beginners modding
Maybe. Use the siege command to tell them to attack.
Wouw, this work perfectly!Great idea!!! +rep
This was the start for the first (semi-)randomized campaign map!!! You know????![]()
Last edited by Userpro; September 10, 2008 at 02:13 AM.
Visit our TWC M2TW-Kingdoms Hosted Mods Forum for...Proudly Sega & Steam Boycotter since ETW! See why here or this petition
!!! RAE Development stopped --- read last Statement here !!!
M2TW-Kingdoms Mod Creator REDEO AD EXORDIUM ( RAE )
Progress: 95% internal final beta release - 85% official release
RAE TWC-Wiki Eagle Standard interview ... RAE.net Homepage ... RAE TWZ-Germany
Sorry for bad english here, there and in my tutorials > advanced horde invasion & hide/unhide stratmap-ui & Beginners modding
Create_unit working fine, but only to spawn as garrison in a friendly settlement. spawn_army (even on enemy settlement coord. because thy spawn adjacment the settlement) with a following siege command, is it the proper and only way (from what i know) to conquer a ungarrised enemy settlement at the start of a campaign.
Last edited by Userpro; September 10, 2008 at 05:02 PM.
Visit our TWC M2TW-Kingdoms Hosted Mods Forum for...Proudly Sega & Steam Boycotter since ETW! See why here or this petition
!!! RAE Development stopped --- read last Statement here !!!
M2TW-Kingdoms Mod Creator REDEO AD EXORDIUM ( RAE )
Progress: 95% internal final beta release - 85% official release
RAE TWC-Wiki Eagle Standard interview ... RAE.net Homepage ... RAE TWZ-Germany
Sorry for bad english here, there and in my tutorials > advanced horde invasion & hide/unhide stratmap-ui & Beginners modding
Last edited by Userpro; September 10, 2008 at 05:03 PM.
Visit our TWC M2TW-Kingdoms Hosted Mods Forum for...Proudly Sega & Steam Boycotter since ETW! See why here or this petition
!!! RAE Development stopped --- read last Statement here !!!
M2TW-Kingdoms Mod Creator REDEO AD EXORDIUM ( RAE )
Progress: 95% internal final beta release - 85% official release
RAE TWC-Wiki Eagle Standard interview ... RAE.net Homepage ... RAE TWZ-Germany
Sorry for bad english here, there and in my tutorials > advanced horde invasion & hide/unhide stratmap-ui & Beginners modding
so your spawned army is not showing inside the settlement?
No, it was only adjacent to the settlement. But with the following siege command it's inside, and the new ownership of settlement.
Last edited by Userpro; September 10, 2008 at 02:25 PM.
Visit our TWC M2TW-Kingdoms Hosted Mods Forum for...Proudly Sega & Steam Boycotter since ETW! See why here or this petition
!!! RAE Development stopped --- read last Statement here !!!
M2TW-Kingdoms Mod Creator REDEO AD EXORDIUM ( RAE )
Progress: 95% internal final beta release - 85% official release
RAE TWC-Wiki Eagle Standard interview ... RAE.net Homepage ... RAE TWZ-Germany
Sorry for bad english here, there and in my tutorials > advanced horde invasion & hide/unhide stratmap-ui & Beginners modding
spawn_army into coordinates of an enemy settlement, caused that they spawn adjacement to the settlement.have you checked for the correct X and Y?
Visit our TWC M2TW-Kingdoms Hosted Mods Forum for...Proudly Sega & Steam Boycotter since ETW! See why here or this petition
!!! RAE Development stopped --- read last Statement here !!!
M2TW-Kingdoms Mod Creator REDEO AD EXORDIUM ( RAE )
Progress: 95% internal final beta release - 85% official release
RAE TWC-Wiki Eagle Standard interview ... RAE.net Homepage ... RAE TWZ-Germany
Sorry for bad english here, there and in my tutorials > advanced horde invasion & hide/unhide stratmap-ui & Beginners modding