How to make a Potion Book GUI-Trigger

For fulfilled maps that most likely don't work on the latest patch (1.24 or later).

Moderator: Cheaters

User avatar
br3akth3w1nd
Member
Posts: 58
Joined: December 8th, 2007, 8:11 pm

How to make a Potion Book GUI-Trigger

Post by br3akth3w1nd »

How to make a Potion Book GUI-Trigger? So when you open this book (its like an ability) it shows how much potions you have and when you click on a potion, if the potion is for health it heals you. So the book serves as a Potion Bag or something like that.
[blinking]Sorry for my english ^_^[/blinking]
Arabidnun
Forum Staff
Posts: 506
Joined: August 5th, 2007, 1:38 pm
Title: Gui Expert
Location: *Unknown*

Re: How to make a Potion Book GUI-Trigger

Post by Arabidnun »

Wouldn't it be easier to just make the potions stack?

However this will be kinda of difficult, but mabye can be done....
User avatar
br3akth3w1nd
Member
Posts: 58
Joined: December 8th, 2007, 8:11 pm

Re: How to make a Potion Book GUI-Trigger

Post by br3akth3w1nd »

Arabidnun wrote:Wouldn't it be easier to just make the potions stack?

However this will be kinda of difficult, but mabye can be done....


I am trying to make the potion to stack in the book to. I am making this only because i dont want any potion in the inventory.
[blinking]Sorry for my english ^_^[/blinking]
Arabidnun
Forum Staff
Posts: 506
Joined: August 5th, 2007, 1:38 pm
Title: Gui Expert
Location: *Unknown*

Re: How to make a Potion Book GUI-Trigger

Post by Arabidnun »

Problem with that, is you cannot put the *Items* inside the spell book to my knowledge
User avatar
Aero
Forum Staff
Posts: 829
Joined: January 28th, 2007, 8:10 pm
Title: JASS Programmer
Location: Canada

Re: How to make a Potion Book GUI-Trigger

Post by Aero »

Hm, an interesting idea and it might work.

One thing that could work is giving your hero/unit the ability to sell (dummy) units. You could give them charges this way I think.

Now, would that work inside a spell book? Maybe.
Rich Kane
Member
Posts: 77
Joined: May 27th, 2008, 9:08 pm

Re: How to make a Potion Book GUI-Trigger

Post by Rich Kane »

My idea would be to have a basic spell book, with the 2 dummy abilities eg Health potion, Mana potion and have an intiger variable for each. Simple and basic and to tell the player how many of each he has left. A simple message is displayed to the owner of the unit stating You have X Health potions and Y Mana potions in your bag.

Then give the trigger to heal/replenish mana a condition stating the variable is > 0 else skip all events. i cant think of a way to have numbers inside the book just the simple message system.
Black-Hole
Forum Fanatic
Posts: 315
Joined: October 16th, 2007, 7:32 pm

Re: How to make a Potion Book GUI-Trigger

Post by Black-Hole »

Look at my spell book! just manupulate that to your needs.
http://forum.wc3edit.net/general-map-editing-f8/how-to-create-a-wc3-spell-book-t10544.html
Only problem its in Jass but its preaty easy to manipulate you can always look at my Gui to Jass. http://forum.wc3edit.net/gui-triggers-f6/gui-to-jass-t10541.html

Those should make it preaty easy there step by step instuctions