precision_bomber
13 years ago
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?
Death Label:
Reduced back to 3 main factions(and a couple of extras).
Each faction can choose a(or all of them) tech-tree via General's Powers.
Angel Wings: Jets and Anti-Air, Helicopters and Missiles, Hovercraft and Lasers
Red Skulls: Armor Division, Mecha Armada, Drone Swarm
Earth's Saviors: Air Raid, Homeworld Security, Stealth
Sponsor
NewNightmare
13 years ago
Well you could go with a following pattern:
for intro

***if***
true

***then***
play 'intro track'
set flag 'def' to true 
and then
Enable Def
***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
after that

***if***
flag escalation is true
and 'first wave' is in area 'first wave changes cd'

***then***
play 'escalation'
set flag 'battle' to true

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 *censored* IS WITH THE CODE=PLAIN SYNTAX HIGHLIGHTING ???
parts of code goes missing if you use multiple instances...
thebunnybruce
13 years ago
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
I'm not as cute as I look!
I'm still learning!
i^love^mixery
13 years ago

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

Originally Posted by: thebunnybruce 



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.
thebunnybruce
13 years ago
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
I'm not as cute as I look!
I'm still learning!
i^love^mixery
13 years ago
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.
thebunnybruce
13 years ago
Thank you,

Will have a look when I get home.
I'm not as cute as I look!
I'm still learning!
Users browsing this topic