wc3campaigns
WC3C Homepage - www.wc3c.netUser Control Panel (Requires Log-In)Engage in discussions with other users and join contests in the WC3C forums!Read one of our many tutorials, ranging in difficulty from beginner to advanced!Show off your artistic talents in the WC3C Gallery!Download quality models, textures, spells (vJASS/JASS), systems, and scripts!Download maps that have passed through our rigorous approval process!

Go Back   Wc3C.net > Tutorials > Trigger (GUI)/ AI editor Tutorials
User Name
Password
Register Rules Get Hosted! Chat Pastebin FAQ and Rules Members List Calendar



Reply
 
Thread Tools Search this Thread
Old 10-02-2006, 10:22 AM   #1
Av3n
Roar!
 
Av3n's Avatar


Project Leader: TBR
Project Member: PoC
 
Join Date: May 2006
Posts: 1,854

Submissions (7)

Av3n is a jewel in the rough (240)Av3n is a jewel in the rough (240)Av3n is a jewel in the rough (240)Av3n is a jewel in the rough (240)Av3n is a jewel in the rough (240)

Hero #4 extra-official winner2008 Spell olympics - Fire - BronzeHero Contest #3 - 3rd Place

Default The AI Editor

This tutorial is about the different parts of the .wai AI editor, how to configure conditions, the condition explaination. and also it will give a explaination about the functions. (How I'm going to write it is by the left)

How to configure conditions
To configure conditions right click where you want to configure it and bam there the option!

The Conditions
Well this part is currently being written so all things might not be there

Base Conditions

Boolean Condition: Condtion then ture or flase. Similar to the Trigger Editor one.

Integer Condition: Condition then the amount. Similar to the Trigger Editor one.

And Condition: Condition 1 and Condition 2. Both required to activate the string assigned to. Similar to the Trigger Editor one.

Or Condition: Condition 1 or Condition 2. Any required to activate the string assigned to. Similar to the Trigger Editor one.

Boolean Condition Triggers
Most of these are pretty straight forward only the ones that are tricky I'll give an explaination for.

Preset - Current game is single player

Hero - Attack Captian is at Home: It means that the leader of an attack group is at base.

Hero - Attack Captian is Retreating

Hero - Attack Captian is at Goal

Hero - Attack Group is Complete

Hero - Attack Group is Empty

Hero - Captian is in Combat: Any captian (Attack or Defense) is in combat.

Misc - Creeps exist anywhere

Town - Town is under attack

Town - Town has mine: You have to put down the town number not an other trigger.

Town - Town has Hall: You have to put down the town number not an other trigger.

Town - Expansion Spot Needed


Integer Condition Triggers
Most of these are pretty straight forward only the ones that are tricky I'll give an explaination for.

Preset - Maxium number of inventory slots (6)

Preset - Maxium number of players (12)

Preset - Maxium number of player slots(16)

Arithmetric: Okay this is the combonation Integer Trigger and operator (+,-,x,/) and an other Integer Trigger. Simlilar to the Trigger editor one.

Note that Commands are sent from the trigger editor

Commands - Commands Waiting

Commands - Last command sent: You can either remove or leave the last sent command.

Commands - Last command data: You can either remove or leave the last sent command data.

Hero -Attack Group Size

Hero - Attack Group Health Level

Hero - Attack Group Mana Level

Misc - Current Attack Wave

Misc - Melee Diffuculty Level

Resources - Current Gold Amount

Resources - Current Lumber Amount

Resources - Total unmined Gold Owned

Resources - Food used

Resources - Food Produced

Resources - Food Produced by unit type: The unit must produe food.

Town - Number of Mines owned

Town - Town with Mine: Using Town id.

Town - Next expansion town: Using Town id.

Unit - Total units of type:Owns an certian amount of an unit type.

Unit - Total units of type - Completed Only: Owns an certian amount of an unit type completed.

Unit - Total units of type - By Town: Owns an certian amount of an unit type completed or uncompleted in an town.

Unit - Gold cost of Unit Type

Unit - Lumber Cost of Unit Type

Unit - Build time of Unit

Upgrade - Current Upgrade level

Upgrade - Gold cost of upgrade

Upgrade - Lumber cost of upgrade


The First Page
On the first page there will be a AI name, race selector, behaviors, import custom data, and where to add conditions.

Click image for larger version

Name:	AI conditions.JPG
Views:	484
Size:	71.4 KB
ID:	13292

Name:This sets the name of your AI. (Check the box "Set Player Name" for this to work if your map has fixed player names.)

Races: You can pick between Human, Orc, Undead and Night Elf. If you are using an custom race there is an Custom option for that. (For Custom import your Object Data from your map.)

Behaviors: These are the Behaviors.

Set Player Name: This shows the name of your AI even if it has a set player name on the map.
Melee: This states if it is an melee AI.
Defend Users: The AI will protect other players if they are attacked.
Random Paths: The AI will pick paths in a more random fashon.
Target Heroes: The AI will target enemy heroes more.
Repair Structures: The AI will repair strcutures.
Heroes Flee: The AI will retreat its hero if they are in a crictical condition.
Units Flee: The AI will retreat its units if they are in a crictical condition.
Groups Flee: The AI will retreat attacking groups if their are in a disadvantage.
Have no Mercy: The AI will attack if the enemy has weaken units or at a disadvantage.
Ignore Injured: The AI will ignore units under 50% when assembling attack forces.
Remove Injuries: The AI will send injured units back to base or somewhere where it could heal.
Take Items: Heroes will pick up useful items.
Buy Items: Heroes will buy useful items.
Slow Harvesting: Workers will harvest 1 gold or 1 lumber depending on their mining type.
Allow Home Changes: The AI will pick new locations for an home base and retreating locations.
Smart Artillery: The Ai siege units will seige enemy bases when possible.

Custom Object Data Import/Export: This option allows you to Import and Export custom object data. The file type is .w3o.

Conditions: This allows you to create conditions for building orders and attacking groups. It alsos allows you to edit and delete them as well.

The Second Page
This allows you to pick the heroes that your AI uses, the chance of getting them, and skill seletion.

Click image for larger version

Name:	AI heroes.JPG
Views:	248
Size:	91.5 KB
ID:	13294

Hero Selection: Allows you to pick the heroes your hero uses.

Chances: The many combinations of the hero order compiled into chances. There are 6 chances for different hero orders.

Skill Selection: The skill selection order for your hero. This allows you to select what skills they learn.

The Thrid Page
This page allows you to pick what is their town hall, thier mine building, harvesters, building order, and harvest priorities

Click image for larger version

Name:	AI order.JPG
Views:	177
Size:	78.9 KB
ID:	13295

Town Hall, Mine building, Harvesters: This allows you to pick thier Town Hall, Mine Building, and Harvesters.

Building Order: The order of construction of your AI. Conditions are used here. The first building should be your town hall then your starting units.

Harvest Priorities: These Prioirities is how much harvesters are to mine in its Towns.

The Fourth Page
This page allows you to add attack groups, order attack waves, and target priorities.

Click image for larger version

Name:	AI group.JPG
Views:	169
Size:	103.3 KB
ID:	13293

Attack Groups: This allows you to order the attack groups of the AI allowing you to order thier conditions and how much they send of each unit.

Attack Waves: This makes the Attack Groups to be ordered in waves with a delay time, to add multiple waves of the same group add it again. Also it allows you to pick its minium forces, delay time before the first wave and repeat the attack wave.

Attack Priorities: These priorities will order the AI which in want to do the top one will be its first priority, conditions will also be configued and minium units and maxium units to be used as well top enable flyers to join.

The Last Page
Lastly this page where you can observe your AI but if it has custom object data this cannot be done since it was designed for Melee AI observing.

Click image for larger version

Name:	AI test.JPG
Views:	179
Size:	63.9 KB
ID:	13296

Game Speed: Adjusts the game speed for observing your AI.

Game Options: Allows you to disable fog of war and victory/defeat conditions.

Map File: Sets the melee map for testing.

Players: Sets the User (you) as an observer or you can play against your AI, at least 1 computer player must use your AI for testing if you want to see if you done everything correctly.


Now I hope you got an better understanding of the .wai editor!

-Av3n
__________________

Thanks to FatherTime for the sig
.:
Current ProjectsSubmissions
Power of CorruptionMy Terrain
The Black RoadMy Resources
Strikeforce
Twitter

Last edited by Av3n : 10-27-2006 at 09:37 PM.
Av3n is offline   Reply With Quote
Sponsored Links - Login to hide this ad!
Old 10-02-2006, 04:41 PM   #2
moyack
Evil Emoticon
 
moyack's Avatar


Respected User
Project Leader: PoC
 
Join Date: Jan 2006
Posts: 3,279

Submissions (17)

moyack is a splendid one to behold (666)moyack is a splendid one to behold (666)moyack is a splendid one to behold (666)moyack is a splendid one to behold (666)

AI Tournament #2 - 2nd PlaceHero Contest - Second place

Send a message via MSN to moyack
Default

Hey Av3n:

So you're doing AI tutorials?? good for you :)

I have some suggestions or things you should have in account:
  • You should add which kind of data you can import in the Custom Object Data Import/Export button (custom unit data) so you can pick custom units in the AI configuration without using the map that contains those units.
  • "Set Player Name: This shows the name of your AI." Actually this option gives the AI name to the computer player instead of the player name set in the map.

Well, ATM I don't have more ideas, I'll be waiting for your progress.
moyack is offline   Reply With Quote
Old 10-02-2006, 10:50 PM   #3
Av3n
Roar!
 
Av3n's Avatar


Project Leader: TBR
Project Member: PoC
 
Join Date: May 2006
Posts: 1,854

Submissions (7)

Av3n is a jewel in the rough (240)Av3n is a jewel in the rough (240)Av3n is a jewel in the rough (240)Av3n is a jewel in the rough (240)Av3n is a jewel in the rough (240)

Hero #4 extra-official winner2008 Spell olympics - Fire - BronzeHero Contest #3 - 3rd Place

Default

Yes moyack i've been doing AI tutorials. I'll take your suggestion as well.

-Av3n
__________________

Thanks to FatherTime for the sig
.:
Current ProjectsSubmissions
Power of CorruptionMy Terrain
The Black RoadMy Resources
Strikeforce
Twitter
Av3n is offline   Reply With Quote
Old 10-02-2006, 11:00 PM   #4
moyack
Evil Emoticon
 
moyack's Avatar


Respected User
Project Leader: PoC
 
Join Date: Jan 2006
Posts: 3,279

Submissions (17)

moyack is a splendid one to behold (666)moyack is a splendid one to behold (666)moyack is a splendid one to behold (666)moyack is a splendid one to behold (666)

AI Tournament #2 - 2nd PlaceHero Contest - Second place

Send a message via MSN to moyack
Default

That's great, ATM I'm doing a tutorial about AI too, but don't worry, it has no relation with your tutorial. It's more related to edit directly AI. probably it will be a good complement to your tut.

Edit: I'll PM some questions and/or suggestions

Last edited by moyack : 10-02-2006 at 11:08 PM.
moyack is offline   Reply With Quote
Old 10-02-2006, 11:13 PM   #5
Av3n
Roar!
 
Av3n's Avatar


Project Leader: TBR
Project Member: PoC
 
Join Date: May 2006
Posts: 1,854

Submissions (7)

Av3n is a jewel in the rough (240)Av3n is a jewel in the rough (240)Av3n is a jewel in the rough (240)Av3n is a jewel in the rough (240)Av3n is a jewel in the rough (240)

Hero #4 extra-official winner2008 Spell olympics - Fire - BronzeHero Contest #3 - 3rd Place

Default

Shit that was quick moyack. I've got annitem idea i'll PM you about that.
__________________

Thanks to FatherTime for the sig
.:
Current ProjectsSubmissions
Power of CorruptionMy Terrain
The Black RoadMy Resources
Strikeforce
Twitter
Av3n is offline   Reply With Quote
Old 10-23-2006, 11:02 AM   #6
PitzerMike
Alcopops
 
PitzerMike's Avatar


Tools & Tutorials Moderator
 
Join Date: Jan 2003
Posts: 2,794

Submissions (12)

PitzerMike is a splendid one to behold (643)PitzerMike is a splendid one to behold (643)PitzerMike is a splendid one to behold (643)PitzerMike is a splendid one to behold (643)

Approved Map: Pitzer's Minesweeper

Default

Looks good so far. Please tell me if/when this is the final version. Then i'll approve it.
__________________
Zoom (requires log in)
PitzerMike is offline   Reply With Quote
Old 10-24-2006, 05:51 AM   #7
Av3n
Roar!
 
Av3n's Avatar


Project Leader: TBR
Project Member: PoC
 
Join Date: May 2006
Posts: 1,854

Submissions (7)

Av3n is a jewel in the rough (240)Av3n is a jewel in the rough (240)Av3n is a jewel in the rough (240)Av3n is a jewel in the rough (240)Av3n is a jewel in the rough (240)

Hero #4 extra-official winner2008 Spell olympics - Fire - BronzeHero Contest #3 - 3rd Place

Default

Well it is pretty much in its final version PitzerMike, there is propaly nothing else i could explain unless you point it out.

-Av3n
__________________

Thanks to FatherTime for the sig
.:
Current ProjectsSubmissions
Power of CorruptionMy Terrain
The Black RoadMy Resources
Strikeforce
Twitter
Av3n is offline   Reply With Quote
Old 10-24-2006, 08:01 AM   #8
Pheonix-IV
I want you inside me...
 
Pheonix-IV's Avatar
 
Join Date: Oct 2002
Posts: 4,006

Submissions (17)

Pheonix-IV is a jewel in the rough (212)Pheonix-IV is a jewel in the rough (212)Pheonix-IV is a jewel in the rough (212)Pheonix-IV is a jewel in the rough (212)

Default

Some details, examples, prehaps leading people though with the creation of a basic melee or campaign AI would definitely be useful.
__________________
Pheonix-IV is offline   Reply With Quote
Old 10-24-2006, 08:07 AM   #9
Av3n
Roar!
 
Av3n's Avatar


Project Leader: TBR
Project Member: PoC
 
Join Date: May 2006
Posts: 1,854

Submissions (7)

Av3n is a jewel in the rough (240)Av3n is a jewel in the rough (240)Av3n is a jewel in the rough (240)Av3n is a jewel in the rough (240)Av3n is a jewel in the rough (240)

Hero #4 extra-official winner2008 Spell olympics - Fire - BronzeHero Contest #3 - 3rd Place

Default

Well I was planning to go thorugh with AI creation using Blizzards AI editor in an other tutorial and this is only about the sections of the AI editor though. Just wait on what PitzerMike says.

EDIT:updated and fixed an thumbnail.

-Av3n
__________________

Thanks to FatherTime for the sig
.:
Current ProjectsSubmissions
Power of CorruptionMy Terrain
The Black RoadMy Resources
Strikeforce
Twitter

Last edited by Av3n : 10-24-2006 at 08:14 AM.
Av3n is offline   Reply With Quote
Old 10-24-2006, 10:17 AM   #10
PitzerMike
Alcopops
 
PitzerMike's Avatar


Tools & Tutorials Moderator
 
Join Date: Jan 2003
Posts: 2,794

Submissions (12)

PitzerMike is a splendid one to behold (643)PitzerMike is a splendid one to behold (643)PitzerMike is a splendid one to behold (643)PitzerMike is a splendid one to behold (643)

Approved Map: Pitzer's Minesweeper

Default

Well, if you were planning to write about ai triggers too then I think it would be better to have it all in one. I'd really appreciate it, since we don't have a complete tutorial about the ai editor yet.
What do you think?
Anyway good work so far. :)
__________________
Zoom (requires log in)

