QUOTE(r[s]t @ Jul 28 2005, 10:01 PM)
If i have a music loop, will the wait triggers confuses each other? Cuz i've seen wait triggers conflict eachother before, if so, whats the solution?
IN some maps i see text done real nicely, its like they know how where every word would apeear in the map on game. HOw do u do that? IS there a guide?
And how do you make text stay on screen as long as until the player does stomething to signal he's done reading?
[right][snapback]273073[/snapback][/right]
Only one wait can run per player at any given moment, So if you use a wait that runs all the time for your music loop under several players then that could cause alot of problems.
Aligning your text is mostly trial and error. But there are a few suggestions. First off to center text use the overlap back mark infront of the text.
Second starforge's string editor displays text accurately as long one or less overlap marks are used.
Lastly to make the text stay on the screen you preserve the trigger and display it over and over again until there done. Then you clear it by making a blank display text.
Here is what i did in hoth.
Conditions:
-Current player brings at least one men to Location Note 1
Actions:
-Display Text "blah"
-Set Deaths for current player to 1 for 'unused unit'
-Preserve Trigger
Conditions:
-Current player suffers exactly 1 death of 'unused unit"
-Current player brings exactly 0 men to Note 1:
-Current player brings exactly 0 men to Note 2:
-Current player brings exactly 0 men to Note 3:
Actions:
-Display text (11 blank lines)
-Set Deaths of unused unit to 0 for current player\
-Preserve Trigger
Anyways first Starcraft can only display 11 lines of text. So to compleatly overwrite a display text display 11 lines. If you display the same text that contains 11 lines over and over again it will just overlap.
So for my example with my triggers when there on the location wher the note is then The Note's text continues to display over and over again. Then as soon as they leave a blank display text is used to clear it out.
Also I have to use a "death switch" so it doens't keep clearing when there not there. (not allowing players to talk). Lastly i thought it was cool how I just added all the locations to my clear trigger and used the same trigger. (since none of the locations overlap or anything)