this wac is in 3 parts, 1st part is the breifing in the chat, the 2nd is where you destroyed 2 rockets, the 3rd is where you reach an area full of
teamates. the 1st one works successfully, heres my problem, when all the IFs are met in the 2nd one, they dont activate until the 3rd ones are met.
When those 2 ssns are destroyed, i wish that it displayes that text when it happens. please tell me whats wrong and what im doin wrong ill take any
assistance.
if ssnarea(10000,8) and never() then
text "You are approaching the base's com building."
text "You may want to think twice about attacking it."
text "If you attack it, they will be expecting you"
text "at the base, but they will be unable to call for"
text "support from the other bases in the region"
text " "
text "If you assault the base without bothering"
text "the com building, you will have the element of"
text "suprise; but they will be able to call for support"
text "press J to read this all"
if ssndead(209) and ssndead(189) then
quake(20)
text "Alright, Now that the rockets are destroyed, lets"
text "get the hell out of here."
endif
if ssnarea(10000,7) and never() then
ssnwave(497,"pmpv161.wav",200)
text "Okay, Now that we're here, hop in a vehicle and wait"
text " for further instructions."
endif
Originally posted by Mstenger404
this wac is in 3 parts, 1st part is the breifing in the chat, the 2nd is where you destroyed 2 rockets, the 3rd is where you reach an area full of
teamates. the 1st one works successfully, heres my problem, when all the IFs are met in the 2nd one, they dont activate until the 3rd ones are met.
When those 2 ssns are destroyed, i wish that it displayes that text when it happens. please tell me whats wrong and what im doin wrong ill take any
assistance.
if ssnarea(10000,8) and never() then
text "You are approaching the base's com building."
text "You may want to think twice about attacking it."
text "If you attack it, they will be expecting you"
text "at the base, but they will be unable to call for"
text "support from the other bases in the region"
text " "
text "If you assault the base without bothering"
text "the com building, you will have the element of"
text "suprise; but they will be able to call for support"
text "press J to read this all"
if ssndead(209) and ssndead(189) then
quake(20)
text "Alright, Now that the rockets are destroyed, lets"
text "get the hell out of here."
endif
if ssnarea(10000,7) and never() then
ssnwave(497,"pmpv161.wav",200)
text "Okay, Now that we're here, hop in a vehicle and wait"
text " for further instructions."
endif
Couple of things I see wrong....
"if ssnarea(10000,8) and never() then" ssn(10000) is usable in single player mode only and will not work for anyone other then the host in
multiplayer.
"if ssndead(209) and ssndead(189) then"
If these items respawn then both need to be killed within 20 seconds of each other. a better way would be... "if not ssnalive(209) and not
ssnalive(189) then"
"if ssnarea(10000,7) and never() then"
Once again this only works for the host player as it's a single player command.
when all the IFs are met in the 2nd one, they dont activate until the 3rd ones are met.
You forget apply "endif" to end of 1st part.
This is reason why 2nd part won't activate until the 3rd ones, 1st part can't finish its working.
I often forget apply it for .wac events. =)
As for 1st part, I think player will get the difficulty for reading all of your breifing texts.
Maybe... they can read last 3 lines.
Because appearance of texts in chat is limited 3 lines.
Need apply the WAITing time for reading.
As an idea for 1st part;
Code:
if ssnarea(10000,8) and never() then
text("You are approaching... ")
text("You may want to think... ")
endif
if chain(6) and never() then
text("If you attack it, they will... ")
text("at the base, but they will... ")
text("support from the other bases... ")
endif
if chain(6) and never() then
text("If you assault... ")
text("the com building,... ")
text("suprise; but they will... ")
endif
if chain(6) and never() then
text("press J to read this all")
endif
As for 2nd part, need apply "never()" to IF trigger maybe.
Because 2nd part will repeat until your mission is cycled to another.
As Ecalpon says, if you are making a MP COOP, you need alternative with MED events instead of "ssnarea(10000,area)" command.
As a sample for 2 MED events;
Code:
Event 0: Event 0
Triggers:
Group 1 is within area 8
Actions:
Set Mission Var#1 to 1
Event 1: Event 1
Triggers:
SSN 209 has been killed and
SSN 189 has been killed and
Group 1 is within area 7
Actions:
Set Mission Var#1 to 2
Next, with the .WAC.;
if eq(V1, 1) and never() then
- This is instead of 1st part's IF trigger.
if eq(V1, 2) and never() then
- This is instead of 3rd part's IF trigger.