| 07-28-2008, 04:33 AM | #1 |
how to make game mode ? example player 1 type -20 the game will end after someone reach 20 kill and we can type other such as -30, -40 , etc and the winner screen will freeze and show message : win (quit game) the other will get message : lose (quit game) thanks a lot |
| 07-28-2008, 04:08 PM | #2 |
| 07-29-2008, 03:47 AM | #4 |
thanks for that helpful post :) |
| 07-29-2008, 06:06 AM | #5 |
I'm pretty sure someone can type -kills asdf and your trigger will break. So what I mean is, you need to check if they actually entered integers... Try and find a different way, like a Dialog Menu or something. |
| 07-29-2008, 07:36 AM | #6 | |
Quote:
If they try to type in characters it defaults to 0. And with that 0 error check it'll be fine. |
| 07-29-2008, 07:38 AM | #7 |
Actually, it wouldn't. x would have to BE 0 for this to work, otherwise it would always error. (look) |
| 07-29-2008, 07:47 AM | #8 |
Ya it needs to be if X != (NotEqual to) 0 |
| 07-29-2008, 07:52 AM | #9 | |
Quote:
By default, udg's are initialized as 0. So it would work, until player 1 sets the amount :) |
| 07-29-2008, 09:17 AM | #10 |
No he's saying that the If is wrong. If X = 0 it runs the script ELSE it Errors out. Needs to be If X != 0 then Run, Else Error out. |
| 07-29-2008, 09:18 AM | #11 |
No, I was wrong. It keeps it from running more than once, since x would be set to something. "x" would start as 0 and then be used once. After that, it would cause an error. |
| 07-29-2008, 03:26 PM | #12 |
how to make it not error ?? thanks all |
| 07-29-2008, 10:16 PM | #14 | |
Quote:
I will test it thanks ![]() |
