ZableBlaze Posted February 20, 2009 Share Posted February 20, 2009 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 More sharing options...
Cipscis Posted February 22, 2009 Share Posted February 22, 2009 FOSE's Label and Goto functions can be used for looping in a script. Cipscis Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.