Aller au contenu

Photo

Is it possible to make a new constant for a base item type?


  • Veuillez vous connecter pour répondre
6 réponses à ce sujet

#1
Lazarus Magni

Lazarus Magni
  • Members
  • 1 134 messages
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?

#2
Shadooow

Shadooow
  • Members
  • 4 474 messages
line in baseitems.2da

to identify a line if it isnt clear from the Label, check the name collumn with the text in TLK

#3
Lazarus Magni

Lazarus Magni
  • Members
  • 1 134 messages
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";
?

Modifié par Lazarus Magni, 11 octobre 2012 - 08:08 .


#4
Lazarus Magni

Lazarus Magni
  • Members
  • 1 134 messages
Or no... that doesn't work, how do you add a constant for a base item type?

#5
Lazarus Magni

Lazarus Magni
  • Members
  • 1 134 messages
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.

#6
Lightfoot8

Lightfoot8
  • Members
  • 2 535 messages

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.

 That looks correct.

#7
Lazarus Magni

Lazarus Magni
  • Members
  • 1 134 messages
Yep this worked, Cheers!