Captain Joined: 11/19/2013(UTC) Posts: 67 Location: On another plant Thanks: 12 times Was thanked: 4 time(s) in 3 post(s)
|
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. Edited by user Tuesday, March 15, 2022 7:52:11 AM(UTC)
| Reason: Not specified
|
|
|
|
General Joined: 3/8/2016(UTC) Posts: 1,156 Thanks: 312 times Was thanked: 185 time(s) in 149 post(s)
|
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 |
|
|
|
|
Colonel Joined: 8/13/2013(UTC) Posts: 817 Location: Middle east Thanks: 430 times Was thanked: 184 time(s) in 168 post(s)
|
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:
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. |
Proud Muslim
UTD^Force
Moderator and former map reviewer CnC Labs |
|
|
|
Users browsing this topic |
Guest
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.