Skip to main content
gamedev.net
🔒 Locked

Changing variable/object properties.

Started by Big Boy Rees Dec 15, 2002 at 3:35 AM 0 replies 150+ views
Original Post
Big Boy Rees
Big Boy Rees
I''ll try not to ramble on as usual: Can I or can I not change the properties a variable/object has. (Im using Visual Basic) What I have is an array of objects called WorldItem. A property off world item is called ItemProps (I just made it a varient) I want to be able to make worlditem(x).itemprops have the properties off other types. One off these types: Type ItemStatRaiser StatsIDRaised(0) As Integer (going to redim ^^, depends on number of bonuses) RaiseAmount(0) As Integer Uses As Integer DecayRate As End Type So I want to make worlditem(x).itemprops have worlditem(x).itemprops.statsIDRaised(Z Amount) worlditem(x).itemprops.RaiseAmount(Z Amount) worlditem(x).itemprops.Uses worlditem(x).itemprops.DecayRate Is it possible to change the worlditem(x).itemprops properties?
yes, yes I am stupid.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.