Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-19-2003, 05:07 PM
Mike2001mike2001 Mike2001mike2001 is offline
Registered User
Join Date: May 2002
Location: The Netherlands
Posts: 25
Mike2001mike2001 is on a distinguished road
Send a message via ICQ to Mike2001mike2001 Send a message via AIM to Mike2001mike2001
Question...

Hey all scripters out there :P

Im having some trouble!

Heres the help i need:

im trying to call up several strings, then make them check an string in the stringlist.

Like:

this.string1,1;
this.string2,1;
this.string3,2;

So it would only take the first 2 strings since they have the same #p(1) o_O any possibility in this? Plz help!

Thx...
__________________
Ikr

AOL:IcekillerRamenko
MSN:[email protected]
E-Mail:[email protected]
Reply With Quote
  #2  
Old 09-19-2003, 06:23 PM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
...absolutely no idea what you're asking.
__________________
Reply With Quote
  #3  
Old 09-19-2003, 06:55 PM
osrs osrs is offline
Graalian since 1998
osrs's Avatar
Join Date: Mar 2002
Location: Brazil
Posts: 2,724
osrs is on a distinguished road
Send a message via ICQ to osrs Send a message via AIM to osrs Send a message via MSN to osrs Send a message via Yahoo to osrs
Declaring string:

setstring varname,value;

I don't know what you are asking,but since it's checking the strings,wouldn't lindexof help?
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /
Reply With Quote
  #4  
Old 09-19-2003, 08:52 PM
Dach Dach is offline
call me Chad, it's cooler
Dach's Avatar
Join Date: Aug 2002
Posts: 1,899
Dach is on a distinguished road
Whatever it is you need, you'll probably find it in here somwheres
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote
  #5  
Old 09-19-2003, 09:14 PM
Mike2001mike2001 Mike2001mike2001 is offline
Registered User
Join Date: May 2002
Location: The Netherlands
Posts: 25
Mike2001mike2001 is on a distinguished road
Send a message via ICQ to Mike2001mike2001 Send a message via AIM to Mike2001mike2001
Ok ill explane it:

Im creating an guild/nick storing system (whole kingdom system basically)

Im creating strings for each player storing all info :

this.Mike2001mike2001,Ikr,kingdom,rank, etc.

i want to make something check ALL strings for the same kingdom, then set another string so the members are up to date... how do i do this?
__________________
Ikr

AOL:IcekillerRamenko
MSN:[email protected]
E-Mail:[email protected]
Reply With Quote
  #6  
Old 09-19-2003, 09:30 PM
GoZelda GoZelda is offline
Mister 1,000,000
GoZelda's Avatar
Join Date: Jan 2003
Location: Brussels, capital of Europe.
Posts: 5,396
GoZelda will become famous soon enough
Send a message via AIM to GoZelda Send a message via MSN to GoZelda
Quote:
Originally posted by Mike2001mike2001
Ok ill explane it:

Im creating an guild/nick storing system (whole kingdom system basically)

Im creating strings for each player storing all info :

this.Mike2001mike2001,Ikr,kingdom,rank, etc.

i want to make something check ALL strings for the same kingdom, then set another string so the members are up to date... how do i do this?
uhm, maybe like this:

NPC Code:

addstring this.kingdom_accts,GoZelda;
addstring this.kingdom_ranks,Leader;
addstring this.kingdom_names,Cyrin da man;


Then you'd make "databases" like this for each kingdom.

Mh, i don't know much about arrays, but if there would be multidimensional arrays, it might be a possibility too.
__________________

Quote:
Originally Posted by Lance
stefan is satan
I am the best.
[URL removed]Music or aural pollution?
Reply With Quote
  #7  
Old 09-19-2003, 10:29 PM
Knuckles Knuckles is offline
Registered User
Join Date: Sep 2002
Location: New York
Posts: 580
Knuckles is on a distinguished road
Send a message via AIM to Knuckles
use a string array, and look into #I.
__________________
Knuckles
"They say 60% of the time, it works everytime!"
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 06:27 AM.


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