GMdsam icon indicating copy to clipboard operation
GMdsam copied to clipboard

[Maybe not a bug?] [Suggestion?] Linking assets

Open colinator27 opened this issue 8 years ago • 2 comments

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.

colinator27 avatar Jul 01 '16 14:07 colinator27

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.

WarlockD avatar Jul 03 '16 18:07 WarlockD

Okay! Nice. :)

colinator27 avatar Jul 04 '16 15:07 colinator27