N
Necromedes
Guest
I'm trying to set up a text system for my game which allows the player to be within range of an instance, click on them and then the text box pops up.
I have that working but I need some advice/info on the parent/child subject.
I understand that a child object inherits all data from the parent object events unless another event of the same type exists in the child.
That being said, I need to be able to initialize certain variables in the create event to make this text system work properly (i,e include an array containing lines of dialogue, etc... for different npc's.)
So here in lies my question: If I make npc_bob be a child of npc_template and I have a create event in npc_template containing all of the system mechanics to make it work, am I able to include the create event text array in npc_bob without overwriting everything in npc_templates create event that would be inherited by npc_bob?
Thanks in advance.
I have that working but I need some advice/info on the parent/child subject.
I understand that a child object inherits all data from the parent object events unless another event of the same type exists in the child.
That being said, I need to be able to initialize certain variables in the create event to make this text system work properly (i,e include an array containing lines of dialogue, etc... for different npc's.)
So here in lies my question: If I make npc_bob be a child of npc_template and I have a create event in npc_template containing all of the system mechanics to make it work, am I able to include the create event text array in npc_bob without overwriting everything in npc_templates create event that would be inherited by npc_bob?
Thanks in advance.