Named Saber Crystals

2twisted

New Member
Joined
Apr 23, 2017
Messages
13
DId this ever get figured out? so it doesn't just give you one color? instead of the color it should be?
 

2twisted

New Member
Joined
Apr 23, 2017
Messages
13
Lasko said:
Just copy, add to serverobjects, build & enjoy!

If you update from unstable this is the src bit that extends the colour palette.

if (colorMax != 31) {
int finalColor = MIN(color, 30);
setColor(finalColor);
updateCrystal(finalColor);


Download

Git Commit
 I just installed this but all named crystals are brown, I made change from 11 to 30. Still same thing. What do i need to look at. DId the colors work right for you?
 

Lasko

Moderator
Staff member
Moderator
Joined
Feb 13, 2012
Messages
295
2twisted said:
anyone know the color codes? i want to make a good orange custom crystal
open the lightsaber palette in SIE, they're all there.
 

Skyyyr

Member
Joined
Feb 22, 2016
Messages
39
You could go a step further like I did like a few years ago
http://imgur.com/wutcUif
 

Phoenix

Moderator
Staff member
Moderator
Joined
Sep 25, 2010
Messages
235
Skyyyr said:
You could go a step further like I did like a few years ago
http://imgur.com/wutcUif
Or a step further and add no-trade to tuned crystals.
 

Aeryna

Moderator
Staff member
Moderator
Joined
Oct 10, 2017
Messages
359
Lasko said:
Just copy, add to serverobjects, build & enjoy!

If you update from unstable this is the src bit that extends the colour palette.

if (colorMax != 31) {
int finalColor = MIN(color, 30);
setColor(finalColor);
updateCrystal(finalColor);


Download

Git Commit
---------------------------
---------------------------


I got an error message while building using your code.

This is the fix for my build:

Code:
if (colorMax != 31) {
int finalColor = Math::min(color, 30);
setColor(finalColor);
updateCrystal(finalColor);
Thank you. That's great.
 

Aeryna

Moderator
Staff member
Moderator
Joined
Oct 10, 2017
Messages
359
Can't get them work like loot using a npc:


Code:
And how to add them to loot tables for a npc?

lootGroups = {
      {
       {group = "power_crystals", chance = 700000},
        {group = "crystal_qui_gons_devotion", chance = 700000},
       {group = "......................
    ............
      }
 lootchance = 8000000

  }
},

They all are added to "group.lua" and "items.lua". And they can be created using /obj createloot crystal_qui_gons_devotion.

Only the power_crystals loot is added.
Which's the problem?
 

gyrantol

Member
Joined
Jan 16, 2015
Messages
127
Aeryna said:
Can't get them work like loot using a npc:


Code:
And how to add them to loot tables for a npc?

lootGroups = {
      {
       {group = "power_crystals", chance = 700000},
        {group = "crystal_qui_gons_devotion", chance = 700000},
       {group = "......................
    ............
      }
 lootchance = 8000000

  }
},

They all are added to "group.lua" and "items.lua". And they can be created using /obj createloot crystal_qui_gons_devotion.

Only the power_crystals loot is added.
Which's the problem?
The most common problem with loot groups is the balance. All the groups need to add up to 10000000 (100%) if you get it wrong it can cause problems. At the moment you have power crystals and the named crystal at 7% drop so quite low
 

DentB89

New Member
Joined
Jan 4, 2016
Messages
6
Skyyyr said:
You could go a step further like I did like a few years ago
http://imgur.com/wutcUif
How might I do this? I'd like to tinker with it a bit and can't seem to get it to work lol

Thanks in advance.
 
Top Bottom