• 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] Having trouble getting the number of charges from an item as an integer.

Status
Not open for further replies.
Level 6
Joined
Dec 9, 2014
Messages
176
So I'm making a quest that uses an items charges as a way of determining how many of an item you have to be used towards the quest progression. Currently, it involves getting wool from sheep and having the number of charges on the item to display how many you have out of 5 and when 5 is obtained, it should complete the quest and stop announcing more pick ups. I'm trying to use the "Item carried by hero of type" function but it doesn't seem to apply correctly here as it always gets zero from the charges no matter how many there actually are on the item. Also, even when I do manage to work things so that the integer changes to 5, I am unable to trigger the 2nd part of the trigger that makes the quest completable. Any help is much appreciated!

Update: So I went ahead and abandoned the setup for item based quest credit as the amount of complications I was running into was becoming ridiculous. I went back to the integer counter instead where doing the quest objectives simply moved the counter forward by one until upon reaching 5, the quest completed and I had no further issues. It's not as aesthetically pleasing to use integers to represent quest items, but it does work and without a way to cheat or exploit it. After working that in and figuring out why one of the quests was repeating itself, I can now say that in one night, I fixed 3 very annoying bugs and tomorrow when I when up, I can continue making more content. Woohoo! v0.6 should be out within the next couple of days. :)
 

Attachments

  • Screenshot 2017-12-13 02.37.53.png
    Screenshot 2017-12-13 02.37.53.png
    353.1 KB · Views: 114
Last edited:
Status
Not open for further replies.
Top