L
Lord_Ook
Guest
As you may of noticed i posted a reply to Nel'Dax's tavern problem. That trigger was working perfectly in World Editor but not in an actual game. So I added the following code, (Included the whole trigger to possibly make it easier for you to determine the problem.)
random
Events
Player - Player 3 (Teal) types a chat message containing -random as An exact match
Player - Player 4 (Purple) types a chat message containing -random as An exact match
Player - Player 5 (Yellow) types a chat message containing -random as An exact match
Player - Player 6 (Orange) types a chat message containing -random as An exact match
Player - Player 7 (Green) types a chat message containing -random as An exact match
Conditions
((Triggering player) Current lumber) Equal to 150
Actions
If (tempneran[(Random integer number between 1 and 2)] Equal to 1) then do (Unit - Order Days of Past Tavern 0088 <gen> to train/upgrade to a nightelfrandom[(Random integer number between 12 and 22)]) else do (Unit - Order Recruiting Hall 0074 <gen> to train/upgrade to a nightelfrandom[(Random integer number between 1 and 11)])
Unit - Change ownership of (Trained unit) to (Triggering player) and Change color
Player - Set (Triggering player) Current lumber to 0
Player - Set Player 1 (Red) Current lumber to 150
Now it no longer works properly in the world editor or the actual game. Might you know where the problem lies?
The reason for the lumber change is my taverns are working off lumber. Player 1 seems to be training my units from allied tavern's and player 2 from scourge tavern's. Any clarification would be nice, and Darg I hope this helps a lil with your question you asked me eariler about what works in editor but not in LAN, maybe it was a fluke but still shouldnt be working in 1 and not the other.
Another thing is with the change ownership, i have tried multiple strings like sold unit.
random
Events
Player - Player 3 (Teal) types a chat message containing -random as An exact match
Player - Player 4 (Purple) types a chat message containing -random as An exact match
Player - Player 5 (Yellow) types a chat message containing -random as An exact match
Player - Player 6 (Orange) types a chat message containing -random as An exact match
Player - Player 7 (Green) types a chat message containing -random as An exact match
Conditions
((Triggering player) Current lumber) Equal to 150
Actions
If (tempneran[(Random integer number between 1 and 2)] Equal to 1) then do (Unit - Order Days of Past Tavern 0088 <gen> to train/upgrade to a nightelfrandom[(Random integer number between 12 and 22)]) else do (Unit - Order Recruiting Hall 0074 <gen> to train/upgrade to a nightelfrandom[(Random integer number between 1 and 11)])
Unit - Change ownership of (Trained unit) to (Triggering player) and Change color
Player - Set (Triggering player) Current lumber to 0
Player - Set Player 1 (Red) Current lumber to 150
Now it no longer works properly in the world editor or the actual game. Might you know where the problem lies?
The reason for the lumber change is my taverns are working off lumber. Player 1 seems to be training my units from allied tavern's and player 2 from scourge tavern's. Any clarification would be nice, and Darg I hope this helps a lil with your question you asked me eariler about what works in editor but not in LAN, maybe it was a fluke but still shouldnt be working in 1 and not the other.
Another thing is with the change ownership, i have tried multiple strings like sold unit.


