How can I modify HP(Hit points) of a sitem and a character?

Added by tao1445 over 4 years ago

Hello,
I've done the work according to "AddingGameEntities" which is in wiki.
I meet a new issue now.
After I added a sitem such as an armor,how can I modify it's HP.
I don't see the node called "HP" or "Hit points" in the .sitem file.

If anyone did this work,just give me some advice,pls.
Thanks for any advice.

There's my .sitem file.

iczalv.sitem (1.4 kB)


Replies (2)

RE: How can I modify HP(Hit points) of a sitem and a character? - Added by molator over 4 years ago

You've got 2 cases:

- if you're adding your armor part to a merchant,
that armor part will have the default statistics depending on its level,
as define somewhere in the code,

- if you're crafting the armor part,
the statistics will depend on the statistics of the raw materials.
The crafting plan is define in the related sbrick file.

RE: How can I modify HP(Hit points) of a sitem and a character? - Added by tao1445 over 4 years ago

OK,thank molator.
About the second case,crafting the armor part,I will analyse the sbrick file.
But can you tell me that when the armor part to a merchant,its level,price,and other statistics properties are defined in which source code?
Is that in EGS or some other servers?

Thanks a lot.

(1-2/2)