Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > New Scripting Engine (GS2)
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-11-2006, 01:40 AM
talkingnoodle talkingnoodle is offline
Rapidwolve
talkingnoodle's Avatar
Join Date: Nov 2005
Location: Leominster, MA
Posts: 229
talkingnoodle is on a distinguished road
Send a message via AIM to talkingnoodle Send a message via MSN to talkingnoodle
GUI Script: Playerlist

Can anybody help me make a GUI playerlist script? That shows all the players in a list and you can select them and so on. I've used GUI Scripts alot but I haven't tried anything like this. An example on how to do it will help too
__________________


AIM: Rapidwolve Graal
MSN: [email protected]


2/12/06 - Crossroads NPC Admin
Reply With Quote
  #2  
Old 02-11-2006, 02:06 AM
Rick Rick is offline
PipBoy Extraordinaire!
Rick's Avatar
Join Date: Jul 2004
Location: Long Beach, California.
Posts: 831
Rick is on a distinguished road
Are you looking to replace the existing playerlist or are you doing something else...?
Reply With Quote
  #3  
Old 02-11-2006, 06:52 AM
talkingnoodle talkingnoodle is offline
Rapidwolve
talkingnoodle's Avatar
Join Date: Nov 2005
Location: Leominster, MA
Posts: 229
talkingnoodle is on a distinguished road
Send a message via AIM to talkingnoodle Send a message via MSN to talkingnoodle
something else...
Reply With Quote
  #4  
Old 02-11-2006, 10:20 AM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
well, i guess that first you would want to use the allplayers array, perhaps? There's also an array var of objects of selected players on the default player list, if you want to use that (I just added it to my camera script).
Reply With Quote
  #5  
Old 02-11-2006, 05:47 PM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
Quote:
Originally Posted by jake13jake
well, i guess that first you would want to use the allplayers array, perhaps? There's also an array var of objects of selected players on the default player list, if you want to use that (I just added it to my camera script).
I don't know why he'd want to use the default Selected Players array if he's creating his own playerlist.

But yes, using allplayers to populate a GuiTextListCtrl or similiar would probably be the method of choice for making a playerlist.
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
  #6  
Old 02-11-2006, 06:05 PM
talkingnoodle talkingnoodle is offline
Rapidwolve
talkingnoodle's Avatar
Join Date: Nov 2005
Location: Leominster, MA
Posts: 229
talkingnoodle is on a distinguished road
Send a message via AIM to talkingnoodle Send a message via MSN to talkingnoodle
Quote:
Originally Posted by ApothiX
I don't know why he'd want to use the default Selected Players array if he's creating his own playerlist.

But yes, using allplayers to populate a GuiTextListCtrl or similiar would probably be the method of choice for making a playerlist.
How would I use addrow() for that
Reply With Quote
  #7  
Old 02-11-2006, 07:48 PM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
Quote:
Originally Posted by talkingnoodle
How would I use addrow() for that
well, if he's thinking of doing something else, then it might make sense that you use the selectedlistplayers array instead of rescripting the entire playerlist. I honestly don't know how to script using the GUI controls.
Reply With Quote
  #8  
Old 02-12-2006, 11:32 AM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
Quote:
Originally Posted by jake13jake
well, if he's thinking of doing something else, then it might make sense that you use the selectedlistplayers array instead of rescripting the entire playerlist.
Quote:
Originally Posted by talkingnoodle
Can anybody help me make a GUI playerlist script?
It's what he wants to do.


Quote:
Originally Posted by jake13jake
I honestly don't know how to script using the GUI controls.
Then why are you posting here?
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
  #9  
Old 02-12-2006, 08:16 PM
talkingnoodle talkingnoodle is offline
Rapidwolve
talkingnoodle's Avatar
Join Date: Nov 2005
Location: Leominster, MA
Posts: 229
talkingnoodle is on a distinguished road
Send a message via AIM to talkingnoodle Send a message via MSN to talkingnoodle
Ok back on topic, would something like this work?

PHP Code:
for (aallplayers){
addrow(aplayer.account);

__________________


AIM: Rapidwolve Graal
MSN: [email protected]


2/12/06 - Crossroads NPC Admin
Reply With Quote
  #10  
Old 02-12-2006, 11:36 PM
Rick Rick is offline
PipBoy Extraordinaire!
Rick's Avatar
Join Date: Jul 2004
Location: Long Beach, California.
Posts: 831
Rick is on a distinguished road
No... you'd want something more like:

PHP Code:
for (aallplayers)
{
  
addrow(0a.account);

Reply With Quote
  #11  
Old 02-15-2006, 11:45 PM
Maniaman Maniaman is offline
Registered User
Join Date: Aug 2005
Posts: 326
Maniaman is on a distinguished road
On the topic of Playerlists, is there any way to disable the default playerlist?
__________________

Current Maloria Event: (click to go to it)
Reply With Quote
  #12  
Old 02-16-2006, 05:08 AM
Ajira Ajira is offline
Poont.
Join Date: Oct 2004
Location: NY, USA
Posts: 477
Ajira is on a distinguished road
Quote:
Originally Posted by Rick
No... you'd want something more like:

PHP Code:
for (aallplayers)
{
  
addrow(0a.account);

And you'd probably want to do something like
PHP Code:
0;
for (
aallplayers)
{
  
addrow(ia.account);
  
i++;

__________________
Liek omigosh.

Reply With Quote
  #13  
Old 02-16-2006, 05:40 AM
talkingnoodle talkingnoodle is offline
Rapidwolve
talkingnoodle's Avatar
Join Date: Nov 2005
Location: Leominster, MA
Posts: 229
talkingnoodle is on a distinguished road
Send a message via AIM to talkingnoodle Send a message via MSN to talkingnoodle
PHP Code:
for (aallplayers){
addrow(0,a);

works fine
__________________


AIM: Rapidwolve Graal
MSN: [email protected]


2/12/06 - Crossroads NPC Admin
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 07:54 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.