• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[AI] Trigger and Ai help needed

Status
Not open for further replies.

Opossom_Delicat

O

Opossom_Delicat

Well here is my problem.I want to make the computer when i host (computer,easy,normal,insane)select a hero in rect with a wisp moving in (its a custom hero selection with rect).When they choose it i want them to shop,to use spells and to move trought the map.Please help me:sad:
 
They should automatically use most spells.

You do not need to physically make them move into a region. Just give them a random hero bypassing the hero select. As for moving, you can do that by a perodic trigger that issues a move order when not in combat or when certain condtions are met. Shopping is harder and probably needs a whole system.
 
I would follow super goods advice and just give them a hero. AI is pretty tricky because there are so many things that can happen. Its possible to make a pretty unintelligent AI using GUI, but JASS is going to be the way to go. Here is a pretty good tutorial on how to make a basic AI that will run around and attack nearby units and pick up items and run back to town to heal.

WC3Jass.com :: View script - Creating simple AIs for Hero Arena-type maps

I havn't actaully done it myself, but it looked good and i had it bookmarked incase i wanted to do it in the future
 
i dont even know how to change the trigger in text or write trigger (i dont know how it work)they tutorial dont really help me so i cant really make it with jass.But with trigger i could so i would prefer trigger help please.
 
To convert to custom text, you select the trigger, and go edit--> convert to custom text.

If you want to do it in the GUI, its going to be really clunky.
Bascially you want to have a periodic time trigger that executes every few seconds. Play around with this condition to see if your guy doesn't have any orders.

  • (Issued order) Equal to (Order(stop))
then bascially, have a bunch of if/than/else statements that tell him what to do, make sure you have skip remaining actions in every single then statement at the end of it.

So
if your guy has under 20% health
then
order him to go back to base
skip remaining actions
else
nothing

If there is a unit within 1000 of your unit
then
order your guy to attack that unit
skip remaining actions
else nothing

just an example right there poorly written, but you get the point.
 
no i dont get it but thx to try it would be really faster with trigger way then jass beacause it would take so many time just to learn the basic of jass so :s im sorry.
 
Status
Not open for further replies.
Back
Top