• 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.

[Trigger] I got a lot questions so plz help!!!

Status
Not open for further replies.
Level 4
Joined
Oct 28, 2007
Messages
72
Am wan to to ask:
1 Can i do triger that exmp:"hero buy 2 items,first item give hero :60dmg,10% atack speed,life steal 13%,second icon give 4 armor,500 mana 250 life,
so my question can i do triger that will "remove 2 items and create new but with all this from this 2 items together???like copy that abilitys from icons but i fear that will stuck the game or it will create some bug?
or only like 2 icons exmp:1icon give 40 dmg,10% atack speed and second
give 55dmg and 13%atack speed and when mixed together 95 dmg and 23% atack speed???

2
Can i edit spellbook that i can sell or drop spell from it?like item system and can i set spellbook like ability?i want to do this with trigers because i dont know jass...and it will be great if i can use 4-5 spell books like 1st spell book all auras,2nd all powers for regeneration and heal,3rd units spawn.....

Please if you cant please help me or if you know direct link to description how to create or some teory....everything is helpfull btw THX...
 
Level 9
Joined
Oct 17, 2007
Messages
547
1. YOu need 3 items, the 3rd one will have all the abilities of the 1st and 2nd, just remove the first 2 and add the 3rd.

2.Give each of the additional spell book a different ID, and put them all in another empty spell book. Should be able to open different ones.

NOTE: the only way to add or remove spell from a spell book is create a lot of different disabled spell books with the same ID which contains the spells you want to add or remove.
 
Level 4
Joined
Oct 28, 2007
Messages
72
yes i know to do this with items but "what if i want to 1+2=3+4=5+6.... what i f i want to
mix together many icons???i can add abilitys like 5-6 to one icon right? so its a problem...

And do you have some tuts about changing id of spellbooks??or can you make some example??
 
Level 9
Joined
Oct 17, 2007
Messages
547
Look in the Spell Book skill and scroll down to "Data - Base Order ID" thats the ID I don't think you need a Tut.

If you encounter problems with adding too many skills into 1 item you can use triggers. Add those skills into a disabled spell book with a unique ID and trigger the game to add them whenever the unit has that specific item and remove it whenever the item is dropped or sold.
 
Status
Not open for further replies.
Top