Last edited by PitzerMike : 10-24-2006 at 11:00 PM.
PitzerMike is offline   Reply With Quote
Old 10-24-2006, 10:40 AM   #11
ragingspeedhorn
I MUST BREAK YOU
 
ragingspeedhorn's Avatar


Official Map Reviewer
 
Join Date: May 2005
Posts: 1,237

Submissions (10)

ragingspeedhorn is a jewel in the rough (211)ragingspeedhorn is a jewel in the rough (211)ragingspeedhorn is a jewel in the rough (211)ragingspeedhorn is a jewel in the rough (211)

Approved Map: Dodge The Wisp Wheels

Send a message via MSN to ragingspeedhorn
Default

Very nice tutorial, +rep.
ragingspeedhorn is offline   Reply With Quote
Old 10-25-2006, 04:41 AM   #12
Av3n
Roar!
 
Av3n's Avatar


Project Leader: TBR
Project Member: PoC
 
Join Date: May 2006
Posts: 1,854

Submissions (7)

Av3n is a jewel in the rough (240)Av3n is a jewel in the rough (240)Av3n is a jewel in the rough (240)Av3n is a jewel in the rough (240)Av3n is a jewel in the rough (240)

Hero #4 extra-official winner2008 Spell olympics - Fire - BronzeHero Contest #3 - 3rd Place

Default

Well the conditions might have to be explained and the sub triggers as well, though i don't have time right now I'll get to it when I do.
(Thxs ragingspeedhorn! +rep for you as well)

EDIT: The conditions are currently worked on
EDIT 2: PitzerMike this needs to be renamed The AI Editor

-Av3n
__________________

Thanks to FatherTime for the sig
.:
Current ProjectsSubmissions
Power of CorruptionMy Terrain
The Black RoadMy Resources
Strikeforce
Twitter

Last edited by Av3n : 10-25-2006 at 05:55 AM.
Av3n is offline   Reply With Quote
Old 10-25-2006, 07:08 PM   #13
PitzerMike
Alcopops
 
PitzerMike's Avatar


Tools & Tutorials Moderator
 
Join Date: Jan 2003
Posts: 2,794

Submissions (12)

PitzerMike is a splendid one to behold (643)PitzerMike is a splendid one to behold (643)PitzerMike is a splendid one to behold (643)PitzerMike is a splendid one to behold (643)

Approved Map: Pitzer's Minesweeper

Default

Glad to hear that you're working on it :D
*renamed*
__________________
Zoom (requires log in)
PitzerMike is offline   Reply With Quote
Old 10-25-2006, 07:30 PM   #14
moyack
Evil Emoticon
 
