I have set the values to 507. Still don't understand where is that value expecified. BUT. It's working clean. No errors or anything.
I have a few more things. I tried to add a new drug.
The proto is item tipe "2" which means it's a drug type, put the PID on DrugsIdentifiers, on drug Effects, and table index. Got this error:
[03:383] Script message: drugs : Info : Compiling const int[] DrugsIdentifiers : 10747, 28.
[03:383] Script message: drugs : Error : 'PID_TESTDRUG' is not declared : 10752, 25.
[03:384] Script message: drugs : Info : Compiling void DropDrugEffects(Critter&inout) : 10977, 1.
[03:384] Script message: drugs : Error : Use of uninitialized global variable 'DrugsIdentifiers'. : 10996, 20.
[03:386] Script message: drugs : Info : Compiling int GetDrugTableIndex(uint16) : 11108, 1.
[03:386] Script message: drugs : Error : 'PID_TESTDRUG' is not declared : 11200, 6.
[03:389] Script::LoadScript - Unable to Build module<drugs>, result<-1>.
[03:389] Load module fail, name<drugs>.
I think I wrote everything right. As far as I know, the first line in effects, means the debuff of using the drug.
// PID_TESTDRUG
-1, 0, 0, 0, 0, 0,
ST_HAMBRE_LEVEL, -200, 0, 0, 0, 0,
ST_CURRENT_HP, 100, 0, 0, 0, 0,
-1, 0, 0, 0, 0, 0,
-1, 0, 0, 0, 0, 0,
What am I doing wrong? Thanks SO MUCH in advance, I have not much time to work on this but indeed its helping me a lot