HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

A spell that gives bounty

04-25-2006, 04:37 PM#1
SFilip
in my map i'm trying to make it so that players get gold when they enter one region and have the amount written above with the same letters as normal unit bounty.
a good way would probably be using floating text, but i wanted to try something diffrent...
i made a spell based off chest of gold (the one that gives gold for the gold coins item) and a dummy unit. i also changed its order string - use/turn on to "roar" so that i can use unit - issue order with no target. here's my trigger:
Trigger:
Bounty
Collapse Events
Unit - A unit enters GiveBounty <gen>
Conditions
Collapse Actions
Collapse Unit Group - Pick every unit in (Units in GiveBounty <gen>) and do (Actions)
Collapse Loop - Actions
Unit - Create 1 Dummy for (Owner of (Entering unit)) at (Center of GiveBounty <gen>) facing Default building facing degrees
Unit - Add Bounty to (Last created unit)
Unit - Order (Last created unit) to Night Elf Druid Of The Claw - Roar
however nothing happens. from some reason the unit doesn't cast it
anyone knows what could the problem be? or perhaps there is a better way to do this?
thanks in advance
04-25-2006, 05:21 PM#2
Captain Griffen
The only abilities you can change the order string on are channel and spellbook.

You might have more luck doing it via items, unless there is a default order string which you can use for the ability?
04-25-2006, 06:02 PM#3
arpha_storm
The only thing that I can think of why you want Chest of Gold is the effect it has.
You could actually just use...
Trigger:
Bounty
Collapse Events
Unit - A unit enters Gives Bounty <gen>
Conditions
Collapse Actions
Player - Set (Owner of (Entering unit)) Current gold to (((Owner of (Entering unit)) Current gold) + 250)
Special Effect - Create a special effect attached to the origin of (Entering unit) using Abilities\Spells\Items\ResourceItems\ResourceEffectTarget.mdl
Special Effect - Destroy (Last created special effect)

Then add some FloatingText triggers. I'm sure you can find a thread here containing the gold texttag options (color, etc).

Be sure to leave no leaks :D