13Phoenix Corporal
| Subject: My sliding trigger doesnt work Thu Aug 20, 2009 10:24 am | |
| I need help with my sliding triggers they just dont want to work. Here they are...
Slide Turn
Event- Unit-A unit is issued an order targeting a point Conditions Actions-If (all conditions are true) then do (then actions) else do (else actions If-Conditions Conditions-(Terrian type at(Position of (Triggering unit))) Equal to Northernd - Ice Conditions- (Unit-type of (Triggering unit) Equal to Demon Hunter Then-Actions Actions-Set SlidePosition = (Target point of issued order) Actions- Unit - Make (Triggering unit) face SlidePosition over 0 seconds Actions Custom script: call RemoveLocation(udg_SlidePosition) Else-Actions Actions-Set SlidePosition = (Target point of issued order) Actions-Make (Triggering unit) face SlidePosition over 1 second Actions-Custom script: call RemoveLocation(udg_SlidePosition)
Slide All
Event Time - Every .02 seconds of the game Conditions Actions Unit Group-Pick every unit in tempunitgroup and do(actions) Loop-Actions Action-Set SldiePosition = (Postion of (Picked unit)) Actions-If (all conditions are true) then do (then actions) else do (else actions If conditions Or-Any(Conditions are true Conditions-(Terrain type at SlidePosition) Equal to Northernd - Ice Conditions-(Unit-ype of (Triggering unit) Equal to Demon Hunter (Picked unit) is alive Equal to True Then Actions Actions-Unit Group - Add (Picked unit) to tempunitgroup Actions Set SlidePosition = (Position of (Picked unit)) If (all conditions are true) then do (then actions) else do (else actions Else Actions- Actions-Set MaxSpeed[(Player Number of (Owner of (Picked unit)))] = 9 Actions-Set SlidePoint = (SlidePosition offset by Speed[Player number of (Owner of (Picked unit)))] towards (Facing of (Picked unit)) degrees) Actions-Unit - Move (Picked unit) instandtly to SlidePoint Custom script: call removelocation(udg_SlidePoint) Custom Script: Call RemoveLocation(udg_SlidePosition) Else- Do nothing Custom script: call removeLocation(udg_SlidePosition
I may have missspelled or misstyped some of this so sry... can you plz tell me what is wrong with it. | |
|
Pat1487 Moderator
| Subject: Re: My sliding trigger doesnt work Thu Aug 20, 2009 3:18 pm | |
| - 13Phoenix wrote:
I may have missspelled or misstyped some of this so sry... can you plz tell me what is wrong with it. You know you can copy as text and paste it here right? Slide Turn Event- Unit-A unit is issued an order targeting a point Conditions-(Unit-type of (Triggering unit) Equal to Demon Hunter Actions- Actions-Set SlidePosition = (Target point of issued order) Actions- Unit - Make (Triggering unit) face SlidePosition over 0 seconds Actions Custom script: call RemoveLocation(udg_SlidePosition) Theres no reason for the if statement with conditions and an else that you had - 13Phoenix wrote:
- Slide All
Event Time - Every .02 seconds of the game Conditions Actions Unit Group-Pick every unit in tempunitgroup and do(actions) Loop-Actions Action-Set SldiePosition = (Postion of (Picked unit)) Actions-If (all conditions are true) then do (then actions) else do (else actions If conditions Or-Any(Conditions are true Conditions-(Terrain type at SlidePosition) Equal to Northernd - Ice Conditions-(Unit-ype of (Triggering unit) Equal to Demon Hunter (Picked unit) is alive Equal to True Then Actions Actions-Unit Group - Add (Picked unit) to tempunitgroup Actions Set SlidePosition = (Position of (Picked unit)) If (all conditions are true) then do (then actions) else do (else actions Else Actions- Actions-Set MaxSpeed[(Player Number of (Owner of (Picked unit)))] = 9 Actions-Set SlidePoint = (SlidePosition offset by Speed[Player number of (Owner of (Picked unit)))] towards (Facing of (Picked unit)) degrees) Actions-Unit - Move (Picked unit) instandtly to SlidePoint Custom script: call removelocation(udg_SlidePoint) Custom Script: Call RemoveLocation(udg_SlidePosition) Else- Do nothing Custom script: call removeLocation(udg_SlidePosition
You cant add units to the unit group that your picking units from to build the unit group that you pick units from, your using a unit group that has no units in it to start with, also, you shouldnt use unit groups, they suckThere is no triggering unit when your event doesnt use a unitSeveral things are wrong here, 1. your setting a variable every .02 seconds when theres no reason to since the varible never changes, 2. Your not even using it in your speed, if you want to set a max speed just add a check to where ever your changing the speed, for if Speed[] gets greater then 9 stop adding to speedYou dont need any of this, and never use Do nothing, theres no pointThis should be AndAnd you can combine slideposition and slidepoint, you dont need 2 varibles for it | |
|
X.x-D.a.r.K-x.X Sergeant
| Subject: Re: My sliding trigger doesnt work Thu Aug 20, 2009 10:24 pm | |
| 13Phoenix: pat, i still need someone to teach me how to make ice :'( X.x-D.a.r.K-x.X: freeze water
LOLOL :p | |
|
Achilles.42 Commander
| Subject: Re: My sliding trigger doesnt work Fri Aug 28, 2009 7:21 pm | |
| i was about to tell 13 what was wrong but then i was like "wait mby some1 already did, nah no point in checking they probably didn't give it a very good response any way" so i started looking and finding what was wrong, but then i was like "waaaaaaiiiiittttt what if pat responded? hes always super careful" so i check: "YUP theres pat all color coded and every thing" | |
|
Pat1487 Moderator
| Subject: Re: My sliding trigger doesnt work Sat Aug 29, 2009 1:17 am | |
| You making fun of my color coding?!
I actually couldnt think of any other way to explain it
You could add to what i said, since i never told him how to fix the things that are wrong | |
|
marksoccer Commander
| Subject: Re: My sliding trigger doesnt work Sat Aug 29, 2009 1:24 am | |
| no hes just saying u have no life thats all | |
|
Achilles.42 Commander
| Subject: Re: My sliding trigger doesnt work Sat Aug 29, 2009 4:12 am | |
| well yes mark but dont say that, it might hurt his feelings, we've all seen the pic of him in the abuse forum, hormone problems are a bitch. | |
|
Sponsored content
| Subject: Re: My sliding trigger doesnt work | |
| |
|