Home   Help Search Login Register  

Author Topic: cant find a name 4 a thread with simple Qs  (Read 2745 times)

0 Members and 1 Guest are viewing this topic.

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
cant find a name 4 a thread with simple Qs
« on: 23 May 2007, 22:35:42 »
i just wanna ask some Qs to refreshen ma memory and see some changes in arma

1) is there a way to cary on variabels from mision to outro ?

2) cant think of any right now but they will come dont worry...

*gonna play wit da editor

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re: cant find a name 4 a thread with simple Qs
« Reply #1 on: 23 May 2007, 22:42:13 »
Welcome back LCD, long time no read.


Planck
I know a little about a lot, and a lot about a little.

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: cant find a name 4 a thread with simple Qs
« Reply #2 on: 23 May 2007, 22:52:23 »
Not sure if these will work out of a campaign, but you may try saveStatus with a dummy unit before your mission ends and then try to recover the value in the outro with loadStatus as long as you have there the dummy unit with same name. To transfer a numeric value, you may play with the rating or the damage of the dummy unit, after loadState in the outro, check these values of the unit.

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re: cant find a name 4 a thread with simple Qs
« Reply #3 on: 23 May 2007, 23:19:44 »
we tried dat wit da orig OFP... didnt work

but i can always do dat if da player loses ill just triger a cutscene... not what i really want ut itll work

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re: cant find a name 4 a thread with simple Qs
« Reply #4 on: 24 May 2007, 02:46:05 »
LCD? LCD?? LCD!!!  :D

Very, VERY nice to see you matey, hope all's well.

Back in OFP I sort of cracked the transfer of information from mission to outro in my Un-Impossible Mission.    But it was very hard work.   The only way to do variables is to code the information in someway, rating might work but dammage doesn't, it's too buggy IIRC.

Don't know if this has been fixed in ArmA.
Plenty of reviewed ArmA missions for you to play

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re: cant find a name 4 a thread with simple Qs
« Reply #5 on: 24 May 2007, 06:30:27 »
HEYA MACCCA....... que pasa ? :D  :cool2:

rating can move from mision 2 outro ? dat all i need tanlx and mofoin helicopters  :D

gimme quick example as im afrais im gonne old and cant remember ny scripting  :o

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re: cant find a name 4 a thread with simple Qs
« Reply #6 on: 24 May 2007, 14:56:34 »
In ArmA version 1.07.xxxx Beta (dunno about 1.06) on the contrary to what the comref says commands setVariable and getVariable work with all objects the AI can engage so you can store variables into soldiers and other vehicles so that might work when transferring variables from the mission into the outro (note that these commands don't work on soldiers at least in version 1.05 and below).. :dunno:
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline Mr.Peanut

  • Former Staff
  • ****
  • urp!
Re: cant find a name 4 a thread with simple Qs
« Reply #7 on: 24 May 2007, 21:50:40 »
But where do you get a list of the variable namespace?
urp!

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re: cant find a name 4 a thread with simple Qs
« Reply #8 on: 24 May 2007, 22:12:07 »
I think the variable given by this method is the very same variable that is created when you name a unit or object with the unit dialog.

For example calling your #2 'fred'.


Planck
I know a little about a lot, and a lot about a little.

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re: cant find a name 4 a thread with simple Qs
« Reply #9 on: 24 May 2007, 22:48:27 »
Nope, because you give a value to that variable.
I believe you can't name a unit fred=100 and then guery that variable later on, with like hint format ["%1",fred]..

EDIT: Oops, slight misunderstandingasm there, I just now realised what you meant  :D
So yes, you are probably right, it must work the same way..

Quote
But where do you get a list of the variable namespace?
???

Code: [Select]
dudeguy setVariable ["first_variable",1234]

...

if ((dudeguy getVariable "first_variable") >= 1234)
 then {blah}
   else {bleh};
« Last Edit: 25 May 2007, 14:45:59 by h- »
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re: cant find a name 4 a thread with simple Qs
« Reply #10 on: 24 May 2007, 23:54:30 »
i dont think soldiers carry on from mision to outro  :dunno:

but how exactly do u tink i can do dat stuff... i want a comented example :P

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re: cant find a name 4 a thread with simple Qs
« Reply #11 on: 25 May 2007, 14:48:52 »
This is just a theory but if you name a soldier with the same name in the mission and in the outro it might also carry the variable you saved into the soldier to the outro.. :dunno:

I'll try to test this when I get the chance.
Probably someone else beats me to it though..
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: cant find a name 4 a thread with simple Qs
« Reply #12 on: 25 May 2007, 15:13:44 »
I bet it will not  (I know it will not  :P).

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re: cant find a name 4 a thread with simple Qs
« Reply #13 on: 25 May 2007, 17:52:48 »
Yup, you're right..
It was far fetching anyways..  :P
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re: cant find a name 4 a thread with simple Qs
« Reply #14 on: 25 May 2007, 18:02:53 »
what im gonna do is use maths  :cool2:

we know dat rating moves 2 outro right ? so im gonna set rating 2 zero b4 mision ending nd add some rating 4 every obj... den have da outro depending on overall rating n stuff like dat :D

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta