Hello everyone.
First i want to say that i tried everything i still have some ideas and ways to try i didn't do before but they will probably all fail as rest of them did.
What i want is:
Make a script in Jass so that when i type "-add #### #### #### #"
#### is Rawcode of the spell
# is the level of all three spells
I want when i type three diferent rawcodes and number on the end which marks their level of spell that next thing will happen.
In unit casting bar i will gain spell of first rawcode.When i press ESC that first spell is deleted and replaced with second spell of second rawcode.And when i press ESC again it is replaced with third rawcode but when i press ESC again it goes back to first rawcode so Three spells goes in circle in the same spot each time i press ESC (If you can't do it with ESC make it another button but say it which one).
And when i use that add command again with new three diferent rawcodes ESC thing will start replacing new spells of course.
If you manage to do this tell me what to put in global what in endglobal but if you don't want to you don't have to.
Questions:
Q:Does it have to be three diferent rawcodes/spells?
A:Yes.
Q:Does it need to be without any memory leak?
A:If you are skilled enough to do such thing i would really apreiciet it.But it isn't that much necessery since it wouldn't create much memory leaking i think.
Q:Do i need to test it before i post results?
A:Yes of course.
Note: When i press ESC the swaping spell action must occure when unit that has any of this three rawcodes on him.If unit is not selected or wrong unit is selected nothing happens.
If you need more information about this request feel free to ask and i will responde as soon as possible.
First i want to say that i tried everything i still have some ideas and ways to try i didn't do before but they will probably all fail as rest of them did.
What i want is:
Make a script in Jass so that when i type "-add #### #### #### #"
#### is Rawcode of the spell
# is the level of all three spells
I want when i type three diferent rawcodes and number on the end which marks their level of spell that next thing will happen.
In unit casting bar i will gain spell of first rawcode.When i press ESC that first spell is deleted and replaced with second spell of second rawcode.And when i press ESC again it is replaced with third rawcode but when i press ESC again it goes back to first rawcode so Three spells goes in circle in the same spot each time i press ESC (If you can't do it with ESC make it another button but say it which one).
And when i use that add command again with new three diferent rawcodes ESC thing will start replacing new spells of course.
If you manage to do this tell me what to put in global what in endglobal but if you don't want to you don't have to.
Questions:
Q:Does it have to be three diferent rawcodes/spells?
A:Yes.
Q:Does it need to be without any memory leak?
A:If you are skilled enough to do such thing i would really apreiciet it.But it isn't that much necessery since it wouldn't create much memory leaking i think.
Q:Do i need to test it before i post results?
A:Yes of course.
Note: When i press ESC the swaping spell action must occure when unit that has any of this three rawcodes on him.If unit is not selected or wrong unit is selected nothing happens.
If you need more information about this request feel free to ask and i will responde as soon as possible.
Last edited: