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 15 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 01-01-2005, 04:43 PM   #1 (permalink)
Junior Member
 
Join Date: Dec 2004
Posts: 2
Default Conditional Prerequisites

Is it possible for the prereq of a building to be one of two things. As in, if to build a supply depot I could have a power plant or a barracks. Thanks.
ekublood is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-01-2005, 05:31 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

Yep

Code:
Prerequisites
Object = Building1 Building2 Building3
End
CodeCat is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-02-2005, 01:29 AM   #3 (permalink)
Junior Member
 
Join Date: Dec 2004
Posts: 2
Default

That worked good. Thank you ImmoMan
ekublood is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-02-2005, 06:07 AM   #4 (permalink)
Senior Member
 
Join Date: Jul 2004
Posts: 605
Default

So what do you do when you want both the powerplant and the barracks?
DarkSideDave is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-02-2005, 06:16 AM   #5 (permalink)
Senior Member
 
Join Date: Aug 2004
Location: St. Petersburg, FL
Posts: 272
Default

Prerequisites
Object = AmericaPowerPlant AmericaBarracks
End
or...
Prerequisites
Object = ChinaPowerPlant ChinaBarracks
End
Yuki Kiba Dakatsu is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-02-2005, 07:03 AM   #6 (permalink)
Senior Member
 
Join Date: Jul 2004
Posts: 605
Default

Kitsune: thats what the guy above just said, but it tells the game engine to choose EITHER to them

I'm wondering what you do when you want BOTH to be present as the prerequisites
DarkSideDave is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-02-2005, 08:50 AM   #7 (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

Ok here's a short prerequisite tutorial:

Code:
Object = building1
Means you need building1 to build it. Pretty obvious right?

Code:
Object = building1 building2
Means you need either building1 or building2 to build it.

Code:
Object = building1
Object = building2
Means you need both building1 and building2 to build it.

Code:
Object = building1 building2
Object = building3
Means you need building3, and either building1 or building2 to build.

Code:
Object = building1 building2
Object = building3 building4
Means you need one of building1 or building2, and one of building3 or building4 to build.

If anyone here sees the similarity with booleans...
First one is just a straight
Code:
if (building1)
Second one is
Code:
if (building1 or building2)
Third one is
Code:
if (building1 and building2)
Fourth is
Code:
if ( (building1 or building2) and building3)
Fifth is
Code:
if ( (building1 or building2) and (building3 or building4) )
Ok, I hope that's everything cleared up.
CodeCat is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-02-2005, 08:52 AM   #8 (permalink)
Senior Member
 
Join Date: Jul 2004
Posts: 605
Default

Danke
DarkSideDave is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-02-2005, 09:00 AM   #9 (permalink)
Senior Member
 
Join Date: Feb 2004
Location: China
Posts: 356
Default

Prerequisites
Object = <building 1>
Object = <building 2>
Object = <some science>
End
coolfile is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-02-2005, 09:13 AM   #10 (permalink)
Senior Member
 
Join Date: Aug 2003
Location: the Netherlands
Posts: 228
Send a message via ICQ to DeathAngel Send a message via MSN to DeathAngel
Default

you mean SCIENCE = <some science>
DeathAngel 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
Upgrade Prerequisites Waraddict Generals & Zero Hour Editing 5 12-10-2004 04:36 PM
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 03:07 AM.


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