HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Trigger Problem

06-03-2005, 04:48 PM#1
Hessgasoline
I've been working on this map for a very short time, and it was generally just to play around with the triggers. I've been having a problem with random number and if then else statements.

In the picture I attached KNOW_Line is equal to 5. Unless I did something very very wrong the bottom event should trigger 99% of the time. Instead, the If Statement is always true and the events *which I hid =)* run. Could someone possibly explain why the If Statement is never false?
06-03-2005, 09:16 PM#2
Zoxc
Try to convert it to jass and post it here
06-04-2005, 06:22 AM#3
Raptor--
Quote:
Originally Posted by Hessgasoline
I've been working on this map for a very short time, and it was generally just to play around with the triggers. I've been having a problem with random number and if then else statements.

In the picture I attached KNOW_Line is equal to 5. Unless I did something very very wrong the bottom event should trigger 99% of the time. Instead, the If Statement is always true and the events *which I hid =)* run. Could someone possibly explain why the If Statement is never false?


what do you think we're psychic? how can we know whats going on if we can't see the if-statements

since you gave no information, then only thing i can tell you is if you use "Test map" it will always use the same random seed (ie random events will turn out the same if they happen in the same order) unless you uncheck a certain property so it will generate random seeds
06-04-2005, 10:00 AM#4
Anitarf
Are you absolutely sure Know_LINE[1] is equal to 5? A debug message that displays the value of the variable before the if-then-else would help. If it's 0 by any chance, then this explains everything. If it is 5, then maybe you just didn't wait enough times for the random number to reach that value.
06-04-2005, 03:09 PM#5
Earth-Fury
i dont have the WE with me, but if you are using the "test map" function, then it will always use the same seed, so random events will come out the same every time you click "test map". there is a way to make the WE use a random seed, check options or preferances.
06-04-2005, 03:13 PM#6
Freak
Do not use test map. It wont generate a random seed, unless you uncheck a certain property.