Staredit Network > Forums > SC1 UMS Theory and Ideas > Topic: [EUD] Using inverse system time to play BGM continuously regardl
[EUD] Using inverse system time to play BGM continuously regardl
Feb 10 2018, 7:28 am
By: trgk  

Feb 10 2018, 7:28 am trgk Post #1



Basically, Inverse System Time is a value that decreases 1000 every second.
For example, if its value is 10000000, its value will be 9999000 after a second. We can use this as a timer for background music.
This timer is irrelevant to game speed, lagging, or any unfortunate circumstances. So we can use this value as a music counter.

Code
1. Read the value of 0x0051CE8C and store that on DC of Teran Marine. This DC holds the last time music is played.
2. Play the music.

3. With preserve trigger:
   3-1. Read the value of 0x0051CE8C and store that on DC of Terran Firebat.
   3-2. Compare that value with DC of Terran Marine.
   3-3. If the difference is larger or equal to the length of the music in milliseconds:
       3-3-1. Copy DC of Terran Firebat to DC of Terran Marine.
       3-3-2. Play the music again.


TrigEditPlus code



euddraft code


Post has been edited 1 time(s), last time on Feb 10 2018, 7:41 am by trgk.



EUD

Feb 10 2018, 9:23 pm Butch Post #2

PROFESSIONAL MAP MAKER

incredibly useful. Thanks for the post



None.

Feb 11 2018, 12:32 am Lanthanide Post #3



What is TrigEditPlus?



None.

Feb 11 2018, 9:04 am trgk Post #4



Alternate triggrr editor for scmdraft2.
Includes a basic macrotrigger-like functionallity.

http://www.staredit.net/sc1db/file/2989/



EUD

May 22 2020, 8:12 pm Draelren Post #5



Been trying to play around with this, but keep getting compile errors; has there been changes to the syntax since this was written out?



None.

Yesterday, 3:29 am trgk Post #6



Quote from Draelren
Been trying to play around with this, but keep getting compile errors; has there been changes to the syntax since this was written out?
I don't think there is any. Note that euddraft code should be in ".eps" extension.



EUD

Yesterday, 9:26 am Oh_Man Post #7

Find Me On Discord (Brood War UMS Community & Staredit Network)

One problem I always had with sound was not being able to stop it once the sound had been started. Have EUDs made any developments on this front?




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[01:25 pm]
NudeRaider -- or do you need actual vision (not just revealing the terrain)
[01:24 pm]
NudeRaider -- youarenotworthy
youarenotworthy shouted: Does anybody know of a way to reveal just a sliver of the map? Smaller than what a map revealer would reveal? Or is there a way to block the map revealer off at a certain point? I can't use units to achieve what I'm trying to do.
if at the beginning of the game (as opposed to at some later time in game) is enough, just edit the fog of war layer.
[01:22 pm]
NudeRaider -- as an innocent bystander, mind you
[01:22 pm]
NudeRaider -- KrayZee
KrayZee shouted: I got an emergency phone call to stay home due to civil unrest :|
and apparently you should follow that advice: https://streamable.com/u2jzoo -- crazy things going on over there. You're not even safe from police harassment on your own property.
[10:01 am]
Oh_Man -- Units and map revealers are only way. Unless there's some EUD solution I'm not aware of.
[09:57 am]
IlyaSnopchenko -- Oh_Man
Oh_Man shouted: You can also use burrowed Zerg units.
The OP says he cannot use units. But if it's not units, what else? (there's a command to reveal the area in AISE, but it's only for 1.16)
[09:51 am]
Oh_Man -- You can also use burrowed Zerg units.
[09:51 am]
Oh_Man -- Create a spidermine somewhere else, wait for it to burrow, then move it to your location you want to reveal before moving it back. That should achieve what you're after.
[05:39 am]
youarenotworthy -- (In SC:R*)
[05:38 am]
youarenotworthy -- Does anybody know of a way to reveal just a sliver of the map? Smaller than what a map revealer would reveal? Or is there a way to block the map revealer off at a certain point? I can't use units to achieve what I'm trying to do.
Please log in to shout.


Members Online: Roy, NudeRaider, Zincoshine