Well, first of all: You choose the word randomly in the two triggers by generating a random number. What makes you think that the random number of from Start Game trigger is the same random number that the guess trigger would generate? It's random. Doh.
Well, even without this problem it wouldn't work. Never use variables in Events, unless it's something pre-placed (for example a unit or a region on your map). They tend to not work (unless you really know what you're doing and how).
Okay, im making a map which is Chat String Based. But, i don't know how to get it working. Here's what i have tried.
This is where the word Generates: http://starcraftmapping.de/gui.php?id=44
This is where the player guesses right. http://starcraftmapping.de/gui.php?id=45
But, when it gets to 'Game1 Guess right', straight after the trigger is activated, it completes it. Please help.
Well, first of all: You choose the word randomly in the two triggers by generating a random number. What makes you think that the random number of from Start Game trigger is the same random number that the guess trigger would generate? It's random. Doh.
Well, even without this problem it wouldn't work. Never use variables in Events, unless it's something pre-placed (for example a unit or a region on your map). They tend to not work (unless you really know what you're doing and how).
What you gotta do is:
You can use a condition to check the word, then you don't have to use the variable in the event.
Counter is a global integer variable you gotta create.
Where you generate the random number in the Start Game trigger you write:
We set Counter to the random number and then use it to display the word (this way the Random Number doesn't change every time)
This way it should work :3
PS: When we're at it I'm gonna move this to the trigger section.
Unfortunately, that just ended up with an Error..
'EventChatMessage' Has no Matching event.
Or something..
Oh, yea of course.
Remove the
Triggers automatically run when the event happens. No need to run or enable them manually.
(Oh, and also: You don't need to write \" all the time.)
Awesome, Thank you s3rius.. Im making a map called Memorize... So yeah :P