10/14/2026 [01:10:21] GMT Home .:. Logout
Forums
Hardmaps.com :: Forums :: Map Making Forum :: Joint Operations
 
<< Previous thread | Next thread >>
DFXMED n00b
Go to page       >>  
Moderators: Hardmaps Administrator, *HmS*Wedge, *HmS*grunt, *HmS*Trevor, *HmS*LongBow
Author Post
matlin
Thu Jul 27 2006
Registered Member #601
Joined: Wed Apr 13 2005
Location: Stockholm, sweden
Posts: 66
How do I execute an event at mission start?
I can't get AI to attach to emplaced weapons.
Back to top
Website
*HmS*Rodge
Thu Jul 27 2006
Registered Member #534
Joined: Wed Feb 23 2005
Posts: 953
That´s really easy in Xmed.
Place a 50cal. put a bg right next to it. Mark the 50 cal and check the info screen on the left side off the screen.
It´s should be something like
"Selected: 1
Item #446
Name: E50triB - 50cal on 360
SSN: 449"

Item# and SSN are just choosen that way by me, could be anything
Remember the SSN number
Mark the bg right next to it. Right click on your mouse and choose "Edit Item attributes"
Change the top alternative in the Box called Waypoints to "125 - Goto SSN (any)" and in the box to the right of it place 449.

This will make the bg attach to the 50 cal.

[ Edited Fri Jul 28 2006 ]
Back to top
matlin
Fri Jul 28 2006
Registered Member #601
Joined: Wed Apr 13 2005
Location: Stockholm, sweden
Posts: 66
You're right, that was easy.
I was a bit unclear in my question, I was wondering about mission start events as well as how to get AI into vehicles and emplaced weapons.

Thanks, I may have some more questions as my map grows... so stay alert! ;)

[ Edited Fri Jul 28 2006 ]
Back to top
Website
*HmS*Trevor
Fri Jul 28 2006

Registered Member #35
Joined: Tue Dec 30 2003
Location: Lincolnshire England
Posts: 2080
The same technique can be used to make vehicles and bgs follow waypoints.
Back to top
matlin
Fri Jul 28 2006
Registered Member #601
Joined: Wed Apr 13 2005
Location: Stockholm, sweden
Posts: 66
Yea thanks I noticed that, now how do I output text?
Back to top
Website
*HmS*Rodge
Fri Jul 28 2006
Registered Member #534
Joined: Wed Feb 23 2005
Posts: 953
Easiest way is with the WAC script.

Go to our download section, in the Map Making Tutorials download Complete JO Coop Lesson by Brad. G. Unzip it and check out step 3. That´s how I learned to use WAC script.
Back to top
*HmS*Trevor
Fri Jul 28 2006

Registered Member #35
Joined: Tue Dec 30 2003
Location: Lincolnshire England
Posts: 2080
if you need text to appear in at a particlular event in your map then you have to learn variables, the easiest way to learn is to download one of my maps and look at the .WAC file
Back to top
matlin
Fri Jul 28 2006
Registered Member #601
Joined: Wed Apr 13 2005
Location: Stockholm, sweden
Posts: 66
I know WAC and I know variables so I'm good but thanks anyways,
I found what I was looking 4 at http://www.dfarena.com/phpBB/viewtopic.php?t=13614,
event(1) and never ... ;)

I'm learning DFX med and I get more done in much less time now.
The only thing I miss is to be able to see a rendered version of a building.
Back to top
Website
*HmS*Trevor
Fri Jul 28 2006

Registered Member #35
Joined: Tue Dec 30 2003
Location: Lincolnshire England
Posts: 2080
I have included a mission file for anyone who wants to learn some variables and text download
Back to top
matlin
Sat Jul 29 2006
Registered Member #601
Joined: Wed Apr 13 2005
Location: Stockholm, sweden
Posts: 66
That was an excellent example dude. And I had missed un/hidessn() :D
Great job.

Back to top
Website
matlin
Sat Aug 05 2006
Registered Member #601
Joined: Wed Apr 13 2005
Location: Stockholm, sweden
Posts: 66
A follow-up question on goals:
How do you guys handle things like "intel documents found" since it seems impossible to see if a special goal has been met?

Is the "win sub goal" just to show players that they are done or can I check if a goal has been won when I make an event?
Back to top
Website
*HmS*Rodge
Sat Aug 05 2006
Registered Member #534
Joined: Wed Feb 23 2005
Posts: 953
In this example I use Sub goal Eliminate all forces at Waypoint Alpha
Set up a group of bg and put them in a group (named for example: bg at PSP A for this example I use Group 3)

Next step is to go to "General information"
Use the pulldown menu and choos "Eliminate all forces at Waypoint Alpha"

After this it´s time to open the Event page.
First you have to make the subgoal visible in the game.
In this case at the start of the game (I usually use Trigger type: SSN, trigger condition: Alive)
This means as soon as any player enters the game the event is triggered.
Next go to actions.
Action type: Show win subgoal, Subgoal number: 1, Subgoal variabel status: 1
Doing this will put up a goal in the game (when you press G) - If you choose subgoal variabel status: 0 it hides the subgoal instead

Next point is make sure players know when the subgoal is finished.
At this point open events again.
This time make the Trigger type: Group, the Trigger condition: All destroyed Trigger variabels; Group 1: 3
Action type: Win subgoal, Subgoal number: 1

This means, when group 3 (the bad guys at PSP A) are killed you have won the sub goal and it will be ticked off in the list.

Really hope this helps matlin
Back to top
*HmS*Trevor
Sat Aug 05 2006

Registered Member #35
Joined: Tue Dec 30 2003
Location: Lincolnshire England
Posts: 2080
BTW there is no intel in JO that can be found, you have to make an area trigger that if ppl enter its set to win that goal, or you can have it set that if a player sits on a chair. demo here

[ Edited Sat Aug 05 2006 ]
Back to top
matlin
Mon Aug 07 2006
Registered Member #601
Joined: Wed Apr 13 2005
Location: Stockholm, sweden
Posts: 66
Trevor: How are the variables initiated? Or are they set to 1 as default?

What I wanted to know is if there is a way of knowing that all goals has been won when I make an event. I can't find it, so I assume that I can't find out and have to keep track of goals myself.

Something like "All goals have been won" as a trigger or "Goal has been won"... but nothing is ever that simple ... ;)
Back to top
Website
*HmS*Rodge
Mon Aug 07 2006
Registered Member #534
Joined: Wed Feb 23 2005
Posts: 953
Variables have too be set to 0 at the beginning of the map. Otherwise the system won´t know the number.
After each subgoal (when you display win subgoal in event) you can ad increase variable by 1. If you check the first demo Trevor did he´s using varables.

Easiest way:
At start set variable #1 to 0
First sub goal won add 1 to variable #1
Second sub goal won add 1 to variable #1
Third sub goal won add 1 to variable #1
At the end make a check of vairable #1. If it´s equal to 3 the good guys win. If not nothing happends.
Back to top
Go to page       >>   

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.1935 sec, 0.0369 of that for queries.