Upgrading Units -1 reply

Please wait...

molloyjh

I don't spend enough time here

50 XP

1st January 2007

0 Uploads

21 Posts

0 Threads

#1 6 years ago

Hi folks, I'm trying to set up an option to upgrade units, e.g. I start off with R-22 Spearheads with the option to upgrade to A-Wings instead of the R-22s. However I'm not getting it to work at all. The upgrade option itself isn't even appearing though. I added a SpaceUnit called RZ-1_A-wing_Research (and another called RZ-1_A-wing_MKII_Research for the next available upgrade) and entered the following code into the STORY_SANDBOX files for GC: STORY_TRIGGERBUILDABLE_UNITRZ-1_A-wing_ResearchUniversal_Story_StartSTORY_CONSTRUCTRZ-1_A-wing_Research1FILTER_FRIENDLY_ONLYBUILDABLE_UNITRZ-1_A-wing_MKII_ResearchUnlock_A-wing_ResearchSTORY_TRIGGERBUILDABLE_UNITA_Wing_SquadronR22_SquadronResearch_A-wingSTORY_TRIGGERREMOVE_UNITRZ-1_A-wing_ResearchUpgrade_A-wing My SpaceUnit is as follows: TEXT_UPGRADE_RS_R22TEXT_ENCYCLOPEDIA_CLASS_UNITTEXT_UPGRADE_TOOLTIP_RS_R22i_button_a_wing.tgaUpgrade1020020YesYes11DUMMY_STARSHIPRHD_Upgrade_ProgressRHD_Upgrade_CanceledRHD_Upgrade_Complete Anyone got any ideas why this isn't working? :confused: Thanks, John.




Guest

I didn't make it!

0 XP

 
#2 6 years ago

I think the following line, Yes Build_Initially_Locked> tells the game whether or not Artoo and Threepio need to 'steal' the technology. Change it to: No Build_Initially_Locked> and you should be fine.




Geroenimo

Dread thinks I'm a special person

50 XP

11th April 2010

0 Uploads

326 Posts

0 Threads

#3 6 years ago

You should use SidiousInvaders unit-variant code, it works the same but then correctly, so just change the parameters and the names and it locks/unlocks the units correctly.




Guest

I didn't make it!

0 XP

 
#4 6 years ago
Yes

Change it by

No

The code for R2D2 Slicer is different. It locks the upgrade on all the sides without chance of unlocks.

I have other suggestion.

4010

The required lines prevents that you see the unit on the correct command bar, if not you can not see space units on the ground units construction bar.




Geroenimo

Dread thinks I'm a special person

50 XP

11th April 2010

0 Uploads

326 Posts

0 Threads

#5 6 years ago

Hey nomada,

yea so in short sidiousinvaders unit code. I think your comment only makes the problem bigger, you're overcomplicating it as usual.

STORY_CONSTRUCTPaladin_Destroyer1BUILDABLE_UNITPaladin_Destroyer_2Paladin_DestroyerTrueUNIVERSAL_STORY_STARTSTORY_CONSTRUCTPaladin_Destroyer_21BUILDABLE_UNITPaladin_Destroyer_3Paladin_Destroyer_2TrueUNIVERSAL_STORY_STARTSTORY_CONSTRUCTPaladin_Destroyer_31BUILDABLE_UNITPaladin_DestroyerPaladin_Destroyer_3TrueUNIVERSAL_STORY_START

What I use to have 3 different versions of the Paladin destroyer in GC, just edit the names and you can use the code for unlocking one different version too, and will lock the last version and not unlock the first again. Problem solved ;)




molloyjh

I don't spend enough time here

50 XP

1st January 2007

0 Uploads

21 Posts

0 Threads

#6 6 years ago

Thanks for the help guys, but as usual these things come down to the simple human errors. I didn't put an Affiliation tag into the Research SpaceUnit. Once I put that in and set it to Rebel I was good to go. D'oh!!!! :lulz: