HUDs or Cockpits
Moderators: winston, another_commander
- Cody
- Sharp Shooter Spam Assassin
- Posts: 16081
- Joined: Sat Jul 04, 2009 9:31 pm
- Location: The Lizard's Claw
- Contact:
When immersed, I’m looking through a real ‘windscreen’ on the bridge, not at a projected display.
Some ‘handwavium’, some ‘glassteel’ and the shields… even bubble cockpits are possible.
Some ‘handwavium’, some ‘glassteel’ and the shields… even bubble cockpits are possible.
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
And any survivors, their debts I will certainly pay. There's always a way!
Just a bit of silliness. Rating switches from pirate to elite symbol when I evently get to Elite status (based on number of kills). Medals come from thargoid wars oxp. I added the following lines to the hud oxp:
if (player.score > 6399) {
player.ship.hud = ('hud_' + missionVariables.thargoidwars_medal + '.plist');
} else {
player.ship.hud = ('hud_' + missionVariables.thargoidwars_medal + '_deadly' + '.plist');
}
I originally wanted to display only symbols for legal status and rating, but couldn't figure out how to do the former - also not sure what to use as a symbol for 'clean status' - bar of soap perhaps?
if (player.score > 6399) {
player.ship.hud = ('hud_' + missionVariables.thargoidwars_medal + '.plist');
} else {
player.ship.hud = ('hud_' + missionVariables.thargoidwars_medal + '_deadly' + '.plist');
}
I originally wanted to display only symbols for legal status and rating, but couldn't figure out how to do the former - also not sure what to use as a symbol for 'clean status' - bar of soap perhaps?
- JazHaz
- ---- E L I T E ----
- Posts: 2991
- Joined: Tue Sep 22, 2009 11:07 am
- Location: Enfield, Middlesex
- Contact:
I'm not sure of the syntax really, but have you tried this:DGill wrote:Just a bit of silliness. Rating switches from pirate to elite symbol when I evently get to Elite status (based on number of kills). Medals come from thargoid wars oxp. I added the following lines to the hud oxp:
if (player.score > 6399) {
player.ship.hud = ('hud_' + missionVariables.thargoidwars_medal + '.plist');
} else {
player.ship.hud = ('hud_' + missionVariables.thargoidwars_medal + '_deadly' + '.plist');
}
I originally wanted to display only symbols for legal status and rating, but couldn't figure out how to do the former - also not sure what to use as a symbol for 'clean status' - bar of soap perhaps?
Code: Select all
if (player.score > 6399) {
player.ship.hud = ('hud_' + missionVariables.thargoidwars_medal + '.plist');
} else
if (player.score > 2559) {
player.ship.hud = ('hud_' + missionVariables.thargoidwars_medal + '_deadly' + '.plist');
} else
if (player.score > 511) {
player.ship.hud = ('hud_' + missionVariables.thargoidwars_medal + '_dangerous' + '.plist');
} else
if (player.score > 127) {
player.ship.hud = ('hud_' + missionVariables.thargoidwars_medal + '_competent' + '.plist');
} else
if (player.score > 63) {
player.ship.hud = ('hud_' + missionVariables.thargoidwars_medal + '_aboveaverage' + '.plist');
} else
if (player.score > 31) {
player.ship.hud = ('hud_' + missionVariables.thargoidwars_medal + '_average' + '.plist');
} else
if (player.score > 15) {
player.ship.hud = ('hud_' + missionVariables.thargoidwars_medal + '_poor' + '.plist');
} else
if (player.score > 7) {
player.ship.hud = ('hud_' + missionVariables.thargoidwars_medal + '_mostlyharmless' + '.plist');
} else {
player.ship.hud = ('hud_' + missionVariables.thargoidwars_medal + '_harmless' + '.plist');
}
Last edited by JazHaz on Mon Sep 06, 2010 6:12 pm, edited 1 time in total.
JazHaz
Thanks to Gimi, I got an eBook in my inbox tonight (31st May 2014 - Release of Elite Reclamation)!Gimi wrote:Maybe you could start a Kickstarter Campaign to found your £4500 pledge.drew wrote:£4,500 though! <Faints>
Cheers,
Drew.
- maik
- Wiki Wizard
- Posts: 2028
- Joined: Wed Mar 10, 2010 12:30 pm
- Location: Ljubljana, Slovenia (mainly industrial, feudal, TL12)
Just remove the second test for deadly. It's not going to hurt but is superfluous.
Cheers,
-Maik
EDIT: meant remove, not replace.
Cheers,
-Maik
EDIT: meant remove, not replace.
Last edited by maik on Mon Sep 06, 2010 6:18 pm, edited 1 time in total.
- JazHaz
- ---- E L I T E ----
- Posts: 2991
- Joined: Tue Sep 22, 2009 11:07 am
- Location: Enfield, Middlesex
- Contact:
Ninja'd!maik wrote:Just replace the second test for deadly. It's not going to hurt but is superfluous.
Just noticed that extra paste and editted my original post.
JazHaz
Thanks to Gimi, I got an eBook in my inbox tonight (31st May 2014 - Release of Elite Reclamation)!Gimi wrote:Maybe you could start a Kickstarter Campaign to found your £4500 pledge.drew wrote:£4,500 though! <Faints>
Cheers,
Drew.
Or alternatively (to save the nested if's)
using switch rather than the nest should be faster. You may also be able to streamline it further, but I guess the player.rank probably can't be used directly to generate a HUD plist filename as it will have spaces in it.
You can also use default: for the default setting of the switch (if none of the others are true), and don't forget the break; in each case subsection.
Code: Select all
switch(player.rank)
{
case "Harmless":
{
player.ship.hud = ('hud_' + missionVariables.thargoidwars_medal + '_harmless.plist');
break;
}
case "Mostly Harmless":
{
player.ship.hud = ('hud_' + missionVariables.thargoidwars_medal + '_mostlyharmless.plist');
break;
}
<insert the rest of the code in a similar fashion for the other ranks>
}
You can also use default: for the default setting of the switch (if none of the others are true), and don't forget the break; in each case subsection.
My OXPs via Boxspace or from my Wiki pages .
Thargoid TV
Dropbox Referral Link
Thargoid TV
Dropbox Referral Link