| 05-11-2004, 08:47 PM | #1 |
Anyway, i have this problem with my conditions please help me out, here is my trigger: Event: A Unit Spawns a Unit Conditions: Spawned is a Footman Actions: If / Then / Else Multi If : Or Multi Number of units in Foot1<gen> (Matching unit) equal to summoned unit Equal to 1 Number of units in Foot2<gen> (Matching unit) equal to summoned unit Equal to 1 Number of units in Foot3<gen> (Matching unit) equal to summoned unit Equal to 1 Number of units in Foot4<gen> (Matching unit) equal to summoned unit Equal to 1 Then: Set Footman equal to last Summoned unit Else: Do Nothing Now my question is how do i get teh conditions to work????? that trigger seems like it would work but it isnt, is there some way anyone can help me????? Kelna |
| 05-11-2004, 09:07 PM | #2 | |
Quote:
1) Use copy as text, which makes it easier to read. (Well that wasn't very hard to read either, but...) 2) The whole trigger semes to be a mess.. Code:
Events
Unit - A unit Finishes training a unit
Conditions
(Unit-type of (Trained unit)) Equal to Footman
Actions
If ((Number of units in (Units in (Foot1))) Equal to 1) then do (Set UNIT = (Trained unit)) else do (Do nothing)
If ((Number of units in (Units in (Foot2))) Equal to 1) then do (Set UNIT = (Trained unit)) else do (Do nothing)
If ((Number of units in (Units in (Foot3))) Equal to 1) then do (Set UNIT = (Trained unit)) else do (Do nothing)
If ((Number of units in (Units in (Foot4))) Equal to 1) then do (Set UNIT = (Trained unit)) else do (Do nothing)Since I don't know what your purpose with this trigger is, I don't really understand what you want it all to do. (Explain a bit more) |
| 05-11-2004, 09:11 PM | #3 |
You didnt specify which conditions, which is confusing. Well, it has nothing to do with your trigger conditions. Your If conditions, on the other hand, make no sense at all. What on earth are you trying to do? Im not sure where you get Matching unit, and even if you did use it correctly, I just spoted your other error. You used summoned unit incorrectly. You cant say summoned unit in hopes the game will consider summoned units ...erhm... summoned units... (yes it makes no sense) but "summoned unit" is related to a unit in events when you are replying to "a unit is summoned" event. You will need a unit-type comparison to do this, and instead of what you tried to do (it starts to make sense now) you want something like unit type comparison - (random unit in(Foot1)) Equal to (your summoned unit thing) ... Something like that. I now see what you were driving at, but unfortunately you went in the completely wrong direction (no offense) |
| 05-11-2004, 09:25 PM | #4 |
Number of units in Foot1<gen> (Matching unit) equal to summoned unit Equal to 1 You shouldn't need a 'equal to summoned unit' if it is a spawned unit. Spawning a unit implies summoning one. |
| 05-12-2004, 08:47 PM | #5 |
This is what i want you to focus on: Actions: If / Then / Else Multi If : Or Multi Number of units in Foot1<gen> (Matching unit) equal to summoned unit Equal to 1 How do i get this to work!?!?!?!!? what i want is if someone spawns a footman in foot1<gen> then it will continue the trigger. i cant do random unit because it doesnt work if there are other units in the location that isnt a footman. and i do need the summoned unit because if it wosnt there the trigger wouldnt work right, it would take every unit in foot1<gen> insted of just the unit that was summoned. So, how do i fit this trigger or some other trigger to fit my needs? |
| 05-12-2004, 08:58 PM | #6 | |
Quote:
Do something like: Number of units in Foot1 of unit type footman, equal to 1 Do actions --- |
| 05-12-2004, 08:59 PM | #7 |
Event: A unit enters region Foot 1 <gen> Conditions: (Unit type of triggering unit equal to Footman) and (Unit is a summoned unit equal to tue) Actions: Do trigger |
| 05-13-2004, 12:20 AM | #8 | |
Quote:
That will work, i kind of feel dumb for not thinking of it! |
