Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline crashdodgers  
#1 Posted : Tuesday, March 15, 2022 7:51:00 AM(UTC)
crashdodgers
Captain
Joined: 11/19/2013(UTC)
Posts: 67
United Kingdom
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

Sponsor
Offline AdrianeMapMaker  
#2 Posted : Wednesday, March 16, 2022 7:13:00 PM(UTC)
AdrianeMapMaker
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 3/8/2016(UTC)
Posts: 1,156
Philippines

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
A part of ZH worldbuilders map making community
https://discord.gg/tJ6zyGb

UserPostedImage





Offline UTD^Force  
#3 Posted : Tuesday, March 22, 2022 1:15:29 PM(UTC)
UTD^Force
Colonel
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 8/13/2013(UTC)
Posts: 817
Jordan
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
Similar Topics
Need help with a script. (Remove many objects from map after destrying them) (C&C Generals and Zero Hour)
by JP 8/11/2010 5:55:30 AM(UTC)
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.