Counter resets for 0.38

This forum is for the Lua scriptable clone of DM/CSB called Dungeon Strikes Back by Sophia. Use DSB to build your own highly customised games.

Moderator: Sophia

Forum rules
Please read the Forum rules and policies before posting.
Post Reply
User avatar
Sophia
Concise and Honest
Posts: 4240
Joined: Thu Sep 12, 2002 9:50 pm
Location: Nowhere in particular
Contact:

Counter resets for 0.38

Post by Sophia »

Following up some talk in the chat with Joramun...

0.38 will include the new message M_RESET, which will reset a DSB counter's (not an "x_counter", mind you) count exvar to its initial value. This initial value is stored in the exvar base_count, and is normally automatically set by the base code to whatever count is initialized to, before the counter does anything-- so you don't normally need to worry about it. However, this also allows you to do funny tricks like have a counter start at a different value than it eventually resets to, should you care to.

This new message will be selectable in ESB, of course.
Post Reply