DFBarracks - Forums




Delta Force Barracks Forums - Powered by XMB 1.9.11
Delta Force Barracks Forums
Not logged in [Login ]
Go To Bottom

Printable Version  
 Pages:  1  2
Author: Subject: AB JOMed - Wac Files
Dain
Grunt
*




Posts: 18
Registered: 3-6-2004
Member Is Offline


[*] posted on 8-24-2004 at 01:14 AM


Anyone know the .wac file syntax for printing lines of text on the bottom of the screen during game play ?

when you select an Event Action of "Output Text" it generates the code "Display Text Message 0". Somewhere you set the text message (0) to "Follow the yellow brick road" and when that event is triggered, the text line will appear on screen.

-Dain
View user's profile View All Posts By User
Eagle_Eye
Senior Admin
***********


Avatar


Posts: 8865
Registered: 9-7-2002
Location: Adelaide, South Australia
Member Is Offline

Mood: Grey,not Stupid

[*] posted on 8-24-2004 at 01:18 AM


Note..these are valid for BHD, and not tested in JO by me, so you need to check this out..

The Event Action of "Output Text", is to put up text contained in the bin file..download the bin file tut from the download section for more info..

Wac File syntax would be something like this..these are from my EXP Map "Operation Orca"..

;screen prompts

if ssnarea(10000,2) and never() then
text "Use the TAB key to bring up the mission Objectives"
endif


if ssnarea(147,8) and never() then
text "Contact Right..Rebel Patrol Boat..."
endif


if ssnarea(10000,7) and never() then
text "Watch for Rebel Patrols on the shore lines.."
text "You may need to use M4 on these Guys.."
endif


if ssnarea(2,6) and never() then
text "Contact Right..Another Rebel Speed Boat..."
endif


if ssnarea(10000,28) and never() then
text "Better rearm and grab that Med pack at the waypoint"
text "Then Blow the Radar so we can get away in the Sub"
endif

** ssnarea (x,y) where x is the ssn number, and y is the area trigger number

EE










View user's profile Visit user's homepage View All Posts By User
Dain
Grunt
*




Posts: 18
Registered: 3-6-2004
Member Is Offline


[*] posted on 9-2-2004 at 06:41 PM


Thanks EE, that got me much closer. Only prob is your method prints the message on the screen of the host only, and prints garbage for everyone else.

Soooooooooo close, but no cigar.
:P




View user's profile View All Posts By User
Eagle_Eye
Senior Admin
***********


Avatar


Posts: 8865
Registered: 9-7-2002
Location: Adelaide, South Australia
Member Is Offline

Mood: Grey,not Stupid

[*] posted on 9-2-2004 at 11:15 PM


Ah, well, you didn't say it was for Coop....could have told you that only the host would see it..

All the players would need a copy of the wac file installed to make it work..

Did you try the bin file? I think everyone would need a copy of that as well, I haven't had time to play with the Jo med, or NILE yet..kinda busy with some other stuff..

EE









View user's profile Visit user's homepage View All Posts By User
KiLLAHiLLA.DE
Corporal
***


Avatar


Posts: 135
Registered: 7-24-2004
Location: Northern Germany
Member Is Offline

Mood: tranquillized

[*] posted on 9-14-2004 at 12:18 PM
text msg in coop


in my newest coop map (tb released tomorrow) i used text commands ..my client online did c those too WITHOUT having wac installed...seems only output text as med event doesnt work on clients sides
View user's profile View All Posts By User
Duck
Grunt
*




Posts: 14
Registered: 1-18-2004
Member Is Offline


[*] posted on 12-20-2004 at 04:07 AM


you can also set your text to go off according to time left in the game,
Example:
if never() and Past(40) then

text("Map created by Yourname")

if never() and Past(90) then

text("Visit us at www.rebelgr.com")

if never() and Past(600) then

text("your mom wears combat boots")

40 sec after the game starts the 1st message will be dislpayed,
90 sec after game starts my url will be displayed,
600 sec after game starts, everyone will know that there moms wear combat boots lmao




View user's profile View All Posts By User
Duck
Grunt
*




Posts: 14
Registered: 1-18-2004
Member Is Offline


[*] posted on 1-2-2005 at 06:38 PM


Not sure if you guys know this so im going to post it, when you are writing your wac file, it does not need to be in cronological order, ie
if never() and Past(40) then

text("Map created by Bug~RGR")

endif

if never() and Past(300) then

text("Map created by Bug~RGR")

endif

if never() and Past(600) then

text("Map created by Bug~RGR")

endif

if never() and Past(900) then

text("Map created by Bug~RGR")

endif

if never() and Past(50) then

text("Visit Us at WWW.rebelgr.com")

endif

if never() and Past(320) then

text("Visit Us at www.rebelgr.com")

endif

if never() and Past(620) then

text("Visit Us at www.rebelgr.com")

endif

if never() and Past(820) then

text("Visit Us at www.rebelgr.com")

endif

if never() and Past(200) then //New Event

quake(100,20)

endif

if never() and Past(300) then //New Event

overcast(100,20)

rain(100,20)

endif

if never() and Past(300) and random(2) then //New Event

flash()

endif

if never() and Past(300) and random(2) then //New Event

farflash()

endif

if never() and Past(400) then //New Event

quake(100,30)

endif

if never() and Past(500) then //New Event

quake(100,30)

endif

if never() and Past(600) then //New Event

quake(100,30)

endif

if never() and Past(700) then //New Event

quake(100,30)

endif

if never() and Past(800) then //New Event

