Hello modding community,
I'm trying to add sounds and objectives to my win condition, but I can't figure out how to add them to specific players.
I think the VP condition scar plays different sounds for different players, because I see it checks the value of a currentVictoryBalance variable and then tells the winners they're winning and the losers that they're losing, at the same time, but I can't figure out how and I don't see where it iterates through players.
Can anyone help?
Setting individual player objectives and sounds
30 Apr 2020, 09:45 AM
#1
Posts: 6
1 May 2020, 07:48 AM
#2
Posts: 6
Update:
I think I figured out the objectives part. I can change it for different players by getting the local player. The objective functions grab the local player if no player is provided.
I'm completely lost for the sound part, though.
I've tried using Actor_PlaySpeech() and this works, but it plays for all players and sound only plays if I initialize the following variable: g_MissionSpeechPath = "botb/gameplay"
Is there any way to add speech files from outside the folder provided in that variable or to add another folder?
Other than Actor_PlaySpeech(), I've tried using Sound_Play2D() like I've seen used in aabattle_vptickerwin-annihilate_functions.scar, but I never got any sound to play, even if the code was executed.
I think I figured out the objectives part. I can change it for different players by getting the local player. The objective functions grab the local player if no player is provided.
I'm completely lost for the sound part, though.
I've tried using Actor_PlaySpeech() and this works, but it plays for all players and sound only plays if I initialize the following variable: g_MissionSpeechPath = "botb/gameplay"
Is there any way to add speech files from outside the folder provided in that variable or to add another folder?
Other than Actor_PlaySpeech(), I've tried using Sound_Play2D() like I've seen used in aabattle_vptickerwin-annihilate_functions.scar, but I never got any sound to play, even if the code was executed.
PAGES (1)

1 user is browsing this thread:
1 guest
Ladders Top 10
-
#Steam AliasWL%Streak
- 1.802137.854+2
- 2.46468.872-1
- 3.881302.745-2
- 4.14465.689-1
- 5.402212.655+4
- 6.21156.790-2
- 7.302129.701+1
- 8.501325.607+4
- 9.359189.655+5
- 10.408297.579+2
Replay highlight
VS
-
cblanco ★ -
보드카 중대
-
VonManteuffel -
Heartless Jäger
Einhoven Country
Honor it
15
Download
2716
Board Info
970 users are online:
970 guests
3 posts in the last 24h
4 posts in the last week
19 posts in the last month
4 posts in the last week
19 posts in the last month
Registered members: 62433
Welcome our newest member, Milanesi
Most online: 4501 users on 26 Oct 2025, 01:00 AM
Welcome our newest member, Milanesi
Most online: 4501 users on 26 Oct 2025, 01:00 AM