Donate above to help with Site, Vent, and Server costs
Welcome Guest [Log In] [Register]

You're currently viewing our forum as a guest. Register now or login to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple and fast.


Register HERE!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Anti-Ally Attack
Topic Started: Jul 28 2008, 11:33 AM (575 Views)
0chspelar
Member Avatar
Grammar Nazi
[ *  *  *  *  *  *  *  * ]
now it doesn't work. I can kill allied units. haven't checked to see if the gather lumber works yet.

gotta be something in this

Code:
 

if GetIssuedOrderId() == 851983 then
set u=GetOrderedUnit()
set t=GetOrderTargetUnit()
set uId=GetUnitTypeId(u)

if uId!='hpea' and uId!='n000' and uId!='nvl2' and uId!='ngir' then

if GetOwningPlayer(u) != GetOwningPlayer(t) then
[redit][/redit]
Edited by 0chspelar, Aug 1 2008, 11:23 PM.
Offline Profile Quote Post Goto Top
 
0chspelar
Member Avatar
Grammar Nazi
[ *  *  *  *  *  *  *  * ]
oh, i think i don't want hpea in there, , and the unit type for peasent is n000:nv12 but its one unit not two.
Offline Profile Quote Post Goto Top
 
0chspelar
Member Avatar
Grammar Nazi
[ *  *  *  *  *  *  *  * ]
removed hpea, everything seems to be working how i want it. more to report later.

peasants (woodsmen) and goblin lumberjacks (lumberjacks) are working correctly now.

still to test, if you are able to kill allies with your other units and or towers. which if all goes well you won't be able to.[redit][/redit]
Edited by 0chspelar, Aug 2 2008, 02:46 AM.
Offline Profile Quote Post Goto Top
 
0chspelar
Member Avatar
Grammar Nazi
[ *  *  *  *  *  *  *  * ]
eventually I also want to add a line, that the one unit of your own, that I don't want you to be able to kill, is your architect hpea , i still want him to be affected by the trigger, but I don't want him to be able to be killed by your own units.
Offline Profile Quote Post Goto Top
 
0chspelar
Member Avatar
Grammar Nazi
[ *  *  *  *  *  *  *  * ]
still need help
Offline Profile Quote Post Goto Top
 
AwaKening
Member Avatar
How do ya like me now
[ *  *  *  *  *  *  *  *  * ]
Come on 0ch, the key here is to start analyzing the code I give to you so that you can do it on your own. Everything you need to know is on that trigger. You just have to change unit Id's and possibly manipulate placement of some of the functions. I'm just worried that if I keep doing it for you, you aren't really analysing the code I give you ;) Not to mention, I've been pretty busy lately.

GUI is pretty easy to use, so just figure out what you need to do from there, and then convert it to custom text and really read through it to see how it works. You'll catch on, but you have to be willing to spend some time thinking and reading.
Women, learn to work the toilet seat. You're a big girl. If it's up, put it down.
We need it up, you need it down.
You don't hear us complaining about you leaving it down.
Offline Profile Quote Post Goto Top
 
0chspelar
Member Avatar
Grammar Nazi
[ *  *  *  *  *  *  *  * ]
gui is easy but hard to find the right function, they make it so damn hard for no reason. yea, i'm just gonna keep trying.

wish other ppl posted in the mapping forum, but its just you and me.
Offline Profile Quote Post Goto Top
 
0chspelar
Member Avatar
Grammar Nazi
[ *  *  *  *  *  *  *  * ]
I still have a problem some people are able to kill their own architect. but i think it has to do with splash damage so I'll have to change the targets they can attack in the obj manager.
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Mapping · Next Topic »
Add Reply

Skinned by AwaKening