 |
Forum Info
|
 |
Forum Members: 18,677
Total Threads: 8,798
Posts: 95,842
Administrators:
DeeZire, Redemption
There are currently 32 users online.
|
 |
Partner Links
|
 |
 |
Advertisements
|
 |
|
| Generals & Zero Hour Editing Discuss any modding related issues to do with Generals and Zero Hour here. |
10-04-2006, 12:32 PM
|
#1 (permalink)
|
|
Senior Member
Join Date: Apr 2003
Location: Derby, UK / Den Haag, NL
Posts: 590
|
Upgrade Prerequisites
Hey, I'm looking to have upgrades that require Science based prerequisites - any ideas on how to implement this?
|
|
|
10-04-2006, 02:55 PM
|
#2 (permalink)
|
|
Member
Join Date: Feb 2006
Location: Kidderminster
Posts: 72
|
Hmm, maybe have the relevant unit or structure create an object that requires this prerequisite. This object will not be visible, it will be deleted immediately, but not before it grants the specified upgrade. Another option is to put the upgrade on a relevant structure that would instead have this prerequisite. Purchasing the upgrade could then trigger a CommandSetUpgrade somewhere, where a further upgrade can then be offered (particularly if it's an object upgrade). If you catch my drift? 
|
|
|
10-04-2006, 05:30 PM
|
#3 (permalink)
|
|
Senior Member
Join Date: Oct 2004
Location: Alaska (Hell Frozen Over)
Posts: 383
|
Try adding Options=NEED_SPECIAL_POWER_SCIENCE and Science=SCIENCE_YourScienceHere to your upgrade's CommandButton code.
|
|
|
10-05-2006, 08:54 AM
|
#4 (permalink)
|
|
Member
Join Date: Feb 2006
Location: Kidderminster
Posts: 72
|
That's interesting, I never even thought of trying that, but I probably will in future seeing how it works so well. My ideas should work too, but no point in even considering them now.
|
|
|
10-05-2006, 06:37 PM
|
#5 (permalink)
|
|
Senior Member
Join Date: Mar 2003
Location: Rep. of Ireland
Posts: 373
|
Yeah, the MOAB upgrade for the Daisy Cutter Bomb uses the method CommieDog highlighted.
|
|
|
10-05-2006, 10:33 PM
|
#6 (permalink)
|
|
Senior Member
Join Date: Oct 2004
Location: Alaska (Hell Frozen Over)
Posts: 383
|
Hey, that's where I got the idea. 
|
|
|
10-06-2006, 05:10 PM
|
#7 (permalink)
|
|
Senior Member
Join Date: Jan 2004
Location: London, UK
Posts: 390
|
is there a way to get an upgrade to have a object as a prerequest?
I need it for one of my mod, i got my BioGen with the Bio-Matter upgrade, but i only want you to be able to get this upgrade if you have a barracks pressent.
|
|
|
10-06-2006, 05:34 PM
|
#8 (permalink)
|
|
Senior Member
Join Date: Mar 2003
Location: Rep. of Ireland
Posts: 373
|
There is, sort of...
Use a GrantScienceUpdate I think it is, along with a GrantUpgradeCreate (to activate the science) on the object you need as a prerequisite to the upgrade, and have the upgrade require the Science that the object gives you.
Catch is, the upgrade will still be accessable after you lose or sell the prerequisite object.
|
|
|
10-06-2006, 05:54 PM
|
#9 (permalink)
|
|
Senior Member
Join Date: Jan 2004
Location: London, UK
Posts: 390
|
yeah, that's why i asked if it can be done with an object, 'cause i know you can't ungive a science.
|
|
|
10-06-2006, 09:00 PM
|
#10 (permalink)
|
|
Senior Member
Join Date: Apr 2003
Location: Derby, UK / Den Haag, NL
Posts: 590
|
Quote:
Originally Posted by CommieDog";p="
Try adding Options=NEED_SPECIAL_POWER_SCIENCE and Science=SCIENCE_YourScienceHere to your upgrade's CommandButton code.
|
No Dice. I fear that may be a ZH Exclusive.
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -4. The time now is 09:34 PM.
|