Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: TopAce on February 03, 2004, 03:14:20 pm

Title: Something related to variables
Post by: TopAce on February 03, 2004, 03:14:20 pm
I would like to ask if it were possible to get the value of a variable displayed somewhere?
The Star Wars conversion(and me :)) needs this information.I am thinking of the debriefing/directives window mostly.
Title: Something related to variables
Post by: diamondgeezer on February 03, 2004, 03:39:02 pm
Variables are not my thing at all, but how about setting the hull strength of an object to the variable and making the object an escort ship? Obviously you'd stealth it to make it invisible... and you'd need to have the event setting the hull strenght repeat fairly often to make sure it kept up to date
Title: Something related to variables
Post by: TopAce on February 03, 2004, 03:40:52 pm
But what if the variable number goes above 100?
Title: Something related to variables
Post by: diamondgeezer on February 03, 2004, 03:50:27 pm
I dunno. I'm a duck.
Title: Something related to variables
Post by: Anaz on February 03, 2004, 08:37:46 pm
so basically say you want to have a variable for # ships destroyed, and you want to display that in debrief or something? Honestly, I don't think that's possible without a lot of pain (i.e. a briefing screen for each # of ships destroyed), or if you kindly get on your knees and beg SCP for something like the color tags, but for variables.
Title: Something related to variables
Post by: IPAndrews on February 04, 2004, 03:53:17 am
I too am fairly sure you can't do it.
Title: Something related to variables
Post by: kasperl on February 04, 2004, 11:16:51 am
the escort ship idea is fairly reasonable, you're just going to have to make sure you stay between 1 and 100.
Title: Something related to variables
Post by: KARMA on February 04, 2004, 11:42:44 am
actually it's a pretty nice idea but the 1-100 thing is a bit limiting.
Title: Something related to variables
Post by: TopAce on February 04, 2004, 04:26:32 pm
And doesn't fit our needs. We are working with higher numbers.
So do you suggest me to beg this at the SCP forum?
Title: Something related to variables
Post by: karajorma on February 04, 2004, 04:45:06 pm
Or simply divide by 10/100/1000/whatever before using it :)
Title: Something related to variables
Post by: TopAce on February 04, 2004, 04:57:43 pm
It is still not good for me. Too limited.
Title: Something related to variables
Post by: Anaz on February 04, 2004, 06:28:59 pm
Aye. I've not looked at the code but it doesn't seem *too* hard to me to ref a variable (and it can't have cleared variables by that time, coz de-briefing sexps could depend on them...)