Posted by: precision_bomber - Thursday, October 18, 2012 10:04:42 AM
Okay. This is a long one I'm tryin' to redo the Music Playing "system" for Skirmish/Multiplayer. Okay. I've divided the music, not by faction, but by the time in the gameplay. Divisions are: >Intro(Early Game) >Defense >Escalation >Battle(Mid Game) >Late Game Intro themes or starter themes are fixed to factions. Defensive Line themes play when a player is holding down a defensive line against another player. Escalation Themes play when "First Wave" Forces come into play. Battle Themes play when the Combat Zone is alive. Late Game plays after a player's enemy has suffered so much losses. I've gotten Intro, Defense and Escalation to work well. But nothing plays after the first Escalation theme. I Have "Battle Themes" start playing when both the Local Player and The Player's Enemy have attacked each other and that the Local Player has units the "CAN_ATTACK" at the Enemy's Outer Perimeter. Did I do this right? To make it a bit clear, who do I signal Battle themes to play when the game starts to be an all-out war? Should I use _ESCALATION counter for more efficient scripting of themes to played? Also, each Phase(Division) of music has their set of tracks to be played in order(except Intros). Unless the battle hasn't escalated to any of the yet to be achieved circumstances, the music set the phase has play. And it gets to the last track on the set, and yet, the circumstances aren't met then it plays back to the first theme. How would it fan out: Intro > Defense 1 > Escalation 1 > Escalation 2> Escalation 3> Battle 1 > Battle 2> etc... Not yet Achieved Circumstances and all tracks in the phase have played. Defense 1> Defense 2> Defense 3> Defense 1> etc... Is there an effective system in Looping the tracks?

Posted by: NewNightmare - Thursday, October 18, 2012 11:31:52 AM
Well you could go with a following pattern: for intro [code]***if*** true ***then*** play 'intro track' set flag 'def' to true [/code] and then Enable Def [code]***if*** flag 'def' is 1 and player has units in area 'def' or whatever you have to do to def the line. ***then*** play 'def' set flag 'escalation' to true[/code] after that [code] ***if*** flag escalation is true and 'first wave' is in area 'first wave changes cd' ***then*** play 'escalation' set flag 'battle' to true [/code] and you could use this pattern with flags and secondary triggers to activate steps after each other. double triggers are to avoid bugs. P.S WHAT THE F*CK IS WITH THE CODE=PLAIN SYNTAX HIGHLIGHTING ??? parts of code goes missing if you use multiple instances...

Posted by: thebunnybruce - Thursday, November 22, 2012 6:15:01 AM
an observation i have noticed, trying set scripts for music in scirmish maps like compstomp maps does not work to well. you scripts we put in are overriten by normal hidden scripts for music alot of the time, and creates this stange music cuts and starts... only in maps were the sciripts for the scirmish players are edited (like AOD maps) then music can be set and is not interupted. if there is a way around this id love to know thank you

Posted by: i^love^mixery - Thursday, November 22, 2012 7:29:30 AM
[quote=thebunnybruce;126339]only in maps were the sciripts for the scirmish players are edited (like AOD maps) then music can be set and is not interupted. if there is a way around this id love to know thank you[/quote] if thats true you could just import the standard AI scripts automatically into every map where you want to use custom music to fix it.

Posted by: thebunnybruce - Thursday, November 22, 2012 1:46:10 PM
Maybe this is a dumb question, but were can I find the standard ai scripts... Because I'd like to have a good look at them to improve my map making skills. Thank you

Posted by: i^love^mixery - Thursday, November 22, 2012 3:23:37 PM
just do Edit -> Edit Player List -> Add Skirmish players, then go to scripting menu and import this file: http://cnclabs.com/forums/cnc_postsm125207_How-to-import-skirmish-scripts-into-map-correctly.aspx#post125207 takes a long time to load all the scripts. so maybe you should disable the "Auto verify" option in the scripts menu before you start to import this file.

Posted by: thebunnybruce - Thursday, November 22, 2012 7:25:29 PM
Thank you, Will have a look when I get home.