10/13/2026 [20:58:46] GMT Home .:. Logout
Forums
Hardmaps.com :: Forums :: Map Making Forum :: Joint Operations
 
<< Previous thread | Next thread >>
Some WAK commands I use
Moderators: Hardmaps Administrator, *HmS*Wedge, *HmS*grunt, *HmS*Trevor, *HmS*LongBow
Author Post
*HmS*Trevor
Mon Oct 09 2006

Registered Member #35
Joined: Tue Dec 30 2003
Location: Lincolnshire England
Posts: 2080
Player rides
Getting intel from a pc by some one sitting at the chair

if ssnride(***) and never then
wave("alarm1.wav",40)
text " "
text "Accessing computer.........."
text ""
endif


replace the *** with the ssn number of the chair.

A countdown clock

if never() then
set(v10,59)//sec
set(v11,60)//min
endif

if elapse(1) then
dec(v10)
if eq(v10,0) then
dec(v11)
set(v10,59)
endif
consol("Time left till Princess dies!")
consol#("Minutes!",v11)
consol#("Seconds!",v10)
endif


Disabling vehicles
The example below stops ppl using a helo by passing a variable (v8,1) from the game.

if eq(v8, 1) and never then
wave("Alarm4.wav", 10)
text " "
text "I've lost hydrolics guys"
text " "
endif

if eq(v8, 1) and Chain (2) then
wave("Alarm4.wav", 10)
text " "
text "Were going down brace for impact!!!"
text " "
DisableSSN(***)
endif


Jump survive - enable bgs and humans to jump from helos and tall buildings

if never() and (true(HUMANS)) then //New Event
gain(-10,-10,-10)
fallmps = (1000000)
endif


A target counter


/---------- target counter ----------

if never() then
set(v10,5) //remaining set at 5 targets here
set(v11,0) //destroyed
endif

if true(v10) then

if never() and (ssndead(***)) then
wave("javlock.wav",50)
dec(v10)
inc(v11)
consol#("targets destroyed:",v11)
consol#("Targets left:",v10)
endif

if never() and (ssndead(***)) then
wave("javlock.wav",50)
dec(v10)
inc(v11)
consol#("targets destroyed:",v11)
consol#("Targets left:",v10)
endif

if never() and (ssndead(***)) then
wave("javlock.wav",50)
dec(v10)
inc(v11)
consol#("targets destroyed:",v11)
consol#("Targets left:",v10)
endif

if never() and (ssndead(***)) then
wave("javlock.wav",50)
dec(v10)
inc(v11)
consol#("targets destroyed:",v11)
consol#("Targets left:",v10)
endif

if never() and (ssndead(***)) then
wave("javlock.wav",50)
dec(v10)
inc(v11)
consol#("targets destroyed:",v11)
consol#("Targets left:",v10)
endif

//------------------------------------------------------------

if Elapse(100) then
consol#("Number of targets remaining:",v10)
endif
endif

//------------------------------------------------
if false(v10) then
if never() and () then
consol(" ")
consol("All targets destroyed !! ")
wave("alarm1.wav",40)
text " "
text "Area is clear of targets"
text "Path clear to the north"
endif


as before replace the *** with the ssn number of your target.

Website info

if past(40) and random(130) then //Web site stuff
text("Visit www.hardmaps.com")
wave("alarm6.wav",50)
endif

if past(30) and random(100) then //reminder
text("")
text("Reminder! Press SPACE for last PSP")
text("Press G key for goals and I key for info")
endif
Back to top
Godfather
Tue Nov 10 2009
Registered Member #2482
Joined: Tue Nov 10 2009
Posts: 6
fallmps = (1000000)

You are aware that fallmps only knows values from 1 t 32?
Back to top
*HmS*Trevor
Fri Feb 05 2010

Registered Member #35
Joined: Tue Dec 30 2003
Location: Lincolnshire England
Posts: 2080
Only works with Nile
How to script group death in wac, it only shows a message if a member of the group targeted is dead/destroyed.

if !v222 then
     GLOOP xxxx;group name
          if ssnalive(item) then
               inc(v222)
          endif
     END
     if v223 != v222 then
          consol#(" group name left :",v222)
          v223 = v222
     endif
     if v222 then
          v222 = 0
     else
       action when group dead
     endif
endif



