|
2 registered members (TipmyPip, alx),
5,069
guests, and 2
spiders. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: Wierd invalid pointer.
[Re: draculaFactory]
#340738
09/07/10 12:21
09/07/10 12:21
|
Joined: Mar 2009
Posts: 146 USA
paracharlie
Member
|
Member
Joined: Mar 2009
Posts: 146
USA
|
Hmm, I totally understand that. I'll mess around with your explanation until I fully understand. I also have alot of properties for items and weapons in my game; with weight always being a factor, so this layout really works out well for my game. Thank you very much for taking the time to help me understand this.
A8 Commercial
|
|
|
Re: Wierd invalid pointer.
[Re: paracharlie]
#340875
09/08/10 07:53
09/08/10 07:53
|
Joined: Feb 2005
Posts: 647 Williamsburg, VA USA
draculaFactory
OP
User
|
OP
User
Joined: Feb 2005
Posts: 647
Williamsburg, VA USA
|
Yea, it's not that hard. I can help you with most everything that I have implemented so far. Mine have tons of properties too and I am constantly adding more.
Making dreams come true... And being erroneously accused of software piracy by Conitec in the process.
|
|
|
Re: Wierd invalid pointer.
[Re: draculaFactory]
#340893
09/08/10 11:57
09/08/10 11:57
|
Joined: Mar 2009
Posts: 146 USA
paracharlie
Member
|
Member
Joined: Mar 2009
Posts: 146
USA
|
Ok great. I'll be working on it today, so I'm sure I'll have some questions for you.
A8 Commercial
|
|
|
Re: Wierd invalid pointer.
[Re: paracharlie]
#340993
09/09/10 12:23
09/09/10 12:23
|
Joined: Mar 2009
Posts: 146 USA
paracharlie
Member
|
Member
Joined: Mar 2009
Posts: 146
USA
|
Drac, what do you use synergy_id and synergy_usecode for? What do they do?
A8 Commercial
|
|
|
Re: Wierd invalid pointer.
[Re: paracharlie]
#341056
09/10/10 03:21
09/10/10 03:21
|
Joined: Feb 2005
Posts: 647 Williamsburg, VA USA
draculaFactory
OP
User
|
OP
User
Joined: Feb 2005
Posts: 647
Williamsburg, VA USA
|
That is only half-implemented in that older script, you can delete references to that. In the script that is used for combining or using items on other items, such as dragging a spell scroll and dropping it on a spellbook to add the spell. The synergy_id is the id of the item type that the cursor item reacts with, synergy_usecode is the value of the action that takes place. For example, the synergy_id of the spell scroll matches the spellbook's id (the spellbook doesn't react when dragged and dropped on the scroll, however, so the spellbook's synergy_id is 0); the synergy_usecode is used in another lookup function, it looks up a block of code that unlocks the spell in the spellbook and then destroys the scroll.
Last edited by draculaFactory; 09/10/10 03:22.
Making dreams come true... And being erroneously accused of software piracy by Conitec in the process.
|
|
|
Re: Wierd invalid pointer.
[Re: draculaFactory]
#341096
09/10/10 17:13
09/10/10 17:13
|
Joined: Mar 2009
Posts: 146 USA
paracharlie
Member
|
Member
Joined: Mar 2009
Posts: 146
USA
|
Ahh very cool. Kind of like what Everquest did. Another question Drac. Why is slot_owner and slot_origin set to -99 for both tome and milling bowl?
Last edited by paracharlie; 09/11/10 21:10.
A8 Commercial
|
|
|
Re: Wierd invalid pointer.
[Re: paracharlie]
#341311
09/14/10 14:43
09/14/10 14:43
|
Joined: Feb 2005
Posts: 647 Williamsburg, VA USA
draculaFactory
OP
User
|
OP
User
Joined: Feb 2005
Posts: 647
Williamsburg, VA USA
|
Sorry that this took so long. -99 means nothing... slot_origin is used to snap the item back to its original slot (that it was dragged from) when you try to drop it somewhere invalid, it is not updated during the dragging process, only when the item is successfully placed somewhere. -99 is just something that I put there to remind myself that its value is updated during game play; there will never be an item with an actual -99 value in it, look at the function that adds an item to the inventory, it updates slot_origin right away.
Making dreams come true... And being erroneously accused of software piracy by Conitec in the process.
|
|
|
Re: Wierd invalid pointer.
[Re: draculaFactory]
#341495
09/17/10 13:15
09/17/10 13:15
|
Joined: Mar 2009
Posts: 146 USA
paracharlie
Member
|
Member
Joined: Mar 2009
Posts: 146
USA
|
Thanks for your help Drac, I'm really having a easy time with this inventory.
A8 Commercial
|
|
|
|