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

Forum Info
Forum Members: 18,581
Total Threads: 8,669
Posts: 94,547

Administrators:
DeeZire, Redemption

There are currently 45 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 02-21-2005, 07:05 PM   #1 (permalink)
Junior Member
 
Join Date: Feb 2005
Posts: 24
Default Tech Buildings Commandset

I'd like to implement a feature that enables you to purchase units and upgrades at the tech buildings on the map (Oil derreck & Refinery) but I want the upgrades to be unique to each side. Is it possible to give each building a different commandset depending who has captured it? I think I may have read a thread about something like this a while ago but I can't find it.

Any help would be useful as this is the only thing tripping me up.
Eagle4ever is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-21-2005, 08:08 PM   #2 (permalink)
Senior Member
 
CommieDog's Avatar
 
Join Date: Oct 2004
Location: Alaska (Hell Frozen Over)
Posts: 370
Default

You could try giving each side an upgrade granted at the beginning and have those upgrades trigger different command sets. I'm not sure if it would work, though.
CommieDog is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-21-2005, 08:36 PM   #3 (permalink)
Senior Member
 
Join Date: Jul 2004
Location: London, UK
Posts: 376
Send a message via MSN to AntiSocialKindaGuy
Default

AFAIK you can only have one upgraded commandset, but I could be wrong. Although I'm not convinced that would work anyway; I don't think there is a trigger that is based on a building changing to a specific side.

In any case, another solution is to give the building a variety of buttons ( where some are greyed out depending on the faction ), or have buttons produce different effects depending on the faction.
AntiSocialKindaGuy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-22-2005, 01:55 AM   #4 (permalink)
Senior Member
 
Join Date: Feb 2003
Location: USA
Posts: 853
Send a message via AIM to mastermind2003 Send a message via MSN to mastermind2003
Default

If you give the units a side specific science for a prerequisite, the ones not for your side will be greyed out. That's the easy solution. I think there may be a more complex solution, but that is what I'd recommend.
mastermind2003 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-22-2005, 03:11 AM   #5 (permalink)
Junior Member
 
Join Date: Feb 2005
Posts: 24
Default

That's it. AntiSocialKindaGuy & Mastermind you're both right. If I make 3 different buttons in the commandset for the same upgrade and each one requires a side specific Science, that'll do it. Now that I think about it, I don't need it to be specific to each general, just to each country. Thanks, I'll get on it straight away.
Eagle4ever is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-22-2005, 11:43 AM   #6 (permalink)
Senior Member
 
Join Date: Jan 2004
Location: Elgin, Scotland, UK
Posts: 168
Send a message via ICQ to Alphathon Send a message via AIM to Alphathon Send a message via MSN to Alphathon Send a message via Yahoo to Alphathon
Default

There is a better way. Just make it so every 0.5 seconds or so, a side specific OCL is created (like in the reinforcement pad to deploy the planes with tanks), which dies after 0.5 seconds (or whatever). This is then the prerequisite for building the new units etc.
Alphathon is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-22-2005, 12:20 PM   #7 (permalink)
Senior Member
 
Join Date: Feb 2003
Location: USA
Posts: 853
Send a message via AIM to mastermind2003 Send a message via MSN to mastermind2003
Default

Sorry, but I think the side specific science works much better than that, and is much simpler.
mastermind2003 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-22-2005, 01:15 PM   #8 (permalink)
Junior Member
 
Join Date: Feb 2005
Posts: 24
Default

Quote:
Originally Posted by Alphathon";p=&quot View Post
There is a better way. Just make it so every 0.5 seconds or so, a side specific OCL is created (like in the reinforcement pad to deploy the planes with tanks), which dies after 0.5 seconds (or whatever). This is then the prerequisite for building the new units etc.
No offense but that's just plain confusing. No I think the Science prereq is the way to go. Thanks for the input though. Maybe I can use it for something else.
Eagle4ever is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-22-2005, 02:39 PM   #9 (permalink)
Senior Member
 
Join Date: Jun 2004
Location: Earth-ish
Posts: 197
Default

If you have buttons for sciences then your limited to the amount of buttons... no problem if your also limited to ideas, but if you have a ton of units you want built your gonna run outo of room fast. So look at the Internet Center's commandset upgrade coding... add grantupgrade create to each command center and work from there
Cedar 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
Tech War Fortress, a new tech building SW & ROTR The_Hunter Generals & Zero Hour Editing 6 11-03-2005 10:30 PM
faction-specific tech buildings gluckol Generals & Zero Hour Editing 4 10-23-2005 07:56 AM
Building Tech Buildings (ex. Hospital)?? Mikeh316 Red Alert 2 & Yuri's Revenge Editing 8 06-04-2005 11:52 AM
Buildings and increased tech level ludl Red Alert 2 & Yuri's Revenge Editing 8 11-06-2003 02:15 PM
The AI won't capture tech buildings anymore... CodeCat Generals & Zero Hour Editing 1 10-03-2003 08:43 AM


All times are GMT -4. The time now is 06:16 PM.


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