![]() |
Playing Mids on Gmap
I have a script which plays mids on the overworld. Well, for some reason you only hear the sounds if you go into a room, and then go back outside. And it will only play that sound for that level.
Anyway, hopefully someone knows a fix. I am using stef midis. (stef3/27/32/51 etc.. ) Using play("stef32.mid"); for example. If you know a fix, don't be scared, please reply. :O |
Use a system NPC to play the music for each level.
PHP Code:
|
Quote:
|
Quote:
|
Quote:
|
Hmm, can you explain exactly what 'makevar' does? It sounds like it would make a variable, but why make a variable that already exists?
|
Quote:
PHP Code:
It takes a string and returns the variable that the string indicates. |
Quote:
|
Quote:
|
Quote:
|
Quote:
|
Quote:
|
Quote:
Clearly. :mad: |
Quote:
this.(@) thing is easier for reading. makevar, however, is a lot more flexible. |
Quote:
Quote:
|
this.(@) is also technically more efficient I believe, as it is not a function like makevar.
|
...
When I use this.(@), it's trying to call the function of whatever follows the @. |
Hmm, can someone post a small portion of a script using makevar with some sort of output? I could probally get it then, else, I've heard about 15 diff things lol.
|
Quote:
PHP Code:
|
Quote:
Let's say an NPC logs how many times a player enters a level. When the player says '/showtimes,' it tells them how many times they've been in. PHP Code:
So when I enter, it increases this.timesentered_Yen by 1. |
Can't I just did it regularly then? It isn't really needed then :O.
|
| All times are GMT +2. The time now is 02:31 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.