Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Annoying glitch in my bound
Annoying glitch in my bound
Dec 17 2007, 10:25 pm
By: Fawkes  

Dec 24 2007, 6:09 pm Fawkes Post #21



How do I use a DC to loop music?



None.

Dec 24 2007, 8:41 pm Cheeseman119 Post #22



check out Falkoners Google Page for info on deathcounts I cant count on music looping to be there but
you should have a place with 2 locations and blank terrain (no loc)1 should be on/other is off
Trigger
Players

  • Any unused computer player
  • Conditions

  • player 1 brings X unit to X location
  • Actions

  • Set deathcount for X player to 1
  • Move X unit at X location to the middle of the switch
  • Preserve Trigger

  • Trigger
    Players

  • Any player
  • Conditions

  • Death Counts for X player is 1
  • Actions

  • Play .wav file for X player
  • Preserve Trigger


  • then if the player brings the unit to off set deathcounts back to 0 so it doesnt play is that how it works?(use DC's as switches?)



    None.

    Dec 25 2007, 4:39 am NudeRaider Post #23

    We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

    I don't understand what cheeze does there, but the easiest you can do is these 2 triggers:
    (You will need only 1 location for the on/off switch and 1 DC for the delay to play the wav)
    When the player moves the civ out of location 'Music on' the current music loop plays until its end and won't start again as long as the player keeps the civ out of the location.

    Music counter:
    Human Players
    Conditions:

    Always
    Actions:
    Subtract 1 for deaths of 'Music DC' for Current Player
    Preserve

    Music on:
    Human Players
    Conditions:

    Current Player brings at least 1 civ to 'Music on'
    Current Player has suffered exactly 0 deaths of 'Music DC'
    Actions:
    Set deaths of 'Music DC' to 1613 for Current Player
    Play wav
    Preserve

    Post has been edited 1 time(s), last time on Dec 25 2007, 4:45 am by NudeRaider.




    Dec 27 2007, 5:44 am Fawkes Post #24



    Thanks for the help. It worked. However, I'd like to know how you calculated 1613 for future reference.



    None.

    Dec 27 2007, 9:07 am NudeRaider Post #25

    We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

    Lenght of the wav in seconds * 11.8.
    1 realtime second has 11.8 dc counts.




    Options
      Back to forum
    Please log in to reply to this topic or to report it.
    Members in this topic: None.
    [10:34 am]
    NudeRaider -- SEN doesn't rely on spammers initiate its sleep cycle. It hat fully automated rest and clean-up phases. Please understand that this is necessary for the smooth operation of the site. Thank you.
    [03:45 am]
    Sylph-Of-Space -- Does the shoutbox get disabled when there's spammers?
    [2024-5-17. : 6:47 am]
    NudeRaider -- lil-Inferno
    lil-Inferno shouted: nah
    strong
    [2024-5-17. : 5:41 am]
    Ultraviolet -- 🤔 so inf is in you?
    [2024-5-17. : 4:57 am]
    O)FaRTy1billion[MM] -- my name is mud
    [2024-5-17. : 4:35 am]
    Ultraviolet -- mud, meet my friend, the stick
    [2024-5-16. : 10:07 pm]
    lil-Inferno -- nah
    [2024-5-16. : 8:36 pm]
    Ultraviolet -- Inf, we've got a job for you. ASUS has been very naughty and we need our lil guy to go do their mom's to teach them if they fuck around, they gon' find out
    [2024-5-16. : 5:25 pm]
    NudeRaider -- there he is, right on time! Go UV! :D
    [2024-5-16. : 5:24 pm]
    lil-Inferno -- poopoo
    Please log in to shout.


    Members Online: Sylph-Of-Space, 4alicec543ha6, 5claudiae41100rh7