logo   login
right
Home Forums Downloads Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Forum Info
Forum Members: 18,677
Total Threads: 8,798
Posts: 95,842

Administrators:
DeeZire, Redemption

There are currently 32 users online.
Partner Links

Free Credit Repair

Learn the Ticket Broker Secrets
Advertisements


Generals & Zero Hour Editing Discuss any modding related issues to do with Generals and Zero Hour here.

Reply
 
LinkBack Thread Tools
Old 10-04-2006, 12:32 PM   #1 (permalink)
Senior Member
 
Join Date: Apr 2003
Location: Derby, UK / Den Haag, NL
Posts: 590
Default Upgrade Prerequisites

Hey, I'm looking to have upgrades that require Science based prerequisites - any ideas on how to implement this?
Ambershee is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-04-2006, 02:55 PM   #2 (permalink)
Member
 
Join Date: Feb 2006
Location: Kidderminster
Posts: 72
Default

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?
Mere_Mortal is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-04-2006, 05:30 PM   #3 (permalink)
Senior Member
 
CommieDog's Avatar
 
Join Date: Oct 2004
Location: Alaska (Hell Frozen Over)
Posts: 383
Default

Try adding Options=NEED_SPECIAL_POWER_SCIENCE and Science=SCIENCE_YourScienceHere to your upgrade's CommandButton code.
CommieDog is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-05-2006, 08:54 AM   #4 (permalink)
Member
 
Join Date: Feb 2006
Location: Kidderminster
Posts: 72
Default

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.
Mere_Mortal is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-05-2006, 06:37 PM   #5 (permalink)
Senior Member
 
Join Date: Mar 2003
Location: Rep. of Ireland
Posts: 373
Default

Yeah, the MOAB upgrade for the Daisy Cutter Bomb uses the method CommieDog highlighted.
Waraddict is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-05-2006, 10:33 PM   #6 (permalink)
Senior Member
 
CommieDog's Avatar
 
Join Date: Oct 2004
Location: Alaska (Hell Frozen Over)
Posts: 383
Default

Hey, that's where I got the idea.
CommieDog is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-06-2006, 05:10 PM   #7 (permalink)
Senior Member
 
Join Date: Jan 2004
Location: London, UK
Posts: 390
Send a message via AIM to Slye_Fox Send a message via MSN to Slye_Fox Send a message via Yahoo to Slye_Fox
Default

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.
Slye_Fox is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-06-2006, 05:34 PM   #8 (permalink)
Senior Member
 
Join Date: Mar 2003
Location: Rep. of Ireland
Posts: 373
Default

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.
Waraddict is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-06-2006, 05:54 PM   #9 (permalink)
Senior Member
 
Join Date: Jan 2004
Location: London, UK
Posts: 390
Send a message via AIM to Slye_Fox Send a message via MSN to Slye_Fox Send a message via Yahoo to Slye_Fox
Default

yeah, that's why i asked if it can be done with an object, 'cause i know you can't ungive a science.
Slye_Fox is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-06-2006, 09:00 PM   #10 (permalink)
Senior Member
 
Join Date: Apr 2003
Location: Derby, UK / Den Haag, NL
Posts: 590
Default

Quote:
Originally Posted by CommieDog";p=&quot View Post
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.
Ambershee is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Upgrades as Prerequisites? DaLump Generals & Zero Hour Editing 15 03-29-2005 06:24 AM
Conditional Prerequisites ekublood Generals & Zero Hour Editing 11 01-02-2005 02:11 PM
Upgrade Prerequisites Waraddict Generals & Zero Hour Editing 5 12-10-2004 04:36 PM
OBJECT UPGRADE VS PLAYER UPGRADE Hostile Generals & Zero Hour Editing 2 05-24-2004 05:58 AM
Upgrades as Prerequisites? old_man_funk Generals & Zero Hour Editing 2 07-25-2003 11:53 AM


All times are GMT -4. The time now is 09:34 PM.


Design By: Miner Skinz.com
Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.