HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Warnings

06-26-2005, 02:04 PM#1
Tim.
When you attempt to cast an ability that requires mana, and you have no mana, you get the warning "Not enough Mana." I wish to use this to instead say "Out of ammo" or somthing to that extent. Now changing the sound and text of the warning is simple, however, how can I make the warning appear?

I have a trigger that creates a dummy unit, that dummy unit has 50000 mana. However, if you are out of ammo, then that is reduced to 0 mana before the dummy is given the order to fire a shot. Since there is not enough mana for the ability to be cast, the ability isn't cast, as expected; however, there is no warning. Why is there no warning when a trigger runs the ability, or at least, how do I force the warning message.
06-26-2005, 04:50 PM#2
shadow1500
vexorian has made a useful JASS snippet called SimError which simulates an error message, find it here.
06-26-2005, 05:01 PM#3
Tim.
Im aware of that, however I was hoping to simply use the mana system because it has to be implemented anyway in order for my shoot system to work.

Is there any way to cause the Warning, or Error messages normally? Like I said, my unit looses its mana anyway.
06-26-2005, 06:55 PM#4
shadow1500
i dunno, u could try select a dummy unit then issue a UI command to the player which points to a non target ability hot key.
06-26-2005, 07:27 PM#5
Tim.
No effect.
06-26-2005, 08:43 PM#6
Guest
Go in your map and open the Advanced/Game Interface tab. Look for the Not enought mana text and change it.
06-27-2005, 12:24 PM#7
Thunder_Eye
I believe there is an option you can edit in the Advanced/Game Interface

Then edit:
Text - Message - 'Not enough mana.'
to whatever you want
06-27-2005, 12:42 PM#8
iNfraNe
Quote:
Originally Posted by Tim.
Now changing the sound and text of the warning is simple, however, how can I make the warning appear?
read b4 reply is nice ;)

I've tried this too, but I failed. I tried making a dummy unit drop an undroppable item to create an error message. Didnt succeed.
06-27-2005, 07:55 PM#9
Tim.
Aha. So it most likely requires a manual attempt in order to cause the warning. Oh well, I'll just trigger it then, thanks.