Forums
New posts
Search forums
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Come and join our gamer community by
registering for free here
Other Gaming Forum
PC games
WarCraft III Modding
Integer problems!
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Hunter_destruction" data-source="post: 120293" data-attributes="member: 5836"><p>I am making a dialog voting system. People have to vote for whatever difficulty they see fit. My problem is, what if there is a tie?</p><p> If there is a tie I rerun the dialog, as to change some votes around. Once there are no ties. The game will start.</p><p>Here is my trigger:</p><p> </p><p>[code]For each (Integer A) from 1 to 5, do (Actions)</p><p>????Loop - Actions</p><p>????????If (All Conditions are True) then do (Then Actions) else do (Else Actions)</p><p>????????????If - Conditions</p><p>????????????????DifficultyINT[(Integer A)] Equal to (Integer A)</p><p>????????????Then - Actions</p><p>????????????????Trigger - Run Difficulty <gen> (checking conditions)</p><p>????????????????Skip remaining actions</p><p>????????????Else - Actions</p><p>????????????????Do nothing</p><p>[/code]</p><p></p><p>Only problem is if all of them vote for the 'easy' difficulty the trigger will count it as a tie, with itself. (It will actually count ANYTHING as a tie, because everythng will be tieing with each other)</p><p>This problem is fixed after everyone votes twice, whether or not there is a tie, (offical tie)</p><p></p><p>So my question is, how do I make it that the Interger A doesn't make it so it ties with itself.</p><p>I beleive it's the Integer itself but if I were to do it the way I know, it would take forever to do it.</p><p>I would have to go </p><p>DifficultyINT[1] Equal to DifficultyINT[2] - rerun trigger</p><p>DifficultyINT[1] Equal to DifficultyINT[3] - rerun trigger</p><p>DifficultyINT[1] Equal to DifficultyINT[4] - rerun trigger</p><p>......</p><p>DifficultyINT[2] Equal to DifficultyINT[3] - rerun trigger</p><p>DifficultyINT[2] Equal to DifficultyINT[4] - rerun trigger</p><p>...ect. This is unnessicary space in my opionion. Please if you have a fats and effictient way. Tell me.</p><p>(There are other tirggers working with this one, but this is the one causing the trouble)</p><p></p><p>Any help appriciated.</p></blockquote><p></p>
[QUOTE="Hunter_destruction, post: 120293, member: 5836"] I am making a dialog voting system. People have to vote for whatever difficulty they see fit. My problem is, what if there is a tie? If there is a tie I rerun the dialog, as to change some votes around. Once there are no ties. The game will start. Here is my trigger: [code]For each (Integer A) from 1 to 5, do (Actions) ????Loop - Actions ????????If (All Conditions are True) then do (Then Actions) else do (Else Actions) ????????????If - Conditions ????????????????DifficultyINT[(Integer A)] Equal to (Integer A) ????????????Then - Actions ????????????????Trigger - Run Difficulty <gen> (checking conditions) ????????????????Skip remaining actions ????????????Else - Actions ????????????????Do nothing [/code] Only problem is if all of them vote for the 'easy' difficulty the trigger will count it as a tie, with itself. (It will actually count ANYTHING as a tie, because everythng will be tieing with each other) This problem is fixed after everyone votes twice, whether or not there is a tie, (offical tie) So my question is, how do I make it that the Interger A doesn't make it so it ties with itself. I beleive it's the Integer itself but if I were to do it the way I know, it would take forever to do it. I would have to go DifficultyINT[1] Equal to DifficultyINT[2] - rerun trigger DifficultyINT[1] Equal to DifficultyINT[3] - rerun trigger DifficultyINT[1] Equal to DifficultyINT[4] - rerun trigger ...... DifficultyINT[2] Equal to DifficultyINT[3] - rerun trigger DifficultyINT[2] Equal to DifficultyINT[4] - rerun trigger ...ect. This is unnessicary space in my opionion. Please if you have a fats and effictient way. Tell me. (There are other tirggers working with this one, but this is the one causing the trouble) Any help appriciated. [/QUOTE]
Verification
Post reply
Other Gaming Forum
PC games
WarCraft III Modding
Integer problems!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top