HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Ability that creates items?

10-05-2003, 02:47 AM#1
Sheer_FALACY
Is there any ability that creates items? I know how to make buidlings and units, but not items. If there is an ability that creates items, it is possible to do even more with spellbook.
10-05-2003, 02:52 AM#2
saus
Do you mean an ability that makes you a random item in your inventory when you use it, or a hero ability that gives you a better item every level, or what?
10-05-2003, 02:55 AM#3
Saethori
Use the best choice when dealing with triggers like this..

Dummy abilities.

Give the hero the item when he uses the ability. If it's a multi-level ability, use triggers and variables to record what level it is. (don't forget to take into account the potential issues with the Tome of Retraining)
10-05-2003, 02:57 AM#4
Sheer_FALACY
So there isn't any way other than triggers?
10-05-2003, 05:14 AM#5
Dragon
No.
10-05-2003, 07:49 AM#6
P.H.O.B.O.S
do like this..

first u Create a spell like Firestorm ..Whitout the Fire..
and name it item Spell

after that u Create a Unit and name i Spell Unit and do so it is invisible..

after that u Create a Region and name it Item Spell ...and it have to be big as the item..not bigger or Smaller....

and in this Tourtal your heros name is HERO...OK??

Now The Triggers

Events
Specific Unit Event
HERO Begins casting an ability

Conditions
Ability Camparison
(Ability being cast) Equal to Item Spell

Actions
Unit - Create Units Facing Angle
Create 1 Spell item Unit for Neatrual Passive at (Center of (Item Spell) Facing Default Building Facing degrees

Region - Move
Center Item Spell on (Position of Spell Unit)

Item - Create
Create (for Example) Fire Orb at (Center of Item Spell)


I think that will Work..
10-05-2003, 07:55 AM#7
35263526
why make it so complicated?
10-05-2003, 12:33 PM#8
Gurrgel
Why not just create the item in the heroes inventory, think it will drop to the ground if his inv is full anyway, so that wouldn't be a problem. Don't remember the exact action, but it's under Hero or Item actions I think.
10-05-2003, 01:14 PM#9
Saethori
Indeed. If something would occur that would put an item in a hero's inventory, but all 6 slots (or less if you modify the ability) are full, then the item appears where the hero is standing.

Also, this occurs if the hero is buying tomes (which, naturally kick in on purchase), but whatever stat he's trying to boost reached it's max.. which is only really capable with exp and levels anyway but still....

Point being, Just give 'casting unit' the item when you detect the spell is cast.

One trigger used if it's a single-level spell.

If it's multi-trigger, then you can get away with just two triggers if no Tomes of Retraining exist on your map.. three if they do.
One to raise a variable (make it an array if more than one player might be able to get this hero) by +1 every time 'Unit learns a Skill' = 'your skill'..
One to give an item using a chain of If/Then/Else actions to check the current level and award appropriately..
And the third to set the appropriate variable to 0 every time the Tome of Retraining is used.
10-05-2003, 02:54 PM#10
ObsidianTitan
You could easily get around tomes or retaining by making it trigger of a summoned unit. Simpily check the unit, generate the item, then remove the unit.