Another solution to your problem is the mod and mission-time SEXPs. Mission time is obviously the current time in the mission. Mod divides one number by the other and works out what the remainder is. This makes it easy to use for mission timing.
when (repeat count, 1 seconf
- =
--mod
---Mission-time
---10
--0
-do-something
Creates an event that triggers at t = 0 and every 10 seconds after that. It is possible to use a variation of this event to do everything you want it to do. However if this isn't enough, my suggestion would be to have a second variable. In the first event add this
modify-variable
-SecondVar
-Mission-Time
Your second event then does this
when (high repeat count, 1 second repeat delay
-and
-- =
--- 0
--- mod
---- -
-----MissionTime
-----SecondVar
----10
-- >
---SecondVar
---Missiontime
-Set your variable to 1 here
The first bit checks that Mission time - the variable is divisible by 10. The second one checks that the two aren't the same value since otherwise it would trigger immediately after the first event does.
EDIT : Just seen the other two posts. You've now got three possible levels of sophistication for your system.
