hey guise. I need a way to assosciate an integer value to a unit, or detect which spot in an array it has. I have yet to find a way to do this. I tried to use the maximum energy of the unit, but there is no way to find that value through triggers.
Basically, when i add a unit in the game, i store it in a unit array, and I need to be able to get which spot in the array the given unit has
my descriptions sucks because I was using ENTER to hop down one line, but it apparently did not work. However I realize now that the trigger was working correctly, I was just too stupid to understand basic logic. Either way, thanks for the help guise
Else kill triggering unit. My guess when the map loads it checks the probe because it's in the region. The probe has only 1 supply, so fails the conditions, thus means the probe is killed.
U dont have to make unit stop, just order it, replace existing order. That way it will change the order immideatly, just add other order to be after exisiting order
oh i see what you mean. However, this will make the unit execute the new order immediately, right? I really need it to just be queued, only AFTER any MOVE ORDERS and BEFORE any ATTACK ORDERS. "Insert it" between orders if you will.
basically, I'm having two problems, one being that I can't find the item "mineral shards" in the data editor (the one that gives you minerals when you come close to it with a unit). The second problem is that I can't change which unit probes should drop off the minerals they've gathered. I've looked all over the data editor and even in the triggers. any help?
ok, thanks. what do you mean by resetting the order queue? is there a function for that or do you mean like ordering the unit to stop and then add all the orders? 'cause I don't want the unit to stop :S hope that's not the case :P
actually no, before existing orders will put the new order before ALL existing orders, and there are no options to change that. That would make it look like this:
1: Move to point D
2: Move to point A
3: Move to point B
4: Attack Unit C
This means that the last point (D) I want to go to is the point I will go to first. I do not want that.
Hello people of Sc2Mapster. I need help with a problem which I can't seem to figure out by myself. I want any Attack order to always be last in any order queue, on any unit, even if more orders are added. So if a unit has 2 move orders and one attack order queued, it should look like this:
1: Move to point A
2: Move to point B
3: Attack unit C
Now, if I want to add another order, the queue will look like this:
I would be interested in writing tool tips or hero stories or such. Contact me again if you need game play designers for another project, and I might be interested in that too.
0
hey guise. I need a way to assosciate an integer value to a unit, or detect which spot in an array it has. I have yet to find a way to do this. I tried to use the maximum energy of the unit, but there is no way to find that value through triggers.
Basically, when i add a unit in the game, i store it in a unit array, and I need to be able to get which spot in the array the given unit has
0
my descriptions sucks because I was using ENTER to hop down one line, but it apparently did not work. However I realize now that the trigger was working correctly, I was just too stupid to understand basic logic. Either way, thanks for the help guise
exactly. what the hell was I thinking?0
hey. i have an if then else looking like this (the event is unit enters region):
if owner of triggering unit == 0 triggering unit supplies used (default) == 2 then Do this else kill triggering unit
I have a probe inside the region when the map loads and it dies. It's supply usage is 1 and its shields are 20. WTF?
0
oh i see what you mean. However, this will make the unit execute the new order immediately, right? I really need it to just be queued, only AFTER any MOVE ORDERS and BEFORE any ATTACK ORDERS. "Insert it" between orders if you will.
0
basically, I'm having two problems, one being that I can't find the item "mineral shards" in the data editor (the one that gives you minerals when you come close to it with a unit). The second problem is that I can't change which unit probes should drop off the minerals they've gathered. I've looked all over the data editor and even in the triggers. any help?
0
@progammer: Go
ok, thanks. what do you mean by resetting the order queue? is there a function for that or do you mean like ordering the unit to stop and then add all the orders? 'cause I don't want the unit to stop :S hope that's not the case :P
0
@b0ne123: Go
actually no, before existing orders will put the new order before ALL existing orders, and there are no options to change that. That would make it look like this:
1: Move to point D 2: Move to point A 3: Move to point B 4: Attack Unit C
This means that the last point (D) I want to go to is the point I will go to first. I do not want that.
0
Hello people of Sc2Mapster. I need help with a problem which I can't seem to figure out by myself. I want any Attack order to always be last in any order queue, on any unit, even if more orders are added. So if a unit has 2 move orders and one attack order queued, it should look like this:
Now, if I want to add another order, the queue will look like this:
I WANT to look like this, though:
Is this possible? If so, then HOW?
0
I would be interested in writing tool tips or hero stories or such. Contact me again if you need game play designers for another project, and I might be interested in that too.
I'm from Europe.