SC2Mapster Forums

Development > Triggers

Why isn't this expression working?

  • 2 posts
    #1 Jan 23, 2013 at 23:43 UTC - 0 likes

    Vote Results

    Events

    Timer - VoteTimer expires

    Timer - Destroy Selection Timer Window

    Variable - Set TotalVotes = {TotalVotes*10}

    General - If (Conditions) then do (Actions) else do (Actions)

    If TotalVotes >= {(TotalPlayers/2)*10}

    Then Trigger - Run BeginShow (Ignore Conditions, Don't Wait until it finishes)

    Else Trigger - Run Intro Cinematic (Ignore Conditions, Don't Wait until it finishes)

    OK so for the most part this was working. However, I did a game where:

    TotalPlayers=3 TotalVotes=1

    Run above trigger should take the vote and x10 = 10. then the expression in question should, If 10 >= (3/2)x10 basically which would be FALSE because 10!>=15

    When the IF fails it should run Intro Cinematic, however Begin Show is being run... Not sure what gives... any ideas? Also, i could probably drop multiplying the integers by 10 but I got the same results when using just the integers so i thought maybe there can't be a 1.5 so its rounding down. Now I just dont know what the fuck.

    Last edited Jan 23, 2013 by Gaelidan
    #2 Jan 24, 2013 at 00:25 UTC - 0 likes

    OK It was because I wasn't using the numpad keys for my arithmetic symbols....................

  • 2 posts

You must login to post a comment. Don't have an account? Register to get one!