Posted by: crashdodgers - Tuesday, March 15, 2022 8:51:00 AM
Hi guys, right what I m trying to do and failing is to convert the script from Zero Hour, USA 5, so that I can use it in Zero Hour, China and GLA 5.
The script that I am trying to conver is the one that transfers generals power from a captured enemy base to me, but I am having deffulculty with work out how to do with the southern USA and the captured China base.
Now I have been able to write a script in order to capture the USA southern base in GLA 5, that works fine, but the transfer of generals powers is not working.
Posted by: AdrianeMapMaker - Wednesday, March 16, 2022 8:13:00 PM
You require the use of map.ini or mod if you want to transfer the generals power to a different faction...
Generally all faction special powers are for their own faction its NOT made to be transferred at all except for emergency repair which all faction have
Posted by: UTD^Force - Tuesday, March 22, 2022 2:15:29 PM
You can do that with two scripts, but with these scripts you can use the science from the transferred base.
What they did in USA 05 was transfer the GLA command center to the local player (you) then granted the local player the sciences of rebel ambush as seen in the scripts below:
[code=plain]
Script #1
*** IF ***
Timer 'Transfer' has expired.
*** THEN ***
All assets of Player 'GLABase' are transferred to Player 'ThePlayer'
Set Flag named 'GiveGLA' to TRUE
Script #2
*** IF ***
Flag named 'GiveGLA' IS TRUE
*** THEN ***
Player 'ThePlayer' is granted Science 'SCIENCE_RebelAmbush1'.
[/code]
You can then use the rebel ambush science from the transferred GLA command center. You can also edit the commandset from a map.ini to add it to shortcuts.