OK It was because I wasn't using the numpad keys for my arithmetic symbols....................
Development > Triggers
Why isn't this expression working?
- 2 posts
-
Gaelidan Author
- Join date
- Sep 13, 2010
- Location
- United States
- Reputation
- 1
- Posts
- 9
- Projects
- 1
- Team
- Last login
- Apr 22, 2013
- 2 posts
Gaelidan AuthorVote 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.