HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Transforming a Unit With Gold

12-11-2003, 01:56 AM#1
WarGod-X
Okay, You've noticed the Obsidian Statue's spell: Destroyer Form. It transforms the statue into another unit while costing the player gold and lumber.

What I want is an ability that changes a footman to a knight that costs 100 gold. However, the spell editor does not allow me to adjust the ammount of gold/lumber it requires to transform the unit.

I need to know how to create such a spell and if there are any shortcuts to doing so. I know it's possible because I've seen it in other maps (which are editor protected). Any help would be useful.
12-11-2003, 02:03 AM#2
Dragon
I'm sure you can change the gold and lumber amount for Destroyer Form.

Anyway... use an upgrade and make it instant, give it your cost, then add effects with triggers.
12-11-2003, 02:03 AM#3
YellowSubmarine
I believe you simply change the cost of the unit to be transformed into. Not sure though.
12-11-2003, 02:17 AM#4
Pheonix-IV
make the destroyer form ability, make the unit transforming into the knight and make the knight cost 100 gold. Bingo job done.
12-11-2003, 07:30 AM#5
Aristotle
Actually, it's the upgrade name. Main buildings upgrade to their higher tier forms, obsidian statues do the same. If you want to make it work out like that, create a custom unit based off the knight, set its costs as you will and set build time to nothing, then set the footmen with the upgrade for becoming a knight, thus each footman to knight creation is individual, and you can still make knights the old fashioned way.
12-11-2003, 07:35 AM#6
Pheonix-IV
really? You sure about that?
12-11-2003, 08:31 AM#7
ImperialNaga
Erm... try this:

Code:
Event: A unit starts an effect on an ability
Conditions: Ability being cast = (ur abilty)
Actions: 
Set (Footman) = Casting unit
Replace (Footman) with Knight
Add -100 gold to (Footman)


Make the spell base under "Roar" or "Berserk"
Note: (Footman) is a variable under "units"
12-11-2003, 08:44 AM#8
Pheonix-IV
omfg... you dont need triggers.... i'll make a test map to show you, jeezus.
12-11-2003, 08:54 AM#9
Pheonix-IV
Here it is, carefully look at everything i've changed.
12-11-2003, 09:39 AM#10
Aristotle
Wow, with enough ignorance people will take pity and do everything for you...
12-11-2003, 12:35 PM#11
ImperialNaga
Quote:
Originally posted by Pheonix-IV
omfg... you dont need triggers.... i'll make a test map to show you, jeezus.


Hehe..
Thx me man... If i din't say the triggers out.. the tutorial/demo map won't be out :ggani:

No flaming BTW...
12-11-2003, 01:11 PM#12
Panto
Incidentally, setting the unit to upgrade into a knight like a building upgrades does work.
12-11-2003, 09:34 PM#13
Pheonix-IV
yes it does but it makes the upgraded unit a seperate unit, so you have to reset all your selections and groups, you dont have to do that with my way.