Home   Help Search Login Register  

Author Topic: automaticly countdowning text on screen ?  (Read 617 times)

0 Members and 1 Guest are viewing this topic.

Offline goki

  • Members
  • *
automaticly countdowning text on screen ?
« on: 03 Jul 2003, 13:54:20 »
Hi,

I guess in some original mission, countdown was being shown on screen. Do I remember right? Is there any easy way to countdown on screen while player plays? I don't want to make hundreds of triggers which have text of 4.59 and then 4.58 to make a 5 minutes countdown appear on screen !  :P there should be some easier way ain't it?  ???


thanks for reading
 :)

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:automaticly countdowning text on screen ?
« Reply #1 on: 03 Jul 2003, 15:58:23 »
taam = 5
#loop
"if (taam == _X) then {taam=taam-0.4}"  foreach [0.99,1.99,2.99,3.99,4.99]
titletext [format["%1",taam],"plain down"]
taam = taam -0.01
~0.01
goto "loop"

somin like dat shud work ;D

LCD OUT
« Last Edit: 03 Jul 2003, 19:13:04 by LCD »
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Offline goki

  • Members
  • *
Re:automaticly countdowning text on screen ?
« Reply #2 on: 03 Jul 2003, 17:16:40 »
High, ( hi )  ;D



thanks for replying, now I am overloaded with job but I will try it very soon.


Man, LCD , how do you know writing those commands? how did you learn to speak in this language?  ( I mean ofpec command language...  not english cause you are speaking a different thing yet  ;)   :D   ) eheh heh  hehh   ;D  :D   just kidding     :D

 I mean everybody like me, we are using stupid triggers and some like you, you are using the most working, professional ways, shortcuts of editing. I drive at, sometimes I want to just open a notepad and say to computer to do something but I don't know the command language of ofpec actually.

I mean what are the keywords in this language? what is the logic of this? how can I learn? how much time did it take for you?

also how about Iraq nowadays? (   I just wondered  :-*  )


thanks, see ya  :P  


-G
.

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:automaticly countdowning text on screen ?
« Reply #3 on: 03 Jul 2003, 19:15:03 »
Quote
Man, LCD , how do you know writing those commands? how did you learn to speak in this language?  ( I mean ofpec command language...  not english cause you are speaking a different thing yet      ) eheh heh  hehh      just kidding    

ROFL ;D

donno - it just fell on me ;D ;) - i depeboed som fav misions nd BIS misions nd got it from dere no TUTs :P ;)

bout da lang i speak - dat LCDish - u can get it in schools in... LCDLand ::) ;D

Quote
also how about Iraq nowadays? (  I just wondered    )

da strugle continues ;D ;)

:cheers:

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

Offline goki

  • Members
  • *
Re:automaticly countdowning text on screen ?
« Reply #4 on: 07 Jul 2003, 10:49:24 »
Hi loll !


I am disappointed man  :'(  cause it didn't work and wrote an huge error sentence on the top of the screen. It says that "error in variable" stuff... anyway you tried like me, thanks...

if anyone figures out the solution, he/she had better inform me,

see ya
,

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:automaticly countdowning text on screen ?
« Reply #5 on: 07 Jul 2003, 15:43:55 »
oops  :-X

ill try it on ma comp 2 find wats da eror ;)

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

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:automaticly countdowning text on screen ?
« Reply #6 on: 08 Jul 2003, 13:41:17 »
got it workin  8)

just 1 prob - i used hint 4 it - cuz it takes 2 much time 2 da title text 2 fade in - nd da player wont c it  :-\ - nd da hint wil do dat bleeping sound  :-X donno wat 2 do bout it

here da new code

Code: [Select]
taam = 5
_String = ""
#loop
? (taam < 5) and (taam > 4.59) : taam = 4.59
? (taam < 4) and (taam > 3.59) : taam = 3.59
? (taam < 3) and (taam > 2.59) : taam = 2.59
? (taam < 2) and (taam > 1.59) : taam = 1.59
? (taam < 1) and (taam > 0.59) : taam = 0.59
? taam <= 0 : hint "0.00"; goto "end"
"if ((taam > (_X-0.009)) and (taam < (_X+0.009))) then {_String = ""0""}" foreach [4.5,4.4,4.3,4.2,4.1,3.5,3.4,3.3,3.2,3.1,2.5,2.4,2.3,2.2,2.1,1.5,1.4,1.3,1.2,1.1,0.5,0.4,0.3,0.2,0.1]
hint format["%1%2",taam,_String]
_String = ""
taam = taam-0.01
~1
_String = ""
? (taam > 4.35)and (taam < 4.36) : taam = 4.36
? (taam > 4.22)and (taam < 4.23) : taam = 4.23
? (taam > 4)and (taam < 4.01) : taam = 4.01
"if ((taam > (_X-0.009)) and (taam < (_X+0.009))) then {taam = _X}" foreach [0.05,0.04,0.03,0.02,0.01,0.0,0.06,0.07,0.08,0.09]
goto "loop"

#end
;watever u want wen time ends
~1
exit

LCD OUT
« Last Edit: 08 Jul 2003, 13:41:35 by LCD »
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Offline goki

  • Members
  • *
Re:automaticly countdowning text on screen ?
« Reply #7 on: 11 Jul 2003, 12:49:23 »
Hi yaa,


sorry for delay,  :(


man, I will check it on monday since at right now I am overloaded with job, so I will inform you soon, thanks again,


keep defending your exotic, mysterious country, we do so  :D


see ya,

-G
.

Offline goki

  • Members
  • *
Re:automaticly countdowning text on screen ?
« Reply #8 on: 04 Aug 2003, 13:27:51 »
Hi ya,

Dude I am sorry, I know, delay of me is unbelievable,

hey it didn't worked too ! hey was your code compatible with 1.0 version?

man, I pasted those words to a notepad paper and saved it as "all files" with a name "taam.sqs" and called it with exec command and it gave those white sentences on the top of the screen (u know error in variable stuff...)


So maybe someone who is not bored of this topic makes a favor and send a mission file in which this "countdowning" is showed. please keep in mind it needs to be compatible with 1.0 version ( I wish u don't ask me ""what the heck are u using that version for" cause it is a very long story )

thanks LCD and people who may send that file to me.

cheers

-G

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:automaticly countdowning text on screen ?
« Reply #9 on: 04 Aug 2003, 16:40:55 »
wtf ?

1.0 ?

itll get al complicated  :-X sry man - it was 1.75+ only ;)

if i can get somin simple in 1.0 ill tel ya

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

Offline goki

  • Members
  • *
Re:automaticly countdowning text on screen ?
« Reply #10 on: 05 Aug 2003, 10:00:21 »
oki loll,  :P