Jump to content
  • 0

Need help with custom WAI mission hints.


TVGhost

Question

Hello there,

 I am trying to set up WAI with mission hints instead of the white text just coming up on the screen. I can get the hint to appear when I only use 1 of the 3 parts, but if I put all 3 together like I have in my example, nothing appears. This is what I have done so far: 

_complete = [
[_mission,_crate], // mission number and crate
["crate"], // ["crate"], or ["kill"], or ["assassinate", _unitGroup],
[_vehicle], // cleanup objects
// mission announcement
hintSilent parseText format["   
<t size='1.5'  size='2' color='#1fb1c3' align='center'>NEW MISSION</t><img size='7' align='center' image='picture\hmmwv50_ca.paa'/>
<t size='1'  size='1.5' color='#1fb1c3' align='center'>Armed Vehicle Mission</t>
<t size='.8'  size='1' color='#FFFFFF' align='center'>Heroes have taken an armed vehicle from the bandits! Check your map for the location!</t> "];
// mission success
hintSilent parseText format["   
<t size='1.5'  size='2' color='#00FF00' align='center'>MISSION SUCCEDED</t>
<img size='7' align='center' image='picture\hmmwv50_ca.paa'/>
<t size='1'  size='1.5' color='#00FF00' align='center'>Armed Vehicle Mission</t>
<t size='.8'  size='1' color='#FFFFFF' align='center'>Bandits have secured the armed vehicle and have escaped with it</t> "];
// mission fail
hintSilent parseText format["   
<t size='1.5'  size='2' color='#FF0000' align='center'>MISSION FAILED</t>
<img size='7' align='center' image='picture\hmmwv50_ca.paa'/>
<t size='1'  size='1.5' color='#FF0000' align='center'>Armed Vehicle Mission</t>
<t size='.8'  size='1' color='#FFFFFF' align='center'>The vehicle has not been secured in time and has escaped</t> "];
] call mission_winorfail;

 As you can see, I have 3 hints for start, success, or fail. Can someone look at this can tell me why this isn't working all together? Thanks!

Also, here is a picture of what the hint looks like. http://i.imgur.com/OXsb4hI.png 

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0
[nil, nil, rSPAWN, [], {
hintsilent parseText "<t size='1.5'  size='2' color='#1fb1c3' align='center'>NEW MISSION</t><img size='7' align='center' image='picture\hmmwv50_ca.paa'/>
<t size='1'  size='1.5' color='#1fb1c3' align='center'>Armed Vehicle Mission</t>
<t size='.8'  size='1' color='#FFFFFF' align='center'>Heroes have taken an armed vehicle from the bandits! Check your map for the location!</t>
";}] call RE;

This should work.

Link to comment
Share on other sites

  • 0
[nil, nil, rSPAWN, [], {
hintsilent parseText "<t size='1.5'  size='2' color='#1fb1c3' align='center'>NEW MISSION</t><img size='7' align='center' image='picture\hmmwv50_ca.paa'/>
<t size='1'  size='1.5' color='#1fb1c3' align='center'>Armed Vehicle Mission</t>
<t size='.8'  size='1' color='#FFFFFF' align='center'>Heroes have taken an armed vehicle from the bandits! Check your map for the location!</t>
";}] call RE;

This should work.

 

 

This did not work for me, I had a few errors show in my RPT log complaining about a bracket and a > sign. Also, where would I place the pictures so the server finds them? I made a folder in the root of the server.pbo and the RPT said it was not found. Thanks!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Discord

×
×
  • Create New...