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

[Solved] Looking for a clever way to replace achievement book on heros

Status
Not open for further replies.
Level 7
Joined
Mar 10, 2005
Messages
55
hello,
at the moment each of my heros has a spellbook which shows them the achievements they got. Those achievements are a spell list in this book. When unlocked, I increase the level of the spell according to my likings.

Each achievement has two parts:
1) a dummy part which shows the level and the description and
2) an effect part which gives e.g. bonus stats to the hero.

Because of a cleaning up, I wanna give the achievement book to the backpack and remove the spellbook from all heroes.
Showing the dummy on the baclpack works fine but how can the hero get the +stats if I remove the spellbook from them?

I tried adding the (+stats-)skill as a hero or as a normal ability but both give me this strange icon without description:
passive skill without book.png


Perhaps I can do all of it an much easier way?

Thanks in advance!
Mc
 
Last edited:
Level 12
Joined
Jul 4, 2016
Messages
634
You can use chopstick's bonus mod BonusMod


function SetUnitBonus takes unit u, integer bonus_type, real amount returns real
-> Set the specified bonus type to amount for the unit
-> Example: call SetUnitBonus(GetTriggerUnit(), BONUS_DAMAGE, 100)
 
Status
Not open for further replies.
Top