• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

please help.

Status
Not open for further replies.
Level 1
Joined
Jun 23, 2004
Messages
3
Please help me make it so that i can click on an item and when i do so the hero that had the item will dissapear and a new hero will be created.

Please help me soon.

Yuke.
 
Level 13
Joined
May 5, 2004
Messages
1,330
First, you create any item that can be used (e.g. healing potion).
In the following trigger i will simply call it item.

TriggerName
Events
Unit - A unit Uses an item
Conditions
(Item-type of (Item being manipulated)) Equal to item
Actions
Unit - Replace (Hero manipulating item) with a [Here your new Hero] using The old unit's relative life and mana
 
Level 4
Joined
Jun 22, 2004
Messages
94
Du must aber darauf achten dass du auch alle items übernimmst + ability cooldowns etc. das ist ein wenig komplizierter geht aber wenn man weiß wie auch recht einfach:
musst alle items in ner variable[array] speichern und dann entweder vor dem löschen der ursprungseinheit droppen wenn sie ladungen habne oder statt der items deren typen (z.b. heiltrank) speichern und dann für integer A von 1 bis 6 halt die items über die variale neu erstellen lassen. Auch darfst du bei helden die exp/level nit vergessen was schieriger ist sind die spells weil du sonst einen helden hast der zwar das ursprungslevel hat jedoch keine spells erlernt hat. es gbitaber ne funktion die einheiten die gewünshten fahigkeiten erlernen lässt...
 
Level 13
Joined
May 5, 2004
Messages
1,330
...and here how google.ca translated it (by oz02 and DarkShadow)

You must however on it respected that you also all items take over + ability cooldowns etc. that is a little more complicated goes however even if one white as quite simple: everything must items in more ner variable[array ] store and then either before that delete the origin unit droppen if it charges habne or instead of items the their types (e.g. heal-climb) to store and then for integer A of 1 to 6 stop items over the variale provide again let. Also you may do with heroes exp/level nit forgotten which are more schieriger are spells because you otherwise the hero have that the origin level have however none spells learned it more gbitaber ne function the units the gewuenshten fahigkeiten learn let... _________________ since I briefcase know I that for everything at least one solution actually always gives and a simpler...

@Master Modmaker
Please, try to post in english because most guys don't understand german
 
Status
Not open for further replies.
Top