Okay so I am an art\GAME student. and I am SUPER NEW to coding.
Right now I’m using Chapel’s custom Cycle Macro to have a ‘time’ system and a ‘days’ system, because in my game, I want there to be certain events that only happen say…night time on a tuesday.
And Im having trouble getting an If statement to work, because the macro involves strings.
The code looks like this
<<newcycle 'time' 3 1>> <<phase 'Early Morning''Morning''Late Morning'>> <<phase 'Noon''Afternoon''Early Evening'>> <<phase 'Evening''Late Evening''Night'>> <</newcycle>>>
<<newcycle 'days' 27 1>> <<phase 'Sunday' 'Monday'>> <<phase 'Tuesday' 'Wednesday'>> <<phase 'Thursday' 'Friday' 'Saturday'>> <</newcycle>>
So I guess my real question is: How would I get it to understand “if its Afternoon on Monday, then this happens”
Would it be better just to switch to a more variable based cycle system???
Once again. super new. Thanks!