Register for free, and make this box disappear!

Welcome to the BF Forums! Register Now, It's Free!


Welcome to the BF Forums; your source for the latest video game news, strategies, discussions, and resources. Join over 66,000 like-minded gamers to chat about your interests in our community.

You are currently viewing the forums as a guest user, which limits your access to certain content, contests, downloads, and more. By joining our free community, you will be able to respond in discussions/articles, contact members privately (PM), participate in regular-scheduled contests, see less advertisements, and have access to many other features. Registration is quick, easy, and completely free.



Have your questions answered. Share your thoughts about a topic. Take 2 minutes, Register Now!
BattleForums.com Forums > Major Games > Warcraft > Warcraft Maps and Modifications

We're Half-Way There!! - BF Lotto: $50 Ebay or Amazon Gift Card - A Single Click is All It Takes...

Reply
 
Thread Tools Display Modes
Old 12-20-2005, 01:43 PM   #1 (permalink)
BattleForums Newbie
 
Join Date: Dec 2005
Posts: 1
Icon4 AI Help

Ok, I am working on a amp where units spawn, and I need them to look for your hero in the map, instead of just walking around patroling. My friend said that I have to do saome AI work, so I opened it and I didn't know what the heck I had to do.

Can someone help me? Please?:usad
Asyrium is offline   Reply With Quote
Beitrag Sponsored Links

__________________
Ads suck! Take 2 minutes to register for your free account, and GET RID OF THESE ADS!
Old 12-20-2005, 04:51 PM   #2 (permalink)
PTS
BattleForums Newbie
 
PTS's Avatar
 
Join Date: Nov 2005
Posts: 9
Good ol' Star Craft used to have a "Set Computer Players to random suicide mission" AI script, wich sends all units attacking the player (workers too). No idea if WarCraft has such a script. You can optionally have a trigger to keep a location centered on the hero at all times and another trigger to order spawned creatures to attack at that location.
PTS is offline   Reply With Quote
Old 12-20-2005, 05:15 PM   #3 (permalink)
BattleForums Member
 
Father_Chaos's Avatar
 
Join Date: Nov 2005
Posts: 364
Yeah, do something like:
Code:
Events
Each x seconds of game time (or whatever you want, you could also do that when the units spawn it fires this trigger.)

Actions
Pick every units in (Playable Map Area) and do:
If (Owner of Picked units) is equal to (Player x) and Unit Type of (Picked units) is equal to Hero
Then Order (All units owned by Player y) attack (Picked units)
Else Do nothing
I did it without the editor, and it would work only with one enemy hero. It's still pretty easy to do, just use your brain a bit .
__________________

Is this the end of all we know - innocence lost so long ago;
Woven in dreams - the darkest of schemes now takes hold of our destiny...
Decades of greed, plague, famine and war - we can't go on like this anymore;
Living like fools - chaos will rule this eternal paradise...


A Fool's Paradise - Symphony X

:corn Join the Image Puzzle game ! :corn
Father_Chaos is offline   Reply With Quote
Old 12-21-2005, 03:01 AM   #4 (permalink)
Aya Matsuura is awesome
 
x42bn6's Avatar
 
Join Date: Nov 2002
Location: Trieste, Friuli-Venezia Giulia
Age: 20
Posts: 15,182
If you want them to be 'intelligent', then you have to use complicated algorithms. Basically involving selecting a random area where the hero is likely to be, such as a large unexplored area.

If you want them to be 'stupid', then use:

~ Create a region then create a variable for it. I'll call the variable Explore.
~ Put your units inside a unit group and create a variable for it. I'll call the variable Creep.

Events:
Generic Unit Event - Unit enters region
Generic Unit Event - Unit enters [Explore]
Conditions:
Boolean Comparison - [Player of [Entering Unit] = [Whatever the player of the creeps is]]
Boolean Comparison - [[Entering Unit] is in [Creep]]

Actions:
Region - Move Region
Region - Move [Explore] to [Random point at [A larger region where the hero is? The entire map? You decide]]
Pick every unit in [Creep] and do actions

Unit Group - Order units to do action targeting a point (?)
Unit Group - Order [Picked Unit] to [Attack-move] to [Explore]
Or something like that.*
__________________
* IM IN UR WIKI RVRTING UR EDITS
x42bn6 is online now   Reply With Quote
 
Reply

Get rid of all these ads! Take 30 seconds to register.

« Changeing art | Random Starting Location? »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are Off


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



Powered by vBulletin® Version 3.7.2 | Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0