crashdodgers
4 years ago
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.
Sponsor
AdrianeMapMaker
4 years ago
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
A part of ZH worldbuilders map making community
https://discord.gg/tJ6zyGb 

UserPostedImage




UTD^Force
4 years ago
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:


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'.


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.
A Muslim, ask me anything about Islam if you want
UTD^Force
Moderator and former map reviewer
Big fan of C&C Labs