Komaqtion
You can change this now in User CP.
- Reaction score
- 469
I simply can't thanks you enough !!!!! You've really helped me alot with this
call TT_StartEx(function Move_Dummy,a,.05)
set a.e<i> = AddSpecialEffectTarget(DUMMY_EFFECT,a.du<i>,"origin")</i></i>
call UnitDamageTarget(a.cs, temp, Damage_High(a.lvl), true, false, ATTACK_TYPE, DAMAGE_TYPE, null)
Errr.... I wanted to test it, but 1.23b I can't access Battle.net to patch.
JASS:call TT_StartEx(function Move_Dummy,a,.05)
JASS:set a.e<i> = AddSpecialEffectTarget(DUMMY_EFFECT,a.du<i>,"origin")</i></i>
In function Effects, .05 and "origin" configurable?
JASS:call UnitDamageTarget(a.cs, temp, Damage_High(a.lvl), true, false, ATTACK_TYPE, DAMAGE_TYPE, null)
In function Move_Dummy, null will be configurable? weapontype.
library TT initializer Init requires HASHTABLE
Errr.... I wanted to test it, but 1.23b I can't access Battle.net to patch.
JASS:call TT_StartEx(function Move_Dummy,a,.05)
JASS:set a.e<i> = AddSpecialEffectTarget(DUMMY_EFFECT,a.du<i>,"origin")</i></i>
In function Effects, .05 and "origin" configurable?
JASS:call UnitDamageTarget(a.cs, temp, Damage_High(a.lvl), true, false, ATTACK_TYPE, DAMAGE_TYPE, null)
In function Move_Dummy, null will be configurable? weapontype.
Struct "Data":
"real array pointx [ANGLES]"
"real array pointy [ANGLES]"
I don't know why you are using arrays for these, as a matter of a fact, you don't need to store them at all.
Instead, you should store the sin and cos angle values so you don't have to get them every loop.
set a.pointx<i> = xd+SLIDE_SPEED*Cos(I2R(i*(360/(ANGLES-1)))*bj_DEGTORAD)
set a.pointy<i> = yd+SLIDE_SPEED*Sin(I2R(i*(360/(ANGLES-1)))*bj_DEGTORAD)</i></i>
"set a.b = false"
You can initially set the member's value "boolean b = false".
private struct Data
unit array du [ANGLES]
unit cs
real array pointx [ANGLES]
real array pointy [ANGLES]
boolean b = false
player p
group g = CreateGroup()
integer lvl
effect array e [ANGLES]
integer ticks
static method create takes unit u returns Data
local Data a = Data.allocate()
set a.cs = u
set a.p = GetOwningPlayer(u)
set a.lvl = GetUnitAbilityLevel(a.cs,SPELL_ID)
return a
endmethod
endstruct
Function "Effects":
"set a.ticks = R2I( 2.5 / .05)"
Shouldn't this line be a configurable as the distance of the spell depends on it?
Should have posted this in the KT2 thread, I'd see it and update it immediately. I didn't realise any users had run into problems with this constant. I'll get that fixed up ASAP so you can switch back.when i change this value:
JASS:// Tazo's Instance Maximum is the number of periods you can have // which is greater or equal to the Period Threshold. This may be // removed completely in later versions. private constant integer TAZO_INSTANCEMAX=64
to a higher value it happens less often, and to a low it happens more often so Jesus4Lyf might need to get rid of this value as he said in the comments
I understand i might be able to use that here:
JASS:set a.pointx<i> = xd+SLIDE_SPEED*Cos(I2R(i*(360/(ANGLES-1)))*bj_DEGTORAD) set a.pointy<i> = yd+SLIDE_SPEED*Sin(I2R(i*(360/(ANGLES-1)))*bj_DEGTORAD)</i></i>
But i also use them here:
So, how can i go around that ?
Changed ... This is what you meant right ? :S
I was confused to see a spell switched from KT2 to TT! But yeah, I see why.
Should have posted this in the KT2 thread, I'd see it and update it immediately. I didn't realise any users had run into problems with this constant. I'll get that fixed up ASAP so you can switch back.
Err. And then this also shouldn't need 1.23b, right?
But then there's still a limit there ! TT has none, right ??? :SKT2 will run this spell faster than TT. I guarantee it. You can switch it back now, but won't be able to spam it more than ~50 times at once until after I update it. Which I will do soon anyway. :thup:
Also, you shouldn't have EAE there... It's broken, unapproved, and irrelevant to the spell. EAE_Effect does nothing but leak, for example.
Edit: What the hell? This shouldn't even USE Tazo. There should be no limit at all to this with KT2! Even now!
But then there's still a limit there !
Shouldn't as in, doesn't. This has no limits with KT2. Before or after the next update makes no difference. I just tested it for you also with KT2, just changing TT_GetData to KT_GetData and TT_StartEx to KT_Add, and it works 100% fine, spamming it as hard as I can on my crappy laptop.This shouldn't even USE Tazo. There should be no limit at all to this with KT2! Even now!
Also, you shouldn't have EAE there... It's broken, unapproved, and irrelevant to the spell. EAE_Effect does nothing but leak, for example.
Just change "Tormwntal Wrath" to "Tormental Wrath" in the top line in the large text on the front of this thread, please.
And next time, should you ever have a problem with any of my systems, please don't hesitate to tell me/ask for help for two reasons... 1. If it needs fixing, I can do it. 2. I actually like to help, and to make it a pleasant experience for people using my systems as much as feasible...
V 1.00 - Initial release!
V 1.10
¤ Changed "Range functions" to return real values instead of using I2R.
¤ Added a new constant, ANGLES, which configures how many angles the effects will show at.
¤ Added some new comments on the constants.
¤ Removed nulling triggers.
v 1.15
¤ Split the global block into two.
¤ Added constants for attack-type and damage-type.
¤ Added a constant to decide how many angles the effects will be created at.
V 1.20 - Major Update!
¤ New library replaces "Timed Handles".(Named "EAE" by kingkingyyk3, Thanks ALOT !!!)
¤ Now destroys dummy and special effect together, instead of the dummy had timed life.
¤ Using the new "EAE" library, now creates the last special effect at the right point.
¤ Fixed the spell not doing any damage, because the constants "LEVEL" didn't get set before the function for the damage and range. XD
¤ Instead of creating 16 groups inside the loop, it now creates 1 group each outside the loop in the 3 functions using them.
¤ Added/Changed some comments.
V 1.20b
¤ Fixed it to use the constant ANGLES correctly.
V 1.21
¤ DAMAGE_FACTOR is now a real.
¤ Uses global group instead of many local ones.
¤ Added another constant, "SLIDE_SPEED". Determines how much the moving effect is moved each 0.05 seconds.
V 1.22
¤ Updated Key Timers 2 to the latest version.
¤ Changed a typo in credits. Sorry, Jesus4Lyf XD
V 1.23
¤ Updated Key Timers to 1.7.0. :D
¤ Reduced the map size to half, lol.
V 1.23b
¤ Updated Key Timer 2 again. XD
V 1.24
¤ Fixed a bug where the dummies didn't get destroyed and stopped by using Timer Ticker instead of Key Timers 2.
¤ Changed some comments a bit.
V 1.25
¤ Added levels to the actual ability, as it didn't have it before.
¤ Changed name to "Tormental Wrath"!
¤ Changed a commonly used local unit variable to a global instead.
¤ Kingkingyyk3 updated the EAE library to be more efficient!
V 1.30
¤ Big rewrite of the spell's script! (Thanks to Kingkingyyk3!!!!)
¤ Now only needs the system Timer Ticker. (No more EAE that is :D)
¤ Fixed a bug where the dummy projectiles went further with higher speed than the others!
¤ Now completely MUI!!
¤ Made some adjustments to the comments.
¤ Balanced the damage slightly, reduced the damage by 40%!
V 1.31
¤ Added a couple of constants: Weapontype, attach point, slide interval!
¤ Changed weapontype to WEAPON_TYPE_WHOKNOWS :D
V 1.4
¤ Added 2 configurables. DISTANCE and TIME.
¤ Added "some" more comments on some configurables.
¤ Removed a struct member, now uses locals instead.
¤ Switched from using TT (Timer Ticker) to using KT2 (Key Timers 2) ... Again!
¤ Some minor tweaks.