[ Edited Fri Feb 05 2010 ]
Back to top
CC R
Fri Feb 12 2016
Registered Member #2581
Joined: Thu May 20 2010
Posts: 12
Hi, I want to know how to put a message up in game in top left corner?
Back to top
CC R
Sun Feb 14 2016
Registered Member #2581
Joined: Thu May 20 2010
Posts: 12
....as for now I only know how to put it in the left bottom corner under the chatt line. So anyone want to help me out what command in Wac I need to use? Or it's topsecret maybe;)! Thx in advance

[ Edited Sun Feb 14 2016 ]
Back to top
*HmS*shadowman
Fri Feb 19 2016
Registered Member #272
Joined: Thu Aug 19 2004
Location: uk
Posts: 64
Change text to consol("message")
Back to top
CC R
Mon Mar 07 2016
Registered Member #2581
Joined: Thu May 20 2010
Posts: 12
Thank you very much Shadowman;)!!!
Back to top
___________________
Tue Nov 17 2020
Registered Member #2938
Joined: Fri Mar 21 2014
Location: Banks of the Styx
Posts: 130
Corrections in BOLD


*HmS*Trevor wrote ...

if false(v10) then
if never() and () then
consol(" ")
consol("All targets destroyed !! ")
wave("alarm1.wav",40)
text " "
text "Area is clear of targets"
text "Path clear to the north"
endif




if false v10 and never then
consol "All targets destroyed !! "
wave "alarm1.wav"
text "Area is clear of targets"
text "Path clear to the north"
text ""
endif



*HmS*Trevor wrote ...



Jump survive - enable bgs and humans to jump from helos and tall buildings

if never() and (true(HUMANS)) then //New Event
gain(-10,-10,-10)
fallmps = (1000000)
endif





if never then
fallmps = 30
endif



*HmS*Trevor wrote ...

A target counter

if never() then
set(v10,5) //remaining set at 5 targets here
set(v11,0) //destroyed
endif

if true(v10) then

if never() and (ssndead(***)) then
wave("javlock.wav",50)
dec(v10)
inc(v11)
consol#("targets destroyed:",v11)
consol#("Targets left:",v10)
endif

if never() and (ssndead(***)) then
wave("javlock.wav",50)
dec(v10)
inc(v11)
consol#("targets destroyed:",v11)
consol#("Targets left:",v10)
endif

if never() and (ssndead(***)) then
wave("javlock.wav",50)
dec(v10)
inc(v11)
consol#("targets destroyed:",v11)
consol#("Targets left:",v10)
endif

if never() and (ssndead(***)) then
wave("javlock.wav",50)
dec(v10)
inc(v11)
consol#("targets destroyed:",v11)
consol#("Targets left:",v10)
endif

if never() and (ssndead(***)) then
wave("javlock.wav",50)
dec(v10)
inc(v11)
consol#("targets destroyed:",v11)
consol#("Targets left:",v10)
endif

//------------------------------------------------------------

if Elapse(100) then
consol#("Number of targets remaining:",v10)
endif
endif

//------------------------------------------------
if false(v10) then
if never() and () then
consol(" ")
consol("All targets destroyed !! ")
wave("alarm1.wav",40)
text " "
text "Area is clear of targets"
text "Path clear to the north"
endif[/i]





In this example I will place all targets at Alpha in one group called TARGETS1
I will use variable 1 to trigger first objective of the mission.

Target counter

if never then
v1 = 0
v2 = 36
endif

if {#condition} and never then
v1 = 1
wave "promote.wav"
endif

if v1 == 1 then
GLOOP TARGETS1
if ssndead item enter
removessn item
sub v2,1
endif
END
consol "<cFF0000>First objective: <-co>"
consol "<cFF0000>Destroy all targets at Alpha!<-co>"
consol# "<cFF0000>Targets: <-co>",v2
endif

→ Better use CONSOL output so players can still use the TEXT field for in game communication!!!

if v2 == 0 and never then
v1 = 2
consol "<cFF0000>All targets destroyed! Good job, soldier!<-co>"
consol "<cFF0000>Proceed to your next objective! <-co>"
consol "<cFF0000>Press "i" for info.<-co>"
wave "happy1.wav"
endif

→ If you want to reuse this variable for targets at the next zone, use ENTER instead of 'and never then'


Back to top
 

Jump:     Back to top

Syndicate this thread: rss 0.92 Syndicate this thread: rss 2.0 Syndicate this thread: RDF
Powered by e107 Forum System
All trademarks are copyright their respective owners.
This site is best viewed using 1280-1024 screen resolution.
{THEMEDISCLAIMER}
Render time: 0.0806 sec, 0.0158 of that for queries.