So I have A TON of variables defined under mob/human/player. I want to add some intelligent npcs. The problem is strength and defense are defined under mob/human/player but I need to define these under npcs as well. I only need about four variables which are defined under mob/human/player for npcs to work. Any advice on how I can define only whats needed under npcs.
|
Dec 17 2016, 2:29 pm
Best response
|
|
If it's something that's shared across multiple children you'd want to define it in a common parent.
|
In response to Nadrew
|
|
But currently there are hundreds of things defined under mob that I don't need for npcs.
|
Put player at the top of the definition with proper indentation. You can indent hundreds of lines at once by selecting them with click+drag and hitting tab.
|
Then don't make those things shared, just because they share a common parent doesn't mean they have to share all of their variables.
mob/human In this example only things under /mob/human/player will have the this_belongs_to_only_players variable, and conversely, only things under /mob/human/npc will have the this_belongs_to_only_npcs. |
In response to Nadrew
|
|
So basically for the hundred or so variables defined under mob I have to go back and define them under something else. That's a lot of variables :/
|
In response to Nadrew
|
|
they're spread all over. some of em. tons of procs depend on those variables being defined under mob also.
|