1
Scripting & Programming / [Resolved] Need some push into right direction at item system
« on: Feb 15, 12, 02:36:07 PM »
Hey HE folks.
I wanted to start doing a small item system for my game. I coded some smaller HSL functions and i am keen on programming so I got my HSL basics all in place.
1) What i want to get
I know about the spec oracle system and want to use this.
I followed the tutorial on the wiki and got everything in place (as far as i can tell)
Now i am not sure how to go further.
I have an PD_ItemSpec, PD_ItemSpecOracle, PD_Item (which is specDerivedObject) and added all the functions. Where do my fields now belong to ?
Do i add them to PD_Item or to the Spec?
I´m a bit confused at the moment and feel like hanging in the air, so any feedback would be appreciated.
I wanted to start doing a small item system for my game. I coded some smaller HSL functions and i am keen on programming so I got my HSL basics all in place.
1) What i want to get
- Item system with kind of procedural items
- every item is defined by 3 values: value, durability and strength, these values may differ between items of the same kind (so 2 broadswords can have different values for this 3)
- items also have stuff like name, description, icon and a model, which are the same for every item of one type
I know about the spec oracle system and want to use this.
I followed the tutorial on the wiki and got everything in place (as far as i can tell)
Now i am not sure how to go further.
I have an PD_ItemSpec, PD_ItemSpecOracle, PD_Item (which is specDerivedObject) and added all the functions. Where do my fields now belong to ?
Do i add them to PD_Item or to the Spec?
I´m a bit confused at the moment and feel like hanging in the air, so any feedback would be appreciated.