The Dink Network

Reply to Re: Unusual method for one-time events

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
October 9th 2013, 02:03 PM
slimeg.gif
metatarasal
Bard He/Him Netherlands
I object 
The editor_seq and editor_frame are set to the sequence and frame number that a sprite should have when it is of a certain editor_type. This is important for, say barrels that should stay down. When you're not messing with the editor_type the editor_seq and editor_frame aren't used by the engine but may still hold information. So essentially you get two variables you can use to store whatever you want. So you could indeed keep track of how many times the player has talked to somebody using this. It is a very very nice trick to save globals.

Keep in mind though that editor_frame only holds numbers up to 255, so to keep track of how many times the player talked to someone you're probably better off using editor_seq. Editor_seq has a maximum of 65535 I believe.