HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Random Generic Help Topic

09-30-2007, 02:06 AM#1
PenguinEmperor
Hey! I need soem random generic help.

Okay, fist off, is there any way to allow a unit to attack-move to a point, without them returing to the point they were issued the order at? I have units attack-move to the posistion of the last dead unit, but then as soon as they get there, they turn around and go back!

Secondly, I have a trigger that makes it so when you issue patrol, a unit casts Dunken Haze at the secleted patrol point. The trigger runs like this:

Trigger:
DrunkHazeAttack
Collapse Events
Unit - Pandaren 0002 <gen> Is issued an order targeting an object
Unit - Pandaren 0002 <gen> Is issued an order targeting a point
Collapse Conditions
(Issued order) Equal to (Order(patrol))
Ales Greater than or equal to 1
Collapse Actions
Trigger - Turn off (This trigger)
Unit - Add Drunken Haze (Used) to Pandaren 0001 <gen>
Unit - Move DummyUnit 0019 <gen> instantly to (Target point of issued order)
Unit - Order Pandaren 0001 <gen> to Neutral Pandaren Brewmaster - Drunken Haze DummyUnit 0019 <gen>
Trigger - Turn on (This trigger)

Plus another like this:

Trigger:
Remove Haze
Collapse Events
Unit - Pandaren 0001 <gen> Finishes casting an ability
Collapse Conditions
(Ability being cast) Equal to Drunken Haze (Used)
Collapse Actions
Unit - Remove Drunken Haze (Used) from Pandaren 0001 <gen>

This works fine. Ther problem is, even after the trigger runs that removes Drunken Haze, the panda still sometimes casts it without me telling him to! Can someone figure out why?
09-30-2007, 03:06 AM#2
Anopob
1: If they're neutral hostile I think that's why they do that (I can't think of a normal reason if not). I believe the only way is to move them with triggers (not issue order) and then attack or something.

2: Not sure, but are you sure you got the right pandas (because I see you use 2 of them).
09-30-2007, 03:42 AM#3
PenguinEmperor
1) No, they're player 3.

2) Yes, i know I have the right pandas.
10-06-2007, 01:37 PM#4
PenguinEmperor
Bump'd!
10-06-2007, 07:41 PM#5
TaintedReality
Quote:
Bump'd!

Help is on the way!

Quote:
Okay, fist off, is there any way to allow a unit to attack-move to a point, without them returing to the point they were issued the order at? I have units attack-move to the posistion of the last dead unit, but then as soon as they get there, they turn around and go back!

They're returning to their guard position! So you can do this!:

Trigger:
AI - Ignore the guard positions of all Player 3 (Teal) units

It causes all unit currently on the map to ignore their guard position. Meaning if you're creating new units, you need to use this action again.
10-07-2007, 01:07 PM#6
Panto
If the pandas are controlled by a computer player they will use basic AI, including firing abilities when that computer player determines it is appropriate.
10-08-2007, 12:40 AM#7
PenguinEmperor
Thanks guys!

And PAnto, Is there any way to disable all AI for player 2?

Player 2 controls the second panda.
10-08-2007, 12:48 AM#8
Pyrogasm
Yes; here's how to disable the AI entirely:
Quote:
Originally Posted by Moyack
There is one option...
  • open in notepad a new file and write this text:
    Collapse JASS:
    function main takes nothing returns nothing
        call InitAI()
        call SleepForever()
    endfunction
  • Then save this file as dummy.ai
  • Import this file to your map with the import manager.
  • In the map initialization trigger, add this action:
    Trigger:
    AI - Start melee AI script for Player 1 (Red): war3mapImported\dummy.ai
    (usually that would be the path)
  • Do this script for all the computer player you will need, changing the player.
  • Save and test.

With this configuration, the units controlled with this AI will be fully controlable via triggers (or by the user using full shared control) and at the same time they will react and cast spells automatically.
I would assume then that if you removed the line InitAI() from that text file, the AI would do absolutely nothing.
10-08-2007, 01:07 AM#9
PenguinEmperor
Thanks Pyro!

And one last question. A way while back, you gave me a fiel to alter the posistion of Patrol or any other command on the UI, but I couldn never get it to work. What is the path the file needed? The nam ewas something like Commands.txt.
10-08-2007, 01:19 AM#10
Pyrogasm
CommandStrings.txt, I believe.

Altering CommandStrings.txt Tutorial