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

Forum Info
Forum Members: 18,617
Total Threads: 8,723
Posts: 95,213

Administrators:
DeeZire, Redemption

There are currently 34 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 04-16-2003, 01:44 PM   #1 (permalink)
Junior Member
 
Join Date: Apr 2003
Location: USA
Posts: 13
Default AI scripting

I've encounter some problems getting units to do things like laser locking, evacuating when dying and such. Was wondering if anyone got it to work successfully.

My approach was to create a subroutine script which goes something like this.

USA Evacuate Damaged Humvee
*** IF ***
Unit '<This Object>' Health IS Less Than 20 percent.
*** THEN ***
Team '<This Team>' unload.
Team '<This Team>' begins hunting.

USA Laser Locking
*** IF ***
True.
*** THEN ***
Set Flag named 'USA Team is Building' to FALSE
Team '<This Team>' begins hunting using Ability 'Command_AmericaMissileDefenderLaserGuidedMissiles '.

Then under Generic Behaviour for the Team, I added 'USA Laser Locking'. The problem is that they do not work, I've even tried it on Behaviour, On Create, 'USA Laser Locking'.

Hope that someone can help.

Thanks in advance.
-seebo
seebo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-17-2003, 05:36 PM   #2 (permalink)
Junior Member
 
Join Date: Apr 2003
Location: USA
Posts: 13
Default

Bump. Surely there are scripters around too.
seebo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-17-2003, 05:43 PM   #3 (permalink)
Senior Member
 
Join Date: Jan 2003
Location: Santa Barbara
Posts: 107
Send a message via ICQ to Chronosfera Send a message via AIM to Chronosfera
Default

What team is your team?

If this is for skirmishes, I don't think you can use team like that unless you have your team already defined?
Chronosfera is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-18-2003, 03:56 AM   #4 (permalink)
Junior Member
 
Join Date: Apr 2003
Location: USA
Posts: 13
Default

It depends on which team called the script. Eg. If I have a team 'US Missile Defenders' which calls the script, 'This Team' would be 'US Missile Defenders'.
seebo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-18-2003, 05:09 AM   #5 (permalink)
Administrator
 
DeeZire's Avatar
 
Join Date: Dec 2002
Posts: 1,913
Send a message via ICQ to DeeZire
Default

Steer clear of Team scripts in multiplayer, they are notoriously unreliable as they were designed for single player missions.
__________________
DeeZire is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-18-2003, 06:25 AM   #6 (permalink)
Junior Member
 
Join Date: Apr 2003
Location: USA
Posts: 13
Default

Thanks for your advise. It comes as a disappointment though.
seebo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-18-2003, 09:44 PM   #7 (permalink)
Junior Member
 
Join Date: Dec 2002
Location: USA
Posts: 0
Default Re: AI scripting

Quote:
Originally Posted by seebo
I've encounter some problems getting units to do things like laser locking, evacuating when dying and such. Was wondering if anyone got it to work successfully.

My approach was to create a subroutine script which goes something like this.

USA Evacuate Damaged Humvee
*** IF ***
Unit '<This Object>' Health IS Less Than 20 percent.
*** THEN ***
Team '<This Team>' unload.
Team '<This Team>' begins hunting.

USA Laser Locking
*** IF ***
True.
*** THEN ***
Set Flag named 'USA Team is Building' to FALSE
Team '<This Team>' begins hunting using Ability 'Command_AmericaMissileDefenderLaserGuidedMissiles '.

Then under Generic Behaviour for the Team, I added 'USA Laser Locking'. The problem is that they do not work, I've even tried it on Behaviour, On Create, 'USA Laser Locking'.

Hope that someone can help.

Thanks in advance.
-seebo
<This Object> actually needs a name. There is no way to attach building or units in generals. Normally Unit type scripts are used soley for SP.
I would write a script based on damage to the the team and tie the team to it in the behavior page of the team editor. Take a look at the **Team** state is**??** script condition.
Your last script is set up wrong. The team begins to be built when the flag goes to false. You then need the team to guard the innerPeremeter, or hang out somwhere, until the entire team is built. This is the teams "Build Condition". The team is tied to this script by the entering the script name in the Production condition on the "Identity" page in the team editor.
The team can be set to hunt and use the LGM's by writing a new script for it. Tie the team to it on the Generic page of the team editor. You'll also need to specify an "On Destroyed" parameter. As you want it to hunt it does not require an "On Create" script to be listed.

HTH


Edit** Be advised that this will need to go into the AI scripts. Which equats to you need to import the whole cholote.
RVMECH is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-19-2003, 04:24 AM   #8 (permalink)
Junior Member
 
Join Date: Apr 2003
Location: USA
Posts: 13
Default

Thanks RV, I'll give it another shot later. I've tried to set it to guard outer perimeter on create and LGM on enemy sighted previously, but it didnt work.
seebo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-19-2003, 06:10 AM   #9 (permalink)
Administrator
 
DeeZire's Avatar
 
Join Date: Dec 2002
Posts: 1,913
Send a message via ICQ to DeeZire
Default

RV 15 t3h 1337 5cr1p7()r
__________________
DeeZire 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
C&C3 Map Scripting Troilus98 Map Authoring 0 06-12-2007 12:25 PM
Need AI Scripting Help sekanz Map Authoring 1 05-11-2005 03:00 AM
Scripting Monkeystuff Generals & Zero Hour Editing 5 11-11-2004 05:59 AM
AI Scripting ThePrinc3 Generals & Zero Hour Editing 6 08-18-2004 11:59 AM
Scripting Help Carbon Generals & Zero Hour Editing 0 07-14-2003 02:48 PM


All times are GMT -4. The time now is 08:47 AM.


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