Hello all. This my first post on the Hive so if I did something wrong or stupid apologies. I am trying to... basically just have my integer variable reduce by 1 in value every time an event happens. Sounded simple at first, but I've tried 100 different ideas and so far nothing.
Here's a list of my trigger's actions of my first attempt (couldn't upload screenshot I guess) which I recreated after maddeningly adding and removing triggers I thought would do the trick. I am trying to create a calendar system for my map. The goal of this was so that I could create another trigger later on which would... say it would be told to wait until the integer value was at value/day 7 (7 days b4 New Year) and maybe do like a Christmas event for the map or something like that, or maybe change the weather depending on the season, so like, all days from 365 (err January 1st? -- w/e) to Spring (lets say day 300 is start of Spring) would be light snow or heavy rain or something and then day 299 would dry up a little or have light showers or something idk.
When Calendar is typed as a chat string, the leaderboard I created pops up and displays the # of days left in the year. So I made an integer with initial value of 365, told it to decrease by 1 every time a new day happens and ideally this was suppose to make the number in the leader board decrease by 1 every midnight in game time. As of right now... the triggers work up to the very first day, setting days left in the year to 364. However, it stops after that and stays stuck at 364. The only thing that seems to make sense is that, my arithmetic on 2nd trigger is reseting the initial value of my integer variable to 365 EVERY SINGLE TIME... -1. Thus, I'm stuck at 364 =( Anyone got any ideas? I'd much appreciate. Oh and -- I know that once it hits zero I need to tell it to reset to 365 for new year;P I just don't want to touch that till I get this other part working 1st.
Event
Game - the in-game time of day becomes Equal to 24.00
Actions
Set Day_Of_Year (Integer) = (Day_Of_Year -1)
Leaderboard - Change the value for Player 1 (Red) in last created leaderboard to Day_Of_Year
Didn't post the other trigger which just a basic setup for my leaderboard, but can if necessary.
Here's a list of my trigger's actions of my first attempt (couldn't upload screenshot I guess) which I recreated after maddeningly adding and removing triggers I thought would do the trick. I am trying to create a calendar system for my map. The goal of this was so that I could create another trigger later on which would... say it would be told to wait until the integer value was at value/day 7 (7 days b4 New Year) and maybe do like a Christmas event for the map or something like that, or maybe change the weather depending on the season, so like, all days from 365 (err January 1st? -- w/e) to Spring (lets say day 300 is start of Spring) would be light snow or heavy rain or something and then day 299 would dry up a little or have light showers or something idk.
When Calendar is typed as a chat string, the leaderboard I created pops up and displays the # of days left in the year. So I made an integer with initial value of 365, told it to decrease by 1 every time a new day happens and ideally this was suppose to make the number in the leader board decrease by 1 every midnight in game time. As of right now... the triggers work up to the very first day, setting days left in the year to 364. However, it stops after that and stays stuck at 364. The only thing that seems to make sense is that, my arithmetic on 2nd trigger is reseting the initial value of my integer variable to 365 EVERY SINGLE TIME... -1. Thus, I'm stuck at 364 =( Anyone got any ideas? I'd much appreciate. Oh and -- I know that once it hits zero I need to tell it to reset to 365 for new year;P I just don't want to touch that till I get this other part working 1st.
Event
Game - the in-game time of day becomes Equal to 24.00
Actions
Set Day_Of_Year (Integer) = (Day_Of_Year -1)
Leaderboard - Change the value for Player 1 (Red) in last created leaderboard to Day_Of_Year
Didn't post the other trigger which just a basic setup for my leaderboard, but can if necessary.
Last edited: