So there are these different types of items called Torch/Flags/HolySymbols, Shield* which don't appear to have a constant already defined. I see BASE_ITEM_TORCH, which seems to be what is used for Torch/Flags/HolySymbols, however it doesn't seem to apply to these other types of torches (the ones that allow shield AC). Anyone have an idea on how to make a constant for this?
Is it possible to make a new constant for a base item type?
Débuté par
Lazarus Magni
, oct. 11 2012 07:46
#1
Posté 11 octobre 2012 - 07:46
#2
Posté 11 octobre 2012 - 07:57
line in baseitems.2da
to identify a line if it isnt clear from the Label, check the name collumn with the text in TLK
to identify a line if it isnt clear from the Label, check the name collumn with the text in TLK
#3
Posté 11 octobre 2012 - 08:05
Fantastic Shadoow, thank you. It looks like it is just TORCH_SHIELD, I will give adding that constant a try. I assume I should add it as a constant string? Like so?
const string BASE_ITEM_TORCH_SHIELD = "BASE_ITEM_TORCH_SHIELD";
?
const string BASE_ITEM_TORCH_SHIELD = "BASE_ITEM_TORCH_SHIELD";
?
Modifié par Lazarus Magni, 11 octobre 2012 - 08:08 .
#4
Posté 11 octobre 2012 - 08:13
Or no... that doesn't work, how do you add a constant for a base item type?
#5
Posté 11 octobre 2012 - 08:42
Well...
const int BASE_ITEM_TORCH_SHIELD = 367;
Seems to work (compile anyways, will have to test), thanks for pointing me in the right direction Shadooow.
const int BASE_ITEM_TORCH_SHIELD = 367;
Seems to work (compile anyways, will have to test), thanks for pointing me in the right direction Shadooow.
#6
Posté 11 octobre 2012 - 08:52
That looks correct.Lazarus Magni wrote...
Well...
const int BASE_ITEM_TORCH_SHIELD = 367;
Seems to work (compile anyways, will have to test), thanks for pointing me in the right direction Shadooow.
#7
Posté 12 octobre 2012 - 07:15
Yep this worked, Cheers!





Retour en haut






