Jump to content

Add group of NPCs to a list?


DarkSpyda04

Recommended Posts

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.
end

And just in case you say "factions", how would I do this with clothing items? See? Not so easy now.

Edited by DarkSpyda04
Link to comment
Share on other sites

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...