| Pages:
1
2 |
Dain
Grunt
Posts: 18
Registered: 3-6-2004
Member Is Offline
|
|
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
|
|
|
Eagle_Eye
|
|
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
|
|
|
Dain
Grunt
Posts: 18
Registered: 3-6-2004
Member Is Offline
|
|
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
|
|
|
Eagle_Eye
|
|
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
|
|
|
KiLLAHiLLA.DE
Corporal
 
Posts: 135
Registered: 7-24-2004
Location: Northern Germany
Member Is Offline
Mood: tranquillized
|
|
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
|
|
|
Duck
Grunt
Posts: 14
Registered: 1-18-2004
Member Is Offline
|
|
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
|
|
|
Duck
Grunt
Posts: 14
Registered: 1-18-2004
Member Is Offline
|
|
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

|
|
|
AndyGR42
Corporal
 
Posts: 106
Registered: 12-25-2004
Location: Gockeltown
Member Is Offline
|
|
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)
|
|
|
Duck
Grunt
Posts: 14
Registered: 1-18-2004
Member Is Offline
|
|
spank you Andy, I will try it out
|
|
|
AndyGR42
Corporal
 
Posts: 106
Registered: 12-25-2004
Location: Gockeltown
Member Is Offline
|
|
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):
|
|
|
WM-NEMISIS
Grunt
Posts: 1
Registered: 2-18-2005
Member Is Offline
|
|
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
|
|
|
| Pages:
1
2 |