How to make a Potion Book GUI-Trigger
Moderator: Cheaters
-
- Member
- Posts: 58
- Joined: December 8th, 2007, 8:11 pm
How to make a Potion Book GUI-Trigger
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]
-
- 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
Wouldn't it be easier to just make the potions stack?
However this will be kinda of difficult, but mabye can be done....
However this will be kinda of difficult, but mabye can be done....
-
- Member
- Posts: 58
- Joined: December 8th, 2007, 8:11 pm
Re: How to make a Potion Book GUI-Trigger
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.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....
[blinking]Sorry for my english ^_^[/blinking]
-
- 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
Problem with that, is you cannot put the *Items* inside the spell book to my knowledge
-
- 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
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.
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.
-
- Member
- Posts: 77
- Joined: May 27th, 2008, 9:08 pm
Re: How to make a Potion Book GUI-Trigger
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.
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.
-
- Forum Fanatic
- Posts: 315
- Joined: October 16th, 2007, 7:32 pm
Re: How to make a Potion Book GUI-Trigger
Look at my spell book! just manupulate that to your needs.
http://forum.wc3edit.net/general-map-ed ... 10544.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-f ... 10541.html
Those should make it preaty easy there step by step instuctions
http://forum.wc3edit.net/general-map-ed ... 10544.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-f ... 10541.html
Those should make it preaty easy there step by step instuctions