GMdsam
GMdsam copied to clipboard
[Maybe not a bug?] [Suggestion?] Linking assets
Is it possible for scripts like this
if(self.argument0 == "music/story.ogg"/* ([0x0071AB1C],4) */) self.song_index= 213/* ([0x0071AB28],2) */; if(self.argument0 == "music/bad.ogg"/* ([0x0071AB40],4) */) self.song_index= 214/* ([0x0071AB4C],2) */;
to not have indexes. Instead, can it link it to its asset? For example, 213 would link to mus_story.ogg. The reason why I'm asking this is because I'm building a small little GMX compiler that takes this program's output as an input to compile the GMX project.
I sort of have that working. Part of the problem is I have to track when and how the var is being used. Unless self.song_index is used in, for example, snd_play(self.song_index), the program would never no that song_index is a song_index.
So far this does work in functions though. I won't close this cause I am kind of working on this.
Okay! Nice. :)