| 10-19-2003, 09:18 PM | #1 |
Rank[(Player number of (Owner of (Ordered unit)))] Greater than Rank[(Player number of (Random player from (All players matching (Room[(Player number of (Matching player))] Equal to (Target destructible of issued order)))))] This condition is used in an If/Then/Else format. When I try to save the map with it, it starts to bring up all these random errors. (I've narrowed it down to this condition, by deleting, and replacing...) I don't know why it should be giving me errors, considering this isn't JASS, but when it gets to saving variables, it does so. Alot of the errors are: Expected Endif (Rank is an integer array Size = 1) (Room is a destructible array Size = 1) Here's the entire trigger if you need for reference. EVENTS Unit - A unit Is issued an order targeting an object CONDITIONS Or - Any (Conditions) are true Conditions (Destructible-type of (Target destructible of issued order)) Equal to Door (Horizontal) (Destructible-type of (Target destructible of issued order)) Equal to Door (Vertical) (Destructible-type of (Target destructible of issued order)) Equal to Gate (Horizontal) (Destructible-type of (Target destructible of issued order)) Equal to City Entrance (Destructible-type of (Target destructible of issued order)) Equal to City Entrance ACTIONS If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions ((Ordered unit) is in (Units within 100.00 of (Position of (Target destructible of issued order)))) Equal to True Then - Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions Door[(Player number of (Owner of (Ordered unit)))] Equal to (Target destructible of issued order) Rank[(Player number of (Owner of (Ordered unit)))] Greater than Rank[(Player number of (Random player from (All players matching (Room[(Player number of (Matching player))] Equal to (Target destructible of issued order)))))] Then - Actions Set Door[(Player number of (Owner of (Ordered unit)))] = (Target destructible of issued order) Destructible - Open (Target destructible of issued order) Wait 3.00 seconds Destructible - Close Door[(Player number of (Owner of (Ordered unit)))] Else - Actions Else - Actions Unit - Order (Ordered unit) to Move To (Position of (Target destructible of issued order)) Please help me. Thanks in advance, Eriond |
| 10-22-2003, 12:29 AM | #2 |
This is now on like the 4th page, no one is ever going to see it, so can I bump it now, and not get the post deleted and having it bumped back to the 5th page?! |
| 10-22-2003, 01:48 AM | #3 | |
Quote:
I see a logic flaw here. It looks to me like you've created a statement that reads: x > y = z. WarEdit probably has no damn clue what you mean to do here, and it's alerting you to this fact. Try a simpler statement? I don't have a clue what you're trying to do here, either. |
| 10-22-2003, 03:14 AM | #4 |
yes biflspud nailed that one. he is right now that he pointed it out what you are saying is something is greater than something else equals something. basically meaning that your trigger is not specific. it could be any number is equal to the last number. or to use biflspud's example any number is equal to z. it does not make sense and therefore it will not save. edit: eriond wanna know a secret way to bump? just type bump than post it. it will get bumped. than hit the edit post where you bumped and check the box that says delete post at the top. than across from it there is a button that says delete now. press that and your post will not be there but your bump will have it on first page again. shhhhh don't tell the mods. |
