• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

spellbook based item system isnt working

Status
Not open for further replies.
Level 8
Joined
Mar 3, 2009
Messages
327
I made an item system where you use an item, and an ability gets added to the spellbook "equipped items" which gives stat bonuses and stuff. You click the ability to "unequip", getting the item back in your inventory. after that, if you equip the item again, it removes the item but doesn't put it in the spellbook.

I won't be surprised if there's no way to fix this, but i'll appreciate any help.
also, i realise this wouldn't work universally if it was in an RPG or something, but ill fix that if i can get the stupid spellbook to work :cool:
 

Attachments

Check similiar systems in the resources for directions/examples on how to make this kind of system.

Also read through this thread about the spellbook-bug if you haven't, You may also want to check this thread.

This is a system which seems to function the same as yours. It's open-source so you can check how I solved this.

It'd be easier to help you solve your problem if you didn't protect the map (or did you use a modified WE?). For some odd reason the item seems to be disappearing randomly when you unequip, also, the stat bonus isn't always applied.
 
Apparently I was just getting an odd error message that my WE is out of date (which it isn't).

Anyway, the reason it sometimes doesn't give an unequip ability, and the same reason you sometimes don't get the stat-bonus is OE-related.

Change "Maximum Spells" and "Minimum Spells" on "Claw Dummy" to 2 and it'll work fine.
The engine adds a random number(between "Minimum" and "Maximum") of abilities to the spellbook.
 
Status
Not open for further replies.
Back
Top