Home   Help Search Login Register  

Author Topic: Help and suggestions with "choice" thingy in my mission  (Read 824 times)

0 Members and 1 Guest are viewing this topic.

Gooner861

  • Guest
Ok well my next mission will see the americans taking part in simultaneous raids on two ports to locate a rebel leader who is in either port.

U take part in one of the raids but find out that the rebel leader is not there. His lieutenant or sumone else of high importance is there instead. Now over at the other port the other attack group is getting slaughtered etc etc.

Now i want to give the player a choice of either staying put and capturing the lieutenant and destroying a whole bunch of rebel ammo etc which of course wud both be big blows to the resistance.

The 2nd choice is to hop onto a chopper and go help out ur buds and possibly capture the rebel leader over there.

The problem -  i dnt really know how i cud do this  :'( . Well do it effectively.

How wud i get it to work realisticly and properly. I was gonna use a chopper to come to either take you to the other port or to take you back to base AFTER you had captured/ killed the lieutenant.

But how cud i get the heli to do one or the other. How can i tell it that i have decided to capture the lieutenant meaning the chopper wud have to stay longer or how cud i just make the chopper take my men IMMEDIATELY to the other port.


Sorry, i know ive rambled on a bit and it may be confusing in parts ( the heats getting to me  ;D ) . I just wanna make this mission realistic and to work well.

Thanks

Gooner

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Help and suggestions with "choice" thingy in my mission
« Reply #1 on: 07 Aug 2004, 16:37:40 »
The way to do something like this is to use a radio switch trigger.    Or perhaps two of them.  

After the first objective is complete the player gets a message from papa bear saying use your radio to decide what to do next.    In the radio menu there are two options:  continue mission or go back to base.   Each trigger is type switch and is synchroed to the appropriate waypoints to make the choppers etc do the right thing.

Remember that you can give a group a set of waypoints like this

move
move
unload
hold    <---- synchro with one radio switch trigger
move
load
unload
hold
hold  <----- synchro with other radio switch trigger
move
load
unload
hold

The chopper will wait at the first hold wp till a trigger fires.   If it is the first one it will continue though the waypoints till it gets to the secon hold and then say there, since a hold wp is never completed.    If the second trigger fires it will jump straight to the move wp (4th last in the sequence.)

Thats the theory anyway.   Obviously the radio triggers will do other stuff like setting radio channels to "null".
Plenty of reviewed ArmA missions for you to play

Offline Mud_Spike

  • Contributing Member
  • **
Re:Help and suggestions with "choice" thingy in my mission
« Reply #2 on: 07 Aug 2004, 16:59:05 »
A slight variation:

If you (like me) dont fancy using radiomsgs,
do something like the following to let the chopper know of your decision:

When capturing the lieutenant, make him join your group
Code: [Select]
badguy setcaptive true
[badguy] join players_grp

And then, when the chopper comes to pick you up, he decides upon his next waypoint with:
Code: [Select]
badguy in units players_grp
(or simply
Code: [Select]
group badguy == players_grp
)

If the badguy is in the players group, go home and call it a day, else go to the other port.


And that would go in the condition field of a trigger, replacing the radio-triggers in macgubas example (but keeping the waypoints, syncs and whatnot)

Gooner861

  • Guest
Re:Help and suggestions with "choice" thingy in my mission
« Reply #3 on: 07 Aug 2004, 17:55:28 »
Thanks for the replies, definetely two things for me to try.

To capture the liuetenant if thats wot u decide to do, i' am hoping to use an arrest script made by Kuro.

I'll have a look at sum tutes as well.

Cheers

Gooner

Gooner861

  • Guest
Re:Help and suggestions with "choice" thingy in my mission
« Reply #4 on: 08 Aug 2004, 14:27:06 »
Ive been looking for tutorials on radio switch triggers and cant find any  :'( .

@ Macguba - I understand what u put Mac about the waypoints put i wudnt know how to get the radio options to come up.

@ Mud_Spike ( or anyone who understands ) - so wud i have one trigger with group badguy= players_grp in it synched to a waypoint heading back to base.

But how wud a set another set of waypoints to go to the other port? And wot command wud be in the trigger - NOT( badguy in units players_grp) ?? ( That was just a guess)

Cheers

