Jump to content

Multiple Refs defined in one variable?


ZableBlaze

Recommended Posts

set counted to listgetcount aaaList
	set npcs to listgetnthform aaaList 0
	npcs.setplayerteammate 1

 

This code only gets the first NPC added to the list, and turns them into a teammate. I'm not sure of any looping commands in script, or if you can make multiple NPCs of different form change at the same time.

 

I've tried things like...

 

set counted to listgetcount aaaList
	set npcs to listgetnthform aaaList 0 >= counted
	npcs.setplayerteammate 1

(and the opposite way around <=)

 

If only it was as simple as..

set counted to listgetcount aaaList
	set npcs to listgetnthform aaaList 0 to counted
	npcs.setplayerteammate 1

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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