Named Saber Crystals

2twisted

New Member
Apr 23, 2017
11
0
1
#22
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?
 
Oct 10, 2017
205
9
18
#30
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.
 
Oct 10, 2017
205
9
18
#31
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?
 
Jan 16, 2015
99
5
8
42
#32
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
Jan 4, 2016
4
0
1
#34
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.