I always wanted to ask why the style of this website was changed into this incredibly annoying ~400px fixed-width shit. I know its been there for quite some time but after it was changed i didnt bother logging in anymore because i found it impossible to work with the new website, so im asking...
As far as i remember this system doesnt even handle the duration of buffs (except the destroyeTimed), but you can code that yourself.
The problem i see about an integer that just counts the current instances on the unit via struct member is: This way you have only 1 instance of the buff +...
Too bad the bug with the bufficon removal on multiple buff instances of same type has not been fixed, is there some kind of inofficial fix somewhere? Otherwise im really thinking about fixing it, should be less work then writing a similar system from scratch.
Hello,
im trying to use stub methods in ZinC, just like in vJass, but they just wont work. Im not sure whether ZinC just doesnt support them (quite unlikely) or the keyword is different / im using it the wrong way.
Here is my test code:
//! zinc
library Test {
struct A {
stub method...
You could just replace all UserData calls with Hashtable Lookups.
SetUnitUserData(u, i) -> SaveInteger(myHash, GetHandleId(u), 0, i)
GetUnitUserData(u) -> LoadInteger(myHash, GetHandleId(u), 0)
But this is like 70% slower.
The first one is not the Problem, but anyway its easier with
function IsUnitIndexed takes unit u returns boolean
returnGetUnitId(u) != 0
endfunction
But the other two:
function OnUnitIndexed takes IndexFunc func returns nothing
function OnUnitDeindexed takes IndexFunc func returns nothing...
Im not sure whether its a new feature in AutoIndex or you just forgot to implement this in AIDS to provide compatibility, but AIDS does not have the functions:
function IsUnitIndexed takes unit u returns boolean
function OnUnitIndexed takes IndexFunc func returns nothing
function...
I fixed this spell, cause im gonna use it in my map. It now doesnt need ABC anymore and i hope all leaks are fixed.
Some changes i made (sry i thought about uploading it here after i already changed):
- only 1 level but damage can depend on stats
- i removed some comments
library...
Hello,
im using an AIDS struct to assign custom stats to all units in my map. This works pretty well, my only problem is the initialization order. AIDS is nearly on top of my ini order cause damagedetection and stuff use it. But the .onCreate method of my AIDS struct requires some values that...
set newCreep = CreateUnit(Player(0), creepType, posX, posY, face)
that of course should be dynamic, im sry I used player 1 for debugging ;)
Well, he can write his stuff into the conditions function^^
Done, thx
Well I do store different stuff in the custom value of units. Thats why I made the...
I created a creep revivel system for an orpg which revives dying creeps at the spot where they originally were placed, but im not sure whether its performant and doesnt cause laggs or something else.
The Idea: Save the positions of the creeps in an array and save the index as customvalue. After...