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 03-18-2003, 10:30 PM
Ethic_Sern Ethic_Sern is offline
Banned
Join Date: Aug 2002
Location: NewYork,NY
Posts: 97
Ethic_Sern is on a distinguished road
Send a message via AIM to Ethic_Sern
Finding Easier Ways

I wanted to know if i could use #inculde <string> in the header in graal scripting instead of respawing stings with like EX:thiso.string?
Reply With Quote
  #2  
Old 03-18-2003, 11:20 PM
tlf288 tlf288 is offline
Registered User
tlf288's Avatar
Join Date: Nov 2001
Location: new account: Trevor
Posts: 0
tlf288 is on a distinguished road
Send a message via AIM to tlf288 Send a message via Yahoo to tlf288
Re: Finding Easier Ways

Quote:
Originally posted by Ethic_Sern
I wanted to know if i could use #inculde <string> in the header in graal scripting instead of respawing stings with like EX:thiso.string?
No.
__________________
new account: Trevor
Reply With Quote
  #3  
Old 03-19-2003, 01:48 AM
Ethic_Sern Ethic_Sern is offline
Banned
Join Date: Aug 2002
Location: NewYork,NY
Posts: 97
Ethic_Sern is on a distinguished road
Send a message via AIM to Ethic_Sern
Re: Re: Finding Easier Ways

Quote:
Originally posted by tlf288


No.
Bahhh ya know i was hoping my C++ would pay off.... but my java does
Reply With Quote
  #4  
Old 03-19-2003, 01:58 AM
tlf288 tlf288 is offline
Registered User
tlf288's Avatar
Join Date: Nov 2001
Location: new account: Trevor
Posts: 0
tlf288 is on a distinguished road
Send a message via AIM to tlf288 Send a message via Yahoo to tlf288
Re: Re: Re: Finding Easier Ways

Quote:
Originally posted by Ethic_Sern

Bahhh ya know i was hoping my C++ would pay off.... but my java does
It is just as easy to use thiso. strings . And if your smart and setstrings right, you can copy all in one for statement.
__________________
new account: Trevor
Reply With Quote
  #5  
Old 03-19-2003, 04:16 AM
PastAustin PastAustin is offline
Registered User
Join Date: Mar 2003
Location: Littleton, Colorado, US
Posts: 91
PastAustin is on a distinguished road
Send a message via ICQ to PastAustin Send a message via AIM to PastAustin
Re: Re: Re: Re: Finding Easier Ways

Quote:
Originally posted by tlf288


It is just as easy to use thiso. strings . And if your smart and setstrings right, you can copy all in one for statement.
*loves seeing scripters who know their stuff*
__________________
"...I'm going to burn this place down..."
-Milton
Reply With Quote
  #6  
Old 03-19-2003, 05:28 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
you want to copy the strings from one npc to another?

something like
with(npcs[i]) copystrings this.,thiso.;
Reply With Quote
  #7  
Old 03-19-2003, 07:53 AM
PastAustin PastAustin is offline
Registered User
Join Date: Mar 2003
Location: Littleton, Colorado, US
Posts: 91
PastAustin is on a distinguished road
Send a message via ICQ to PastAustin Send a message via AIM to PastAustin
Quote:
Originally posted by Python523
you want to copy the strings from one npc to another?

something like
with(npcs[i]) copystrings this.,thiso.;
You are kidding me, that works?
__________________
"...I'm going to burn this place down..."
-Milton
Reply With Quote
  #8  
Old 03-19-2003, 08:21 AM
tlf288 tlf288 is offline
Registered User
tlf288's Avatar
Join Date: Nov 2001
Location: new account: Trevor
Posts: 0
tlf288 is on a distinguished road
Send a message via AIM to tlf288 Send a message via Yahoo to tlf288
Quote:
Originally posted by PastAustin


You are kidding me, that works?
Yeah, I forgot about that though x.x . I think Jagen is the one who got it implemeted becasue he wined to Stefan .
__________________
new account: Trevor
Reply With Quote
  #9  
Old 03-19-2003, 11:01 PM
PastAustin PastAustin is offline
Registered User
Join Date: Mar 2003
Location: Littleton, Colorado, US
Posts: 91
PastAustin is on a distinguished road
Send a message via ICQ to PastAustin Send a message via AIM to PastAustin
Quote:
Originally posted by tlf288


Yeah, I forgot about that though x.x . I think Jagen is the one who got it implemeted becasue he wined to Stefan .
wow that kicks. i love you jagie.
what about copyvars? i don't think it works with vars...
NPC Code:

this.test = 0;
with(getnpc(npcname))
this.test = thiso.test;
// Doesn't work, right?
// Don't you need:
this.test = 0;
setstring this.test, #v(this.test);
with(getnpc(npcname))
this.test = strtofloat(#s(thiso.test));

__________________
"...I'm going to burn this place down..."
-Milton
Reply With Quote
  #10  
Old 03-19-2003, 11:52 PM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
thiso vars don't exist

and stefan added it, i didnt even know it existed till I looked at the pet script
Reply With Quote
  #11  
Old 03-20-2003, 01:21 AM
Soul-Blade Soul-Blade is offline
US Marine
Soul-Blade's Avatar
Join Date: Jul 2001
Location: Coeur d'Alene, ID
Posts: 945
Soul-Blade is an unknown quantity at this point
Send a message via AIM to Soul-Blade
Wow...I really need to get with the program. So many new enhancements...
Reply With Quote
  #12  
Old 03-20-2003, 02:47 AM
Falados Falados is offline
Cucumber NPC
Falados's Avatar
Join Date: Jan 2003
Posts: 141
Falados is on a distinguished road
Send a message via ICQ to Falados Send a message via AIM to Falados
Quote:
Originally posted by Python523
thiso vars don't exist
Added Info: Use non-prefixed variables to transfer variable information from one NPC to the other using With()
var = this.var;
with(getnpc(NPC)) {
this.nicevariable = var;
}
__________________

subliminal message: 1+1=3
Reply With Quote
  #13  
Old 03-20-2003, 02:51 AM
Ethic_Sern Ethic_Sern is offline
Banned
Join Date: Aug 2002
Location: NewYork,NY
Posts: 97
Ethic_Sern is on a distinguished road
Send a message via AIM to Ethic_Sern
Re: Re: Re: Re: Finding Easier Ways

i KNOW how to use thiso.strings mad easy i just wanted to know if some of my C++ background would pay off to calling strings instead of thiso.strings =p. I am always tring to use my diffrent laugage knowledge to add to graal. I donno thats what i do when i am board. If ya know any ways to add stuff to header commands please post here =D that way i can play with it and so can others =p
Quote:
Originally posted by tlf288


It is just as easy to use thiso. strings . And if your smart and setstrings right, you can copy all in one for statement.
Reply With Quote
  #14  
Old 03-20-2003, 07:58 AM
HoudiniMan HoudiniMan is offline
Playerworld Administrator
HoudiniMan's Avatar
Join Date: Dec 2001
Location: Calfiornia - USA
Posts: 3,512
HoudiniMan will become famous soon enough
For me it was reverse, i knew HTML but thats just <on tag params="stuff">affected stuff<off tag>...

But after these years of doing Gscript it's a lot easier to understand things like java, c, php, etc

php is very very easy now
__________________
-HoudiniMan (Chief Playerworld Administrator)
Compulsive Support Center Checker - 5 Years and Change
Graal Support Center

Reply With Quote
  #15  
Old 03-20-2003, 10:23 AM
PastAustin PastAustin is offline
Registered User
Join Date: Mar 2003
Location: Littleton, Colorado, US
Posts: 91
PastAustin is on a distinguished road
Send a message via ICQ to PastAustin Send a message via AIM to PastAustin
Quote:
Originally posted by Python523
you want to copy the strings from one npc to another?

something like
with(npcs[i]) copystrings this.,thiso.;
That so didn't work man...it made me very sad. I'll try it one more time. Ok nevermind, its:
NPC Code:

with(npcs[i]) copystrings from, to;

__________________
"...I'm going to burn this place down..."
-Milton
Reply With Quote
  #16  
Old 03-20-2003, 11:26 AM
PastAustin PastAustin is offline
Registered User
Join Date: Mar 2003
Location: Littleton, Colorado, US
Posts: 91
PastAustin is on a distinguished road
Send a message via ICQ to PastAustin Send a message via AIM to PastAustin
Quote:
Originally posted by Kaimetsu
The parameters are not as simple as just 'from' and 'to'. They specify a source and a destination, true, but these are both prefixes. For example:

NPC Code:
copystrings this.game,client.game;



Would take all strings starting with 'this.game' and copy them with the new prefix 'client.game'. So this.game49 would be copied under the new name client.game49.
Now that I didn't know. sweet.
__________________
"...I'm going to burn this place down..."
-Milton
Reply With Quote
  #17  
Old 03-21-2003, 02:59 AM
Ethic_Sern Ethic_Sern is offline
Banned
Join Date: Aug 2002
Location: NewYork,NY
Posts: 97
Ethic_Sern is on a distinguished road
Send a message via AIM to Ethic_Sern
I like how my threads get popular and i dont even post on them much i must have good topics so vote for me then =p
Reply With Quote
  #18  
Old 03-21-2003, 08:31 AM
PastAustin PastAustin is offline
Registered User
Join Date: Mar 2003
Location: Littleton, Colorado, US
Posts: 91
PastAustin is on a distinguished road
Send a message via ICQ to PastAustin Send a message via AIM to PastAustin
Quote:
Originally posted by Ethic_Sern
I like how my threads get popular and i dont even post on them much i must have good topics so vote for me then =p
I don't like it when people request me to vote for them...:-/.
*yawn*
__________________
"...I'm going to burn this place down..."
-Milton
Reply With Quote
  #19  
Old 03-21-2003, 11:27 AM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
Quote:
Originally posted by Ethic_Sern
I like how my threads get popular and i dont even post on them much i must have good topics so vote for me then =p
Just because your thread actually has popularity, even though it had nothing to do with what you said, you believe that you deserve votes? **** you man.
__________________
[signature]insert here[/signature]
Reply With Quote
  #20  
Old 03-21-2003, 05:22 PM
azuretek23 azuretek23 is offline
Registered User
azuretek23's Avatar
Join Date: May 2002
Location: Phoenix, AZ
Posts: 516
azuretek23 is on a distinguished road
Send a message via ICQ to azuretek23 Send a message via AIM to azuretek23
Quote:
Originally posted by screen_name


Just because your thread actually has popularity, even though it had nothing to do with what you said, you believe that you deserve votes? **** you man.
hahaaha, thats kind of mean...
__________________
:: Give a man a fish, you feed him for a day. Teach a man to fish, and you lose your monopoly on fisheries ::
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 12:09 AM.


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