DarkSpyda04 Posted June 27, 2014 Share Posted June 27, 2014 (edited) How do I add a number of NPCs to a list that can be called in a script? For example, something like int myNPCGroup aaNPC01, aaNPC02, aaNPC03 begin gameMode if a member of myNPCGroup leaves the house, shock them with a lightning bolt and hit them with a hockey stick. endAnd just in case you say "factions", how would I do this with clothing items? See? Not so easy now. Edited June 27, 2014 by DarkSpyda04 Link to comment Share on other sites More sharing options...
Maskar Posted June 27, 2014 Share Posted June 27, 2014 Maybe you could be a little more specific in what you're trying to accomplish. Especially concerning the clothing items. Link to comment Share on other sites More sharing options...
DarkSpyda04 Posted June 27, 2014 Author Share Posted June 27, 2014 I don't get what I have to be specific about. I simply want the script to refer to a collection of things rather than each entity individually, as to make scripting easier. For instance, if I wanted to turn the player into a sweetroll and I had imported three different sweetrolls into the CS. One is vanilla, one is chocolate, and one is a combination of the two... with jimmies! I have three different sweetrolls. Now, say I have a spell that turns the player into a vanilla or chocolate or vanilla + chocolate sweetroll and it chooses whether the player turns into a vanilla sweetroll, a chocolate sweetroll, or a vanilla + chocolate sweetroll by random, so that the player can be turned into a vanilla or chocolate or vanilla + chocolate sweetroll using a spell that turns the player into a vanilla, chocolate, or vanilla + chocolate sweetroll. Now what if I just instead said there are thee types of sweetrolls and the player turns into one sweetroll out of this group of three? That's what I'm looking for - an easier way to refer to all three sweetrolls using one single term. Link to comment Share on other sites More sharing options...
Maskar Posted June 28, 2014 Share Posted June 28, 2014 Oblivion has different methods of creating collections of objects. You could use arrays, factions, leveled lists, etc. Without being specific it's hard to make suggestions. Link to comment Share on other sites More sharing options...
Recommended Posts