HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Need help with making a spell

07-27-2003, 04:40 AM#1
junbin
I need to make a spell that periodically attacks nearby enemy units automatiacally.

So far, what I have done is: Modify scout so that it summons a "Storm cloud" unit. Once this unit is created, use JASS to make it follow the hero casting the spell. This unit will then attack nearby units on its own.

However, what I need to do is to PREVENT the user from ordering this created unit around. Anyone has any idea how I can do it?

Also, it would be even better if someone can just teach me how to make the unit completely unselectable and invisible even to the owner player.

If anyone has any other way of implementing the spell, please tell me as well.. Thanks!
07-27-2003, 06:26 AM#2
Hakujin
Give the creature to an AI player who is allied with the human player.
07-27-2003, 06:33 AM#3
Newhydra
Try giving it the aloc ability I think it's ALoc but it might be Aloc...
07-27-2003, 06:58 AM#4
Bl4ck1E
To prevent the player from selecting you can try:

Prevent Selecting
Events
Player - Player 1 (Red) Selects a unit
Conditions
(Unit-type of (Triggering unit)) Equal to Storm Cloud
Actions
Selection - Clear selection for Player 1 (Red)

Haven't tried it but it might work.