Gooner


Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Help and suggestions with "choice" thingy in my mission
« Reply #5 on: 08 Aug 2004, 15:56:43 »
Gooner, what you are trying to do is quite advanced.     In order to achieve it (which you can and will) you need a really good knowledge and understanding of triggers and waypoints.    At the moment you're trying to run before you can walk.

There is no tute on radio switch triggers:  they are just a combination of radio triggers and switch triggers.   You need to understand both thoroughly.   Read the switch trigger tute, that will help, and a general tute on triggers.    Learn he command setRadioMsg.   That's the basic stage.

The intermediate stage is something using a radio switch trigger to call in air support.    The Tutorial Mission has a working example of this.   Examine it in the Mission Editor.

The advanced stage is what you are trying to do.    Don't keep plugging away, you'll just get frustrated.   Take a step back, learn the building blocks and then suddenly it will be easy.   ;)
Plenty of reviewed ArmA missions for you to play

Offline Mud_Spike

  • Contributing Member
  • **
Re:Help and suggestions with "choice" thingy in my mission
« Reply #6 on: 08 Aug 2004, 18:12:56 »
You could make it real simple with SetWpPos.
The chopper's waypoints:

1: GetIn
2: Move towards your port
3: Pick up your team (snypirs land_chopper.sqs comes to mind)
Then when everyone is in / moving off to next waypoint /whatever:
Code: [Select]
if (group badguy == group player) then { [group heli, 4] SetWpPos GetMarkerPos "mrk_base" } else { [group heli, 4] SetWpPos GetMarkerPos "mrk_otherport" }4: Transport unload
5: Move away to heli stand-off


Just an idea, and it could actually work.

Gooner861

  • Guest
Re:Help and suggestions with "choice" thingy in my mission
« Reply #7 on: 08 Aug 2004, 18:56:33 »
Thanks both of you  ;D .

@Macguba -  Thanks for the advice, im already quite familiar with switch triggers its just the radio stuff i need to read up on which im doing as i write this. I

s the switch trigger tute with the mission Armstrongs or sumone elses cos his doesnt seem to have any radio commands to call in air support.

@Mud_Spike -  Cheers for the idea, definetely seems alot easier but i think i'll try the radio commands first, it'll be good practice for me as i've never done it before. Thanks for the tips though, i still may use it.

Thanks, i'll come back soon and tell u how i've dun.

Gooner

Gooner861

  • Guest
Re:Help and suggestions with "choice" thingy in my mission
« Reply #8 on: 08 Aug 2004, 19:24:22 »
Well ok i did a search of the forum of "setRadioMsg" and kinda understand the very basics of it.

Like putting 1 setRadioMsg "NULL" in ur init.sqs to hide it but than i put 1 setRadioMsg "Hello" in the activation field of a trigger and put "activation" by Radio Alpha, when i moved into the trigger nothing happened.

Still reading up on it though.

EDIT

@ Mud_Spike- I've been looking at ur script, just one thing wot is [group heli, 4] about? or is that just the name of the chooper?
« Last Edit: 08 Aug 2004, 19:46:21 by Gooner861 »

Offline Mud_Spike

  • Contributing Member
  • **
Re:Help and suggestions with "choice" thingy in my mission
« Reply #9 on: 08 Aug 2004, 23:06:44 »
It's the heli's driver's group. (SetWpPos operates on groups, not units)
If you create a West UH-60 in the editor and give it a name, i.e., 'w_heli_0', then 'group w_heli_0' would return the group of that unit.

On another note for the other part of this thread:
you can have your radio-triggers do the SetWpPos magic,
"check for badguy in grp" was just another way of doing this - that is, deciding Where to go.




Gooner861

  • Guest
Re:Help and suggestions with "choice" thingy in my mission
« Reply #10 on: 08 Aug 2004, 23:10:10 »
YES!!!  ;D Got the radio switch to work  ;D . I used Macguba's tutorial mission which i found and that had sum air support stuff in it. So i used that to help me and i got my version to work. Finally i can get on with the next part of my mission.

Thanks for the suggestion as well Mud Spike  ;D .

Cheers

Gooner

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Help and suggestions with "choice" thingy in my mission
« Reply #11 on: 08 Aug 2004, 23:51:46 »
Quote
I used Macguba's tutorial mission which i found and that had sum air support stuff in it. So i used that to help me and i got my version to work

 :) That's why I wrote it.   :D
Plenty of reviewed ArmA missions for you to play