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

Forum Info
Forum Members: 18,679
Total Threads: 8,804
Posts: 95,885

Administrators:
DeeZire, Redemption

There are currently 17 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 12-09-2004, 07:18 PM   #1 (permalink)
Senior Member
 
Join Date: Mar 2003
Location: Rep. of Ireland
Posts: 373
Default Upgrade Prerequisites

Right, this is essential to finalising my Construction yard code, I need to make certain upgrades only available while a certain building exists, given that the MOAB upgrade for the Daisy Cutter is the closest thing to it, can I make a newly built structure grant a science while it only exists codewise (i.e, no scripts) ?
Waraddict is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-09-2004, 07:25 PM   #2 (permalink)
Senior Member
 
Join Date: May 2003
Location: Eindhoven, Netherlands
Posts: 2,278
Send a message via ICQ to CodeCat Send a message via MSN to CodeCat
Default

Well there's a GrantScienceUpgrade, and there's GrantUpgradeCreate. The only problem is that I'm not sure whether the science will disappear when the object is destroyed. I'm guessing not.
CodeCat is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-10-2004, 01:00 PM   #3 (permalink)
Senior Member
 
Join Date: Mar 2003
Location: Rep. of Ireland
Posts: 373
Default

hmm, seems messy too to do it through Sciences...

It came to me, another way to 'disable' an upgrade is through conflicting upgrades... hmm

You see, basically I have managed to code the old C&C building placement behavior with the help of other coders, mainly ravage.

What I have left to do, is replicate some method of prepurchasing a structure before placing it, the idea is that the Cons yard has several 'Drones' to build, each of these drones are a prerequisite to certain buildings, you build one and then you can use the placement icon of that building (the Drone will be destroyed then by a weapon from that building).

The problem is, you can select any upgrade and this confuses the player about the prerequisites as you can pay for a structure yet not place it as you have not built its building prerequisites.

I suppose I am lucky to get this far, If I can implement a cancel structure button it shoudln't be too bad.
Waraddict is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-10-2004, 02:26 PM   #4 (permalink)
Member
 
Join Date: Mar 2003
Location: Berlin, Germany
Posts: 69
Send a message via ICQ to Chriz
Default

look at the buttons for capturing buildings, they are only useable after a upgrade...

CommandButton Command_AmericaRangerCaptureBuilding
Options = NEED_UPGRADE
Upgrade = Upgrade_InfantryCaptureBuilding
End

:squint:
Chriz is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-10-2004, 03:34 PM   #5 (permalink)
Senior Member
 
Join Date: Mar 2003
Location: Rep. of Ireland
Posts: 373
Default

That is interesting, however the upgrade specified is defined in an accompaning module, so eh, that would require some thinking...
Waraddict is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-10-2004, 04:36 PM   #6 (permalink)
Senior Member
 
Join Date: May 2004
Posts: 229
Default

I think that it would not work cause if you purchase an upgrade they need to be an Player_upgrade cause if they are a Object_upgrade the drones cannot read them ... (you will need Player_Upgrades!)
but you cannot delete Player_ugrades! so the code works only for one buildingplacement!only object_upgrades can be deleted! This i big "bug" in generals.... if this bug would be not in the game i would have an completely working code for the good ol C&C building placement...
juLLe 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
Upgrade Prerequisites Ambershee Generals & Zero Hour Editing 13 10-07-2006 01:39 PM
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
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 02:53 AM.


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