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

DeeZire Online > Editing Community > Command and Conquer Editing > Generals & Zero Hour Editing » How to make the AI build units (dozer, aricraft etc.)

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

Reply
 
LinkBack Thread Tools
Old 12-23-2004, 07:54 PM   #1 (permalink)
Junior Member
 
Join Date: Dec 2004
Posts: 2
Default How to make the AI build units (dozer, aricraft etc.)

Hi all. I am new to modding. Basically I am trying to rewrite the whole US Air Force script.

So far I managed to create a power. And I've experimented tons of hours with the WorldBuilder, side by side with the manual.

But I still don't understand how to create units.
- How do I create a dozer from the default Command Center?
- How do I create a dozer from a specific command center if I have more then one?
- How do I create a plane from a specific airfield (after I created an airfield).

Etcetera. What is the logic please. I've tried to find it here with the "search" option but no success. If someone would like to take the time and explain the step-by-step process for unseasoned modders like me then please do. I really need some help on this.

Thank you for your time everybody.
- Val -
Valmont is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-24-2004, 12:42 PM   #2 (permalink)
Senior Member
 
Join Date: Jul 2004
Location: London, UK
Posts: 376
Send a message via MSN to AntiSocialKindaGuy
Default

I'm not sure exactly what you mean here. The topic title implies that you want the AI to do these things, but the thread implies you simply want to be able to do them.

While I have not looked at AI scripting before, the logic described in the thread is done using CommandButtons and CommandSets. If this is what you want, I can easily tell you how that works

If it's the AI you're after ... then I'll have to pass.
AntiSocialKindaGuy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-24-2004, 01:56 PM   #3 (permalink)
Junior Member
 
Join Date: Dec 2004
Posts: 2
Default

Hi AntiSocial! Thank you for your reply. Really I am so stuck and frustrated, I am so happy someone replies!

I don't feel confident with scripting at all so I'll explain it as best as I can (the english language is not my native language):

- I start up WorldBuilder.
- I go to "Edit -> Add Skirmish Players".
- Then "Edit -> Scripts... -> Import Scripts... -> choose SkirmishScripts.scb".
- I deleted every script in that script.

So from now on, the AI players are dumb.
Time to make them smart again so we can play against them on all the official maps.

- I choose to start with USA AirForceGeneral.
- I implement a basic script to get started:
Code:
*** IF ***
      800  is Less Than or Equal the number of credits possessed by Player '<This Player>'
    *AND*  Player '<This Player>' has Equal To  0  unit or structure of type 'AirF_AmericaPowerPlant'
*** THEN ***
  Build a building of type 'AirF_AmericaPowerPlant'
So far so good. I am sure I can instruct the AI to build the supplycenter and barracks as well.

But what do I need to do to make the AI driven general to make a 2nd Dozer at same time the 1st (default) Dozer is building the power?

Most likely, if I know how to build Dozers from a (specific) Command Center, I will know how to create fighters from a specific airfield as well!
Nevertheless I asked these questions explicitly because I might be surprised.

So in the end, I want to see this when I test the new SkirmishScripts.scb:
- I start up a skirmish or a multiplayer game.
- I choose USA AFG as my opponent.
- My opponent builds a Power with default (1st) Dozer.
- My opponent builds a 2nd Dozer.
- My opponent uses 2nd Dozer to build Barracks, because 1st dozer still builds power.

That's basically the scenario.

Merry Christmas sir
- Val -
Valmont is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-24-2004, 06:27 PM   #4 (permalink)
Senior Member
 
Join Date: Jul 2004
Location: London, UK
Posts: 376
Send a message via MSN to AntiSocialKindaGuy
Default

Gah.

I'm afraid, as I say, I haven't done scripting - so I can't really help. The best advice I can give is just to play with it as its the easiest way to learn coding in general. http://sdi.game-mod.net/ may be of use, but no doubt you have already seen it. I'm sure a scripting gawd will be around at some point to help though ^_^

There is an advanced skirmish script knocking around, I read about it on www.cncden.com on occasion, but I can't remember its name nor have I used it, but I hear its good for vanilla ZH. You could open that and see if it helps ( or just use it, if you get bored )

Oh, and a Merry Christmas to you too my good man, and welcome to the boards
AntiSocialKindaGuy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-24-2004, 06:58 PM   #5 (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

Mithril (of SDI) will be able to help you. He's the Supreme Commander of Scripts.
CodeCat 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
Dozer won't build new Structure ? adamstrange Generals & Zero Hour Editing 2 01-07-2008 05:06 PM
How do you make the AI build units you added [if possible] SmokeyDaBear Generals & Zero Hour Editing 4 06-26-2005 12:26 AM
how to make AI build more than 1 superweap? dwaynek Generals & Zero Hour Editing 7 10-08-2003 03:55 PM
Creating a new building problem, Dozer don't auto build... DPsygnet Generals & Zero Hour Editing 3 08-24-2003 06:44 PM
Dozer Build Button Expanding : Succes! ssanzing Generals & Zero Hour Editing 37 04-25-2003 08:08 PM


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


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