Home   Help Search Login Register  

Author Topic: Radio Questions  (Read 800 times)

0 Members and 1 Guest are viewing this topic.

shadow99

  • Guest
Radio Questions
« on: 06 Jul 2004, 03:56:47 »
Thanks to Macguba's Tutorial mission, I've come a long way in Op Flash editing just by tweaking a few points. I still have a few questions, though.

The first, is a problem with my radio. How do I have Radio Echo disabled from when the mission starts? If I can do it through init.sqs, what do I type?
This is odd, because I checked through a mission I built a while ago in which you only gain Radio Echo after destroying an Oil Refinery. Yet I found no initial trigger disabling Radio Echo, and I know I didn't use init.sqs for it. I thought maybe if I just 'enabled' Radio Echo once the objective is complete it would start off unactivated, but nope. I checked through all my triggers to make sure none of them clashed with what I want done, so if you think it's a problem with my triggers, tell me what to search for.

The next is Radio questions. I can hear you groaning now wondering why I'm asking this when there's another thread already out there. Problem is, my brain is pretty small, and is there a step by step tute that makes a radio conversation? I tried macguba's but it was slightly too complicated for me. Moved too fast for a complete noob like me.

Last is nothing to do with Radio questions, but I'll throw it in anyway. For a condition for a trigger, what do I type in to check if an objective is complete?

AKA "If Objective 1 is complete, then this trigger can happen"

I tried using objStatus a few different ways but to no avail.

Thanks heaps.


shadow99

  • Guest
Re:Radio Questions
« Reply #1 on: 06 Jul 2004, 03:58:02 »
Oh, and can anyone advise a good camera scripting tute? A step by step that tells you how to make one? I tried the Camera Scripting Wizard but I'm still a bit puzzled. What I need is a practical...

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:Radio Questions
« Reply #2 on: 06 Jul 2004, 10:27:52 »
1) I can't really remember. Check the command reference (aka bible) for something like 'setradiowhatever' or something like that.
2) I reckon the easiest way is to do it with a script, not this GL blahblah. First, read SnYpirs introduction to code snippets so you know what you are dealing with, then, do like this:
dude sideradio "I won! Weeeeeeeeee! feck you ruskies!!!"
~SomeDelayHereWhatDoYouThinkAboutFiveSeconds
dude2 sideradio "But half the NATO army got slaughtered by 3 men, we lost 17581775 men today dude!"
~7 (or another number, whatever)
dude3 sideradio "They aren't dead yet! Noooooooo! RUN AWAY!!!"
exit
3) In the same trigger where you turn obj1 to green, have a boolean there true in the same on act field. So it'll be like:
"1" setobjstatus "DONE"; boolean1 = True
Now, in the other trigger, simply check for boolean1.
4) Try SnYpirs camera scripting tute, and after that, messiahs camera.sqs.

Puh! Almost as much typing as macca use to do. ;D

:beat: *Gets Shot* :beat:

shadow99

  • Guest
Re:Radio Questions
« Reply #3 on: 06 Jul 2004, 10:47:36 »
Thanks heaps. Looking up those tutes now... Although I do think your answer to number 2 was more specific than any tute could be.  ;D

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Radio Questions
« Reply #4 on: 06 Jul 2004, 12:15:47 »
Clearing the radio channel is covered in the Tutorial mission init.sqs

1 SetRadioMsg "NULL"

That's for channel Alpha obviously, Echo is 5 instead of 1.

objStatus only changes marks on your Objectives in the Briefing, that's all.   It's purely cosmetic, it doesn't "do" anything.    Armsty is right, use variables (a boolean is a flavour of variable) to control triggers.    So your second trigger, the one dependant on the Objective being complete, might look something like this

Activation:   west present
Condition:   this and boolean1
On Activation:  as you like

You can call it (virtually) anything you like, doesn't have to be boolean1.

There are lots of ways of making radio conversations.   I recently pulled together a gamelogic tutorial (in Pending in the Ed Depot) which shows how BIS do it.
Plenty of reviewed ArmA missions for you to play

shadow99

  • Guest
Re:Radio Questions
« Reply #5 on: 06 Jul 2004, 12:22:06 »
I'm afraid I still cannot find any command for clearing out the radio commands, Armstrong. The closest I can find to your description would be 'setRadioMsg' but that doesn't do the trick.

shadow99

  • Guest
Re:Radio Questions
« Reply #6 on: 06 Jul 2004, 12:22:53 »
Sorry about that macguba, you posted as soon as I went into the message screen.

shadow99

  • Guest
Re:Radio Questions
« Reply #7 on: 06 Jul 2004, 12:27:39 »
Well macguba, it worked. And due to your frequent and flawless correctness, I regret to tell you you're going to have to be my god from now on. :)

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Radio Questions
« Reply #8 on: 06 Jul 2004, 12:44:48 »
Lol well whatever you do, never rely on my syntax.

Oh, and the "null" doesn't have to be in capitals:  ofp code is supposed to be case insensitive although rare counterexamples in specific circumstances have been reported.   Null turns up in several places with much the same meaning as here.
Plenty of reviewed ArmA missions for you to play

shadow99

  • Guest
Re:Radio Questions
« Reply #9 on: 07 Jul 2004, 03:23:56 »
You sure about it being case sensitive? Or is that just in files like init.sqs and description.ext, not in the actual mission editor? I'm sure I've been slack on cases before in the mission editor, at least.

Acid

  • Guest
Re:Radio Questions
« Reply #10 on: 07 Jul 2004, 10:52:41 »
It's case INsensitive. Meaning you can use upper or lower, it makes no real difference thats why for instance setfuel works the same as setFuel. I've never really encountered a single instance where OFP has demanded a specific case for any command.

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:Radio Questions
« Reply #11 on: 07 Jul 2004, 13:24:03 »
I regret to tell you you're going to have to be my god from now on. :)

Not ANOTHER one. Geez, macca hasn't even got a temple and he got half OFPEC as followers. :P

:beat: *Gets Shot* :beat:

shadow99

  • Guest
Re:Radio Questions
« Reply #12 on: 08 Jul 2004, 03:27:41 »
Well, nobody said life was fair. ;D