'Dynamism' Dynamic Channel Manager
The Dynamic Channel Manager is coded in the 'Dynamism' script. The below handlers return information about its current state. Read the 'Dynamism' documentation for a discussion of the Dynamic Channel Manager.
The main thing you need to know initially about the Dynamic Channel Manager is you need to edit a line of it. You may want to call some of the below handlers to get a feel for how it is allocating dynamic channels.
Returns the number of dynamic channels currently in use.
theResult = wfsGetNumberOfDynamicChannelsInUse()
Returns a sorted list of the spritenums of the channels currently in use as dynamic channels, ie, the channels in the list have dynamic sprites in them. Changing this list does not change anything because it is a duplicate of the gWFSUsedChannels list.
theResult = wfsGetDynamicChannelsInUse()
Returns the number of channels currently available for the creation of dynamic sprites.
theResult = wfsGetNumberOfDynamicAvailableChannels()
Returns a linear list of the currently unused dynamic channels. Changing this list changes nothing because it is a duplicate of gWFSUnusedChannels.
theResult = wfsGetDynamicAvailableChannels()
Returns gWFSLastStaticSpriteChannel, a WFS global. This is a constant. You have to set this yourself by editing a line in the intializeDynamism handler in the Dynamism script. See instructions.
|'Dynamism' Dynamic Channel Manager|