Allright... I'm trying to make the event to make a clock now, but I'm stuck.
Can you tell me why this doesn't work?
hour = $game_variables[155] / 60 % 60
min = $game_variables[155] % 60
if hour >= 12
hour = hour - 12
end
hour = sprintf("%2d", hour)
min = sprintf("%2d", min)
$game_screen.pictures[3].angle = hour
* 20
$game_screen.pictures[4].angle = min
* 6
Just brings up the error "SyntaxError occurred while running script."
$game_variables[155] is the variable I used to track the time. Counts up 1 every 20 frames, resets to 0 at 1440.
I'm trying to learn
Edit: After messing around with this for a few hours, it seems like the other scripts involved in showing pictures can't read that sprintf stuff... guess I'd have to make a million conditional branches in an event to make it work this way then