• 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] Buyable and levelable spells from shop

Status
Not open for further replies.
Level 4
Joined
Apr 15, 2011
Messages
108
That system is nothin but using different spellbooks for different spells
Also, they are not levelable
also afaik you can do it in GUI and i dont know much jass, it doesnt look like what im looking for didnt really checked but there is still 11 spell limit tho
And again, i dont know much jass :)
 
its not different spellbooks for different spells, but rather, different spellbooks for different spell-types... and they can be leveled... its so easy to add that functionality... just giving you some other options... ^.^

if you want to get past the 11 spell limit, you must really add books inside books...
check this, a multipage spellbook, though its in vJASS...
http://www.hiveworkshop.com/forums/spells-569/libram-v1-0-0-0-a-193521/

if you want to do it in GUI, then just use spellbooks inside spellbooks, though there seems to be a limit to the stack... I think you can only do a three level spellbook using this way... as this is the only way to do it... (at least in GUI and normal JASS)...

There is another method, by using DynamicGUI (which would enable you to "add" buttons to the UI), but it requires lots of vJASS knowledge...
 
Level 4
Joined
Apr 15, 2011
Messages
108
>its not different spellbooks for different spells, but rather, different spellbooks for different >spell-types... and they can be leveled... its so easy to add that functionality... just >giving you some other options... ^.^

it may be so easy to add that function for you, but for me... all i can do with jass is editing some values :)
If you can edit that thing to make it levelable and give me instructions to how to use it, i will be glad
 
Level 4
Joined
Apr 15, 2011
Messages
108
Well, i want to level them when people buy it from shop.
But i cant get it to work

//Untitled Trigger 001
// Events
// Unit - A unit Acquires an item
// Conditions
// (Item being manipulated) Equal to Crown of Kings +5 0002 <gen>
// Actions
// Unit - Set level of #War Stomp for (Buying unit) to 2

And map cannot be even debugged :) it sends me to menu when i try to run it,
(p.s: yes i did increased max level of war stomp of course)
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
  • Unit - Set level of #War Stomp for (Buying unit) to 2
This is wrong, as you will set that level to 2 as long as you buy it (but the maximum level of this ability would be like greater than 2)

This is how you do it:
  • Unit - Set level of Acid Bomb for (Triggering unit) to ((Level of Acid Bomb for (Triggering unit)) + 1)
By using simple Arithmetic function, you can gain this formula

So, basically, it's: X + 1 = Current Setting Level
What you do is: X = 2 (Permanent Setting Level)
This is, wrong.
 
Level 4
Joined
Apr 15, 2011
Messages
108
  • Unit - Set level of #War Stomp for (Buying unit) to 2
This is wrong, as you will set that level to 2 as long as you buy it (but the maximum level of this ability would be like greater than 2)

This is how you do it:
  • Unit - Set level of Acid Bomb for (Triggering unit) to ((Level of Acid Bomb for (Triggering unit)) + 1)
By using simple Arithmetic function, you can gain this formula

So, basically, it's: X + 1 = Current Setting Level
What you do is: X = 2 (Permanent Setting Level)
This is, wrong.
it is faster way to debug. of course its wrong, i didnt wanted to crate correct thing. my point wasnt making it lvl+1 every pick. my point was to see i can set level or not.
what do you mean it returns you to the menu? you mean you cannot start the map?
Yes, i cannot start map.
 
nah, I won't edit it for someone else unless I get permission from the creator... and I'm so busy with life so I cannot really do it, even if its pretty simple...

anyway, have you edited the code in anyway? coz a simple mistake could have caused this... or if the map is new, always save it twice first before testing...
 
Level 4
Joined
Apr 15, 2011
Messages
108
nah, I won't edit it for someone else unless I get permission from the creator... and I'm so busy with life so I cannot really do it, even if its pretty simple...

anyway, have you edited the code in anyway? coz a simple mistake could have caused this... or if the map is new, always save it twice first before testing...

IF its so simple, making it would take less time then replying
noup, i didnt touched any jass code.
 
Status
Not open for further replies.
Top