Jump to content

Music Conditions...


ecksile

Recommended Posts

So I'm trying to make it so certain music is triggered when certain conditions are met. I want this music to play over any music that is currently playing. Specifically I have cut up a song into two pieces. A slower more dreadful doomy type of feeling and then a more upbeat dominating kind of feeling. I am trying to make the more upbeat music play when a dragon crashes, although it will probably be expanded to play on any table turn in an epic battle.. Shadow of the colossus is probably the best example I can think of. If you have never played it, the music changes depending on the status of the combat, Here is an example for anyone who hasn't played http://youtu.be/nSxOXnkEcyE?t=1m55s.

 

Now I have been trying everything I could think of when it comes to the conditions that can be set for the music track using the CK, so that the upbeat song will take over when a dragon crashes...So far Nothing has worked. So I'm thinking it would have to be done with a script. Although I will admit functions/conditions and scripting are my weakness. So I may have simply overlooked something or am simply not understanding what I should be doing.

 

For reference so far, I have setup the music type to run separate from the main combat music. It is its own music type. The reason for this is because If I ran it under the combat music type I do not think it would switch abruptly, like I want it to and would rather wait until the current track finished before checking the conditions for the next track and then playing the song which isn't what I want.

 

For the music track I setup the conditions similiar to the basic combat music. Which is simply,

GetCombatTargetHasKeyword "ActorTypeDragon" == 1 and Is ran on the Player.

This is the basic combat setup for all music it basically just checks if the enemy combatant is a dragon or not and either plays boss music (dragon) or basic music (anything else). I used this same condition for my new music track. But I also added another condition, which has the job of checking if our dragon has been grounded/crashed. I will list all that I have tried.

 

 

All have been run on Subject/Target/Combat Target. Non of which worked. I was under the assumption these were all to be run on subject, but when it didn't work I tried the others just in case. Because they are music requests I'm not sure how they are handled when being called on, as they aren't magic effects of dialogue ect..

GetHealthPercentage <= 0.5 (Check to see if the dragon was half health since this is typically when it becomes perm grounded/crashes, If so play music. I also ran this as >= 0.5 on the Original Combat music, This was to ensure that no music from the original combat music would be played again if the dragon was beyond half health, just to ensure it wasn't overriding my new music somehow. Just an extra precaution it may not be necessary.)

GetIsFlying == 0 (If it has landed/crashed, play music.)

GetCrashLandingRequest == 1 (Has a request for a crash land been ran on the dragon? If yes play music.)

GetFlyingState == 0 (If were not flying, then we must be on the ground right? Play music.)

I thought about trying these but never did, Because I don't know how the crash landing is handled/called or defined as and I was running out of patience...So I just looked them up on the wiki.


IsInCriticalStage (This just looks like it is for handling death effects.)
IsAllowedToFly (I have tried setting this to 1 using console on a grounded dragon and he didn't take off again, so I don't think this is being applied. It can also be used to crash a dragon though if they are in the right area.)
IsBleedingOut (I dont think it is a bleed out state.)
GetEventData (When selected there was nothing in the drop down boxes for function parameters.)
GetKnockedState (I doubt its a knocked out state.)
GetIsHastyLandRequest (I didnt see it until after I was annoyed, There no documentation though like crashlandrequest.)

Now I'm not sure if I'm even doing this correctly, as I said I have a hard time with this stuff for whatever reason...So any help will be appreciated with getting this working. I will also be posting up some other questions I have whenever I get unlazy xP. Thanks for the read and the time, I seem to always pick the complex areas with little known info...lol...So hopefully someone can figure it out. I'm hoping to stay away from having to make any dummy quests or making a script but it may be inevitable at this point. Off to sleep.

 

P.S. - I did find a script that is called MQ"idr"DragonCrashTRIG. I'm assuming it is a trigger for crashing a dragon as its name implies, But it looked like it was linked to a main quest and nothing else, Specifically scene (80) (65) and (70) so I'm not sure if any clues may lie in this script or not.

 

-Wicked

Edited by ecksile
Link to comment
Share on other sites

  • 2 weeks later...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...