quake(100,30)

endif

if never() and Past(900) then //New Event

rain(0,30)

endif

if never() and Past(1300) then //New Event

overcast(0,30)

endif

if never() and Past(330) and random(2) then //New Event

flash()

endif

if never() and Past(360) and random(2) then //New Event

flash()

endif

if never() and Past(390) and random(2) then //New Event

flash()

endif

if never() and Past(400) and random(2) then //New Event

flash()

endif

if never() and Past(430) and random(2) then //New Event

flash()

endif

if never() and Past(460) and random(2) then //New Event

flash()

endif

if never() and Past(490) and random(2) then //New Event

flash()

endif

if never() and Past(500) and random(2) then //New Event

flash()

endif

if never() and Past(530) and random(2) then //New Event

flash()

endif

if never() and Past(560) and random(2) then //New Event

flash()

endif

if never() and Past(590) and random(2) then //New Event

flash()

endif

if never() and Past(600) and random(2) then //New Event

flash()

endif

if never() and Past(630) and random(2) then //New Event

flash()

endif

if never() and Past(660) and random(2) then //New Event

flash()

endif

if never() and Past(690) and random(2) then //New Event

flash()

endif

if never() and Past(700) and random(2) then //New Event

flash()

endif

if never() and Past(730) and random(2) then //New Event

flash()

endif

if never() and Past(760) and random(2) then //New Event

flash()

endif

if never() and Past(790) and random(2) then //New Event

flash()

endif

if never() and Past(800) and random(2) then //New Event

flash()

endif

if never() and Past(830) and random(2) then //New Event

flash()

endif

if never() and Past(860) and random(2) then //New Event

flash()

endif

if never() and Past(890) and random(2) then //New Event

flash()

endif

if never() and Past(900) and random(2) then //New Event

flash()

endif

if never() and Past(930) and random(2) then //New Event

flash()

endif

if never() and Past(960) and random(2) then //New Event

flash()

endif

if never() and Past(990) and random(2) then //New Event

flash()

endif

if never() and Past(1000) and random(2) then //New Event

flash()

endif

if never() and Past(1030) and random(2) then //New Event

flash()

endif

if never() and Past(1060) and random(2) then //New Event

flash()

endif

if never() and Past(1090) and random(2) then //New Event

flash()

endif

if never() and Past(1100) and random(2) then //New Event

flash()

endif

if never() and Past(1130) and random(2) then //New Event

flash()

endif

if never() and Past(1160) and random(2) then //New Event

flash()

endif

if never() and Past(1190) and random(2) then //New Event

flash()

endif

if never() and Past(1200) and random(2) then //New Event

flash()

endif

if never() and Past(1230) and random(2) then //New Event

flash()

endif

if never() and Past(1260) and random(2) then //New Event

flash()

endif

if never() and Past(1290) and random(2) then //New Event

flash()

endif

if never() and Past(1300) and random(2) then //New Event

flash()
this is a good wac file, note that my effects are grouped, write one wac command and copy and paste as many times as your going to use it, then adjust the numbers for intensity and duration, and the time they are to happen




View user's profile View All Posts By User
AndyGR42
Corporal
***




Posts: 106
Registered: 12-25-2004
Location: Gockeltown
Member Is Offline


[*] posted on 1-3-2005 at 08:50 PM


You don't need to copy&paste an endless script :

if never() then
set(v1,30)
endif

if past(v1) then
text("Your Text")
add(v1,30)
endif

This displays your text every 30 seconds. You can nest some conditions to vary the text or event.

To make it random try this:

if never() then
set(v1,30)
endif

if random(15) then
set(v2,rnd)
endif

if past(v1) then
text("Your Text")
add(v1,30)
add(v1,v2)
endif

(not tested yet, but should work)
View user's profile Visit user's homepage View All Posts By User
Duck
Grunt
*




Posts: 14
Registered: 1-18-2004
Member Is Offline


[*] posted on 1-4-2005 at 08:12 AM


spank you Andy, I will try it out



View user's profile View All Posts By User
AndyGR42
Corporal
***




Posts: 106
Registered: 12-25-2004
Location: Gockeltown
Member Is Offline


[*] posted on 3-18-2005 at 03:08 AM
Highlighter for freeware editor


Hello,

my last wac file reached the 40kb border. So I decided to use a better editor. I'm using a freeware product for my bussines work. Now I customized a highlighter for this editor to use it with wac files. You can get the editor here:

http://www.pspad.com/en/

And my highlighter here:

www.gockeltown.de

The pspad is a simple to use but powerfull editor. You can take a look of it here (It's multi language, you can use it with english, french etc):


View user's profile Visit user's homepage View All Posts By User
WM-NEMISIS
Grunt
*




Posts: 1
Registered: 2-18-2005
Member Is Offline


[*] posted on 3-23-2005 at 05:33 AM


Im curious, does anyone know what the ai types and numbers are example, if i wanted to take our respawning rpg at a point what number does that ai have ?

also where can i find all the listings for ai so that in the future if we get a map thats really awesome if it has a respawning problem it can be dealt with or if not enough ai in an area we can add ai? thnx for the sugestions
View user's profile View All Posts By User
 Pages:  1  2

  Go To Top

Powered by XMB 1.9.11
XMB Forum Software © 2001-2012 The XMB Group
[Queries: 15] [PHP: 49.4% - SQL: 50.6%]












Copyright © 2002 - 2008 All Rights Reserved - DFBarracks.com
Site Design by A.Bullet - ScreamingDemon.com