It has always killed me when it came to the question "How to make the Dummy Unit Cast [ My Custom Made Spell ] " and i always hesitated to ask, and i was thinking,perhaps you can help me around that?
Maybe you could use the linked listings and make a simple system as an example? Like simply creating special effects every second for 5 seconds and removing when a spell is casted? ><
well you just go through the list and do actions to whatever is in that index
ie: Create a castbar based on a real variable that stores the time left, then set that variable equal to itself - the periodic duration
All Finish in numberical order
-ListSize = 3
-RecycleList[0] = 1, [1] = 2, [2] = 3, [3] = 0
-Next[0] = 0
So eventhough there have been 4 castbars total, the indexes used were at the highest 3, because only 3 at a time at the most were being used, keeping the index very very low
LastRecycled is like another version of Previous[0]
RecycleList is like another version of Next
When the list is empty, it will use the next number that has not yet been used, starting with 1
at the beginning of the game if you start a castbar it will use 1, then if you use another one while that one is still filling up it will use 2, then if 2 finishes before 1 does, it gets added to the recycle list so RecycleList[0] = 2 and RecycleList[2] = 0 and LastRecycled = 2
then when 1 finishes right after it will be like this: [0] = 2, [2] = 1 and [1] = 0 now and LastRecycled = 1 now
then u pull from that list until [0] = 0, then u add 3, and rinse and repeat
that way the most indexes you use at one time will be the most ammount of castbars you have at a single time...
say you have 5 castbars at one time, then the index gets to 5 max, but until you have 6 at one time it will just keep re-using the 1-5 indexes
its a one way linked list that recycles indexes, so you re-use indexes that you used already, RecycleList is a variable array for integers where:
RecycleList[0] = 5, RecycleList[5] = 20, just like a linked list all the way back to 0, when you finish with an index, you set RecycleList[LastRecycled] = Index and Last recycled = Index, so u just added one to the recycle list, then to get a new index, if RecycleList[0] = 0 then you dont have any indexes to re-use and need to create a new one, then you up the variable ListSize and use that as the new index rather than taking RecycleList[0]
does that make sense?
you add the link like this:
instead of doing what you normal do (adding the unit to a unit group i think)
you use the allocate trigger i posted on your thread, which gives you a new index
then you can do this:
set next[new_index] = 0
previous[new_index] = previous[0]
next[previous[0]] = new_index
previous[0] = new_index
because when looping it is much more efficient to count backwards down to 0, when you go up from 0 to some # it is less efficient, generally this will be in an increasing order in the list so i go from previous[0] down
Loop for each integer A from 1 to ListCount do actions
Loop - Actions
Floating Text - Create the floating Text that reads Combined Strings(Subtext(1, Integer(TimeLeft[TempInteger] / TimeMax[TempInteger]), ||||||||||||||||||||||||||||||||||||||||) + Substring((Integer(TimeLeft[TempInteger] / TimeMax[TempInteger]) + 1, 40, ||||||||||||||||||||||||||||||||||||||||) This creates the bar by using substrings rather than combined strings
Set TimeLeft[Temp_Integer] = TimeLeft[Temp_Integer] - 0.05
Set Temp_Integer = Previous[Temp_Integer] <--------------------Now Temp_Integer is a different number, so you are doing all of those actions again to a different index
Where TimeLeft is the time left on the cast, and TimeMax is the maximum time of the cast, see where that would work?
no it will actually cause less lag, u just wont be able to have 3 hr long games because after a while the game will start to lag like a mofo, it slowly uses up more and more ram, but wont cause lag until they have like none left
Next[0] = 1, Next[1] = 2, Next[2] = 3, and Next[3] = 0 then:
0 -> 1 -> 2 -> 3 -> 0
basically it goes in a circle that gets bigger and bigger the more things you add to it, but you can go through all of them almost instantly with the triggers i posted on your system, the only problem with it is that it is not efficient triggers wise and leads to a high trigger count making your map less efficient, in jass you dont have that problem and your trigger count does not go up 1 time in that entire system
Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
@tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart