Home   Help Search Login Register  

Author Topic: Changing RscText With Variables ... ?  (Read 653 times)

0 Members and 2 Guests are viewing this topic.

duckwilliamson

  • Guest
Changing RscText With Variables ... ?
« on: 03 Aug 2003, 00:48:07 »
OK i have a slight problem that may be simple or complicated - i don't know ...

I want to have rsctext on the screen so i can position it and call it whenever i like ...

I've got the text working thanks to a rsctext tutorial, but i was wondering if i could modify the text with a command of some type ...

Say i have black text in the top left ... can i have it so there is only one rsctext used where the text is always black top left, but the text changes according to whatever i change variables to everytime i display it??

I have done work with dialogs and my dialog changes using the ctrlsettext perfectly fine, is there a way to do this with rsctext's too??

All i want to do is have the rsctext be capable of being changed without having to rewrite a new class in the description.ext ...

thx for any help in advance  8)

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Changing RscText With Variables ... ?
« Reply #1 on: 03 Aug 2003, 11:15:17 »
Why not just bung all the stuff from the tute into your description.ext and use variables to conrtol how the text appears?     If var1=1 then it's black top left, if var1=2 its red bottom right, etc..

I'm thinking of Xenofane's tute, is that the one you're referring to?
« Last Edit: 03 Aug 2003, 11:16:22 by macguba »
Plenty of reviewed ArmA missions for you to play

duckwilliamson

  • Guest
Re:Changing RscText With Variables ... ?
« Reply #2 on: 04 Aug 2003, 04:18:49 »
I am refering to Xenofane's tute ... (thx to him)

And i don't wanna change between top left black ... i want it to always be top left black ... i just want the text to change

So i want to define the top left black and control the text of that class with a variable ... how do you do that?

Gameer_77

  • Guest
Re:Changing RscText With Variables ... ?
« Reply #3 on: 04 Aug 2003, 11:48:40 »
You can't "ctrlsettext" rsctitles, only the dialogs themselves...Sorry, sucks aye? :(

Gameer

Offline KTottE

  • Former Staff
  • ****
Re:Changing RscText With Variables ... ?
« Reply #4 on: 04 Aug 2003, 15:35:12 »
"Life is not a journey to the grave with the intention of arriving safely in a pretty and well preserved body, but rather to skid in broadside, thoroughly used up, totally worn out, and loudly proclaiming 'WOW What a Ride!'"

Gameer_77

  • Guest
Re:Changing RscText With Variables ... ?
« Reply #5 on: 04 Aug 2003, 16:36:45 »
Then he's got a cursor in the middle of the screen and the gameplay stops, though.

duckwilliamson

  • Guest
Re:Changing RscText With Variables ... ?
« Reply #6 on: 04 Aug 2003, 20:54:45 »
so now  at least you guys understand my problem ... and i fooled around with ctrl's and they didn't work (only in dialogs)

so i ask: does that mean there is no way to change a rsctext once it's been written in the description without have a mouse cursor on the screen?

Gameer_77

  • Guest
Re:Changing RscText With Variables ... ?
« Reply #7 on: 04 Aug 2003, 21:08:25 »
Yes, no way.

If there's not to many options, you can easily just copy+paste the part, it's not as hard as it sounds.

Gameer

duckwilliamson

  • Guest
Re:Changing RscText With Variables ... ?
« Reply #8 on: 05 Aug 2003, 04:55:58 »
So ya well then my problem is kinda massive ...

-i want to have black text in the top left corner that displays ppl's names in multiplayer and what they do for each thing:

e.g:

"Bill has bit the dust"
"Bob ate Bill's rocket"
"Quazi reached the airport objective"

So by having this i can think of ways around it, but 'tis still difficult and i don't know how to add ppl's names into the lines either without having some type of variable (which apparently there isn't the capability of doing) ...

Anyways tell me- should i not do this at all - or should i change something - or what ??!!
Anyone please give me ideas or input somehow on how to make this sucker work!! ???

I thank anyone for their help  ;D