moyack's Avatar


Respected User
Project Leader: PoC
 
Join Date: Jan 2006
Posts: 3,279

Submissions (17)

moyack is a splendid one to behold (666)moyack is a splendid one to behold (666)moyack is a splendid one to behold (666)moyack is a splendid one to behold (666)

AI Tournament #2 - 2nd PlaceHero Contest - Second place

Send a message via MSN to moyack
Default

Mister Av3n: if you need some help with this tutorial, I will be pleased to do it.
moyack is offline   Reply With Quote
Old 10-26-2006, 04:30 AM   #15
Av3n
Roar!
 
Av3n's Avatar


Project Leader: TBR
Project Member: PoC
 
Join Date: May 2006
Posts: 1,854

Submissions (7)

Av3n is a jewel in the rough (240)Av3n is a jewel in the rough (240)Av3n is a jewel in the rough (240)Av3n is a jewel in the rough (240)Av3n is a jewel in the rough (240)

Hero #4 extra-official winner2008 Spell olympics - Fire - BronzeHero Contest #3 - 3rd Place

Default

K moyack just PM me a list of intreger triggers and partically give desprcitions for hard to understand ones.

-Av3n
__________________

Thanks to FatherTime for the sig
.:
Current ProjectsSubmissions
Power of CorruptionMy Terrain
The Black RoadMy Resources
Strikeforce
Twitter
Av3n is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT. The time now is 03:13 AM.


Affiliates
The Hubb The JASS Vault Clan WEnW Campaign Creations Clan CBS GamesModding Flixreel Videos

Powered by vBulletin (Copyright ©2000 - 2019, Jelsoft Enterprises Ltd).
Hosted by www.OICcam.com
IT Support and Services provided by Executive IT Services