Couldn't find a good title for my problem so sorry for that.
I have a problem where I have a 2D array of [2][5] each with a real value:
array[1][1] = 25.00
array[1][2] = 17.00
array[1][3] = 31.00
array[1][4] = 5.00
array[1][5] = 15.00
and the values of [2][..]
all have diffrent values
also all values can change at any given time
now these values are just an example
ok now i want to do a chance based thing on them, but I have no idea how to do that.
for example all these values represent the chance of a unit spawning, and every second I want to spawn a unit. Now the total chance (if you add all values.) is 93%, but I want to spawn a unit everytime not only 93% of the time.
So how would I summon a unit based on the chances in the array?
If I'm correct you can only have 4 columns per row and for the other 2 trees just input (when creating a button) that you want to create a button for tree 2 or 3.
hmm about the multiple talent "trees" I have no idea might be possible.
And about the variables if you have a set variable ..... at the top of the trigger the variable should be pointing to a parameter (9/10 times) and if you have a switch wich states
if 1 update ability button
if 2 update passive button
then 1 needs to be ability
and 2 needs to be passive
(these can be find in preset tab)
if 1 set variable 5* ....
if 2 set variable 10* ...
then 1 needs to be 5
and 2 needs to be 10
(these are also found in preset tab)
After you copy the triggers to your map for some reason some variables get removed in the triggers you just have to reset them, but most of the time is logical wich variable is supposed to be somewhere.
And you can have up to 3 trees in a talent window.
I created a building and I wanted it to be buildable on a ramp so I changed the footprint(as stated in a blizz post), but now units can just walk through my building:S
So is there any way to fix that without changing back the footprint (or if the footprint thingy (so it can be build on ramps) can be achieved in another way)
I'm trying to warp in a units using triggers but I can't seem to figure out how it works. Probably really simple but I can't find out how.
So anyone can help me out on this?
Use the action if then else then you can put a condition on the action part of the trigger.
If you pres i when you open up the actions you should get the right one.
0
Hey,
Couldn't find a good title for my problem so sorry for that.
I have a problem where I have a 2D array of [2][5] each with a real value:
array[1][1] = 25.00
array[1][2] = 17.00
array[1][3] = 31.00
array[1][4] = 5.00
array[1][5] = 15.00
and the values of [2][..]
all have diffrent values
also all values can change at any given time
now these values are just an example
ok now i want to do a chance based thing on them, but I have no idea how to do that.
for example all these values represent the chance of a unit spawning, and every second I want to spawn a unit. Now the total chance (if you add all values.) is 93%, but I want to spawn a unit everytime not only 93% of the time.
So how would I summon a unit based on the chances in the array?
I hope I made myself clear;)
Thanks!
0
If I'm correct you can only have 4 columns per row and for the other 2 trees just input (when creating a button) that you want to create a button for tree 2 or 3.
0
hmm about the multiple talent "trees" I have no idea might be possible.
And about the variables if you have a set variable ..... at the top of the trigger the variable should be pointing to a parameter (9/10 times) and if you have a switch wich states
if 1 update ability button
if 2 update passive button
then 1 needs to be ability
and 2 needs to be passive
(these can be find in preset tab)
if 1 set variable 5* ....
if 2 set variable 10* ...
then 1 needs to be 5
and 2 needs to be 10
(these are also found in preset tab)
If you think logical you can find em all out;)
Gl
0
After you copy the triggers to your map for some reason some variables get removed in the triggers you just have to reset them, but most of the time is logical wich variable is supposed to be somewhere. And you can have up to 3 trees in a talent window.
0
I thought the value was around 65 diffrent behaviours per unit. Although you can stack them as much as you like.
0
Hey,
I created a building and I wanted it to be buildable on a ramp so I changed the footprint(as stated in a blizz post), but now units can just walk through my building:S So is there any way to fix that without changing back the footprint (or if the footprint thingy (so it can be build on ramps) can be achieved in another way)
Thanks!
0
I will try the invisible super warp gate:P thanks!
0
Hey,
I'm trying to warp in a units using triggers but I can't seem to figure out how it works. Probably really simple but I can't find out how. So anyone can help me out on this?
Thanks!
0
You can publish it Private then none can find the map and then you can easily test it with your friend
0
Thanks got it working now;)
0
Hey,
I'm trying to create a behaviour that changes a specific value of another behaviour.
So I have behaviour A wich increases damage by 5 for example
And with Behaviour B I would like to change the 5 to for example 7.
Is this possible?
Thanks!
0
Use the action if then else then you can put a condition on the action part of the trigger. If you pres i when you open up the actions you should get the right one.
0
Nvm got it working
0
Thanks it works now:P Already though I spelled Protoss wrong, but wasn't sure so thanks;)
0
Hey,
I couldn't find a function to check what race a unit is so I tried creating my own.
I now have this:
And it always returns Protos.
I probably screwed up the Catalog Field Value Get part, but I can't see where the error is. Can anyone help me?
Thanks!