Okay lets say I have an array arr[3][3]
and the values:
arr[0][0] = 12
arr[0][1] = 8
arr[0][2] = 3
arr[1][0] = 11
arr[1][1] =18
arr[1][2] = 9
arr[2][0] = 12
arr[2][1] = 9
arr[2][2] = 4
now I wanna find the maximum value, while the significance of the values is ascending. So the maximum would be arr[2], since arr[2][0] and arr[0][0] are the same and arr[2][1] > arr[0][1]. So the return values would be 2.
Whats the quickest way to find out the (first) index for the maximum (take into consideration that there may even be instances where all values of multiple indexes can the the same, in that case I need all max. indexes)
edit: nvm, had to rethink this for a second and it's not that hard after all.. so, this thread can be removed :D
Okay so I chose the raynor hero icon as an image for a dialog item ( button ) and it always stretches in the y-direction too far. I tried all image modes, but I can't get it to crop to the correct size (50x50)
Okay is there (now that the game is out of beta) a way to create a critical strike behavior with variable DAMAGE and CHANCE in the data editor ? (variable via upgrades)
lets say I want a hero with unlimited levels, I really don't see how it's practical to create hundrets of levels for a "simple" ability like critical strike by hand in the data editor. There HAS to be a better way to do this (without triggers)
and if not, how can I distinguish between normal attacks and abilities when I catch the damage event via trigger ?
Well, c might technically be a high level language since it needs a compiler, but it's still very close to low level languages and that's pretty obvious when you look at it's syntax, and also arrays are not pointers. Arrays are only pointers when the language defines them to be pointers - as c does. The concept of an array does not require nor imply the use of pointers. In most modern languages arrays are not pointers at all and thus can be handled like any other object.
but on topic: I was referring to the UI of galaxy which OFFERS return values as arrays. That's what confused me.
0
Okay lets say I have an array arr[3][3]
and the values:
arr[0][0] = 12
arr[0][1] = 8
arr[0][2] = 3
arr[1][0] = 11
arr[1][1] =18
arr[1][2] = 9
arr[2][0] = 12
arr[2][1] = 9
arr[2][2] = 4
now I wanna find the maximum value, while the significance of the values is ascending. So the maximum would be arr[2], since arr[2][0] and arr[0][0] are the same and arr[2][1] > arr[0][1]. So the return values would be 2.
Whats the quickest way to find out the (first) index for the maximum (take into consideration that there may even be instances where all values of multiple indexes can the the same, in that case I need all max. indexes)
edit: nvm, had to rethink this for a second and it's not that hard after all.. so, this thread can be removed :D
0
Okay so I chose the raynor hero icon as an image for a dialog item ( button ) and it always stretches in the y-direction too far. I tried all image modes, but I can't get it to crop to the correct size (50x50)
0
Not possible? I can only find add behavior, not add ability.. wtf ?
0
@pixartist: Go
bomp -.-
0
@pixartist: Go bump
0
bump :(
0
Okay is there (now that the game is out of beta) a way to create a critical strike behavior with variable DAMAGE and CHANCE in the data editor ? (variable via upgrades)
lets say I want a hero with unlimited levels, I really don't see how it's practical to create hundrets of levels for a "simple" ability like critical strike by hand in the data editor. There HAS to be a better way to do this (without triggers)
and if not, how can I distinguish between normal attacks and abilities when I catch the damage event via trigger ?
edit: same goes for an evasion ability
0
@Zarakk: Go perhaps it's blizzards new game :D
0
@egodbout: Go wouldn't it make more sense to screenshot the actual diablo 3 ui, and paste - at least parts of it - into sc2 ? (via import texture)
0
@pixartist: Go no ideas?
0
nvm...delete thread plox
0
@RileyStarcraft: Go but but as stated in the other thread, when I try to create a Marine Actor it says "Could not create Actor" ingame -.-
0
@BlinkHawk: Go
yeah, you just confirmed what I said, you CAN'T, even though the UI implies it ;)
0
Actor - Create actor Marine at point (Center of Zones[i][j])
gives me
Could not create actor, Name: [Marine]
Content1[] Content2[]
why ? Oo
0
@BlinkHawk: Go
Well, c might technically be a high level language since it needs a compiler, but it's still very close to low level languages and that's pretty obvious when you look at it's syntax, and also arrays are not pointers. Arrays are only pointers when the language defines them to be pointers - as c does. The concept of an array does not require nor imply the use of pointers. In most modern languages arrays are not pointers at all and thus can be handled like any other object.
but on topic: I was referring to the UI of galaxy which OFFERS return values as arrays. That's what confused me.