PDA

View Full Version : WoW mini


Dayoh
07-26-2005, 7:25 PM
after a long break of working on this map, i am starting again.
1 Question, i need a trigger to say u pick up two "Herbs" in your inventory then a "potion" will replace the herbs (like in troll tribes) i could do this myself but im working on a different part of the map.

oh and one more thing, how do u insert ur own custom sounds for units?
If someone tells me or if i find out, I will insert some peoples voices.

But if u want in i need the solution and u will need to send in ur voice clip in a file that WC will reconize.

XZminX
07-28-2005, 8:58 AM
Trigger problem:
create an integer variable called Herbs

Trigger 1
Events: Unit picks up item
Conditions: Item being manipulated equal to herb
Actions:
For Each integer A from 1 to 6:
{ If/then/else--IF unit item slot A contains herb THEN Herbs=Herbs+1 ELSE do nothing }
Trigger - Run trigger 2

Trigger 2
Actions:
IF Herbs==2 THEN { for each integer A from 1 to 6: IF Unit item slot A contains herb THEN Remove herb from unit ELSE do nothing } ELSE do nothing
Item - Crate Potion and give it to unit
Herbs = 0


For inserting sounds, you need TFT (Import Manager). Make your files (mp3 format for music and wav for sounds). Then open Sound Manager and play with it. Make notice that importing sounds will greatly increase your map size.

Dayoh
07-29-2005, 8:19 PM
Many thanx :)

a_p3rf3ct_circl3
08-14-2005, 4:38 AM
I dont know about you but i like my triggerers easily done so heres a different trigger code for your herbs (excactley as shown above im pretty lazy so i decided not to change anything from my copy, but you could easily modify it this is for a sword upgrade trigger)Level 2 sword
Events
Unit - A unit Acquires an item
Conditions
(Item-type of (Item carried by (Hero manipulating item) of type |cff696969Iron Sword|r)) Equal to |cff696969Iron Sword|r
(Item-type of (Item being manipulated)) Equal to Tome of Weapon 2
Actions
Item - Remove (Item carried by (Hero manipulating item) of type |cff696969Iron Sword|r)
Item - Remove (Item carried by (Hero manipulating item) of type Tome of Weapon 2)
Special Effect - Create a special effect at (Position of (Hero manipulating item)) using Abilities\Spells\Human\Resurrect\ResurrectCaster.m dl
Item - Create |cffbfefffSteel Sword|r at (Position of (Hero manipulating item))

this is easily changable to accomadate your drugs *ehem* herbs

Dayoh
08-14-2005, 7:26 PM
this is easily changable to accomadate your drugs *ehem* herbs

;) :) lol