HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

how do i make creeps cast custom abilities?

10-19-2006, 10:25 AM#1
Nazra7
how do i make creeps cast custom abilities? i tried to make an ability from flame strike and i said in the triggers for the creep to issue order targeting a point - flamestrike and it does nothing in game. everytime i make a map with monsters that have custom abilities i have this problem

how exactly do you make creeps and other computer player units cast custom abilities?
10-19-2006, 05:43 PM#2
Mystic Prophet
make sure you're using the preset order "human bloodmage- flamestrike" and not just trying to use the order id. If the ability was made from flamestrike, that order should work. Keep in mind that you can't change order IDs except with channel.
10-19-2006, 07:00 PM#3
moyack
The AI player will use the custom abilities automatically.

The problem with that depends on which ability is the base abilitity (sorry for the redundance) and who is the AI player. In normal AI (players 1-12) with computer controller there's no problem, but in creeps, the behaviour is quite different. Creeps only attack and cast spells if they don't leave an specific region (more or less 2000 range centered in their respective creep camp), so if you order your creep unit to cast in a place far away from its camp, probably it will move, but if it sees that it's far from its camp, it will return to the camp and it will cancel any spell order or attack order.
10-19-2006, 07:23 PM#4
Vexorian
the only reason for an order not to be working is that the creep can't really cast it, try changing the owner to player 1 so you can test it
10-19-2006, 10:31 PM#5
Nazra7
no becuase i made monsters that are the same as the player classes. example: i made a point in the game where you have to fight a feca but its a computer played feca. i told it to cast burning glyph by saying in the triggers

unit is attacked
attacking unit isequal to feca and owner of attacking unit is equal to player 11 which is the owner of the feca monster.

then issue order for attacking unit to hero - blood made - flame strike (is the order string for burning glyph) position of attacked unit

it doesnt do anything. and it is fact the fecas CAN cast their burning glyph.
10-20-2006, 02:56 AM#6
[VDM]Amn
Try using an event u can call ingame, like
Trigger:
Player - Player 1 (Red) types a chat message containing cast as An exact match
Actions
Unit - Order Your_Creep to Human Blood Mage - Flame Strike (point)
then, type "cast" in different situations to detect what's the creep's problem. to know when he's able to cast and when he's not.
so at the end u can dance

btw: maybe the creep doesn't want to hurt himself casting that spell ?
if still u can't do it, upload the silly map so we can check it out.
10-20-2006, 01:55 PM#7
Nazra7
it MIGHT be that the ai forbid it to cast because it will probably hit itself.... i never thought of that before.