Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 04-29-2002, 05:21 AM
Draktha Draktha is offline
Registered User
Join Date: Nov 2001
Location: home in front of my computer lol
Posts: 51
Draktha is on a distinguished road
Send a message via AIM to Draktha Send a message via Yahoo to Draktha
Unhappy help...

How would i go about displaying a sting using say2? (i.e. making an npc say 'you have 1 out of 4 pieces of heart')
__________________
I think this pretty much sums me up...
Reply With Quote
  #2  
Old 04-29-2002, 05:28 AM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
Re: help...

Quote:
Originally posted by Draktha
How would i go about displaying a sting using say2? (i.e. making an npc say 'you have 1 out of 4 pieces of heart')
NPC Code:

if (created) setstring this.sign,Sign Text#bwoooooo;
if (playertouchsme) say2 #s(this.sign);

__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #3  
Old 04-29-2002, 05:45 AM
Draktha Draktha is offline
Registered User
Join Date: Nov 2001
Location: home in front of my computer lol
Posts: 51
Draktha is on a distinguished road
Send a message via AIM to Draktha Send a message via Yahoo to Draktha
Re: Re: help...

Quote:
Originally posted by Saga2001


NPC Code:

if (created) setstring this.sign,Sign Text#bwoooooo;
if (playertouchsme) say2 #s(this.sign);

Many thanking yous!
__________________
I think this pretty much sums me up...
Reply With Quote
  #4  
Old 04-29-2002, 06:56 AM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
Re: Re: Re: help...

Quote:
Originally posted by Draktha


Many thanking yous!
Keine Problem
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #5  
Old 04-29-2002, 08:02 PM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
Why not on a non-p2p? It looks fine, just a simple say2 and set string... ?
---Shifter
__________________
Quote:
*Stefan: it seems sometimes they hire newbie scripters everywhere x-x
*Stefan: scripters are sometimes like people that draw paintings
*Stefan: all that counts is that it looks nice
Reply With Quote
  #6  
Old 04-29-2002, 10:54 PM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
OMG! You have to be joking me? You mean to say that on Non-Upgraded servers #b will not parse like it does on upgraded? That is some bs...Sorry, but I can understand light effects, etc, but it is stuff like that I cannot understand, thats is a very small thing to not allow Non-Upgraded servers to have.

Oh...I mean because there is no such thing as a this. string, duh, I don't know what that was all about.

THIS POST HAS NOT BEEN EDITED!!!
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it

Last edited by Saga2001; 04-30-2002 at 10:23 AM..
Reply With Quote
  #7  
Old 04-30-2002, 03:18 AM
SaijinGohan SaijinGohan is offline
Registered User
SaijinGohan's Avatar
Join Date: Jul 2001
Location: U.S.A - Ohio
Posts: 536
SaijinGohan is on a distinguished road
Send a message via AIM to SaijinGohan Send a message via MSN to SaijinGohan
Quote:
Originally posted by Saga2001
OMG! You have to be joking me? You mean to say that on Non-Upgraded servers #b will not parse like it does on upgraded? That is some bs...Sorry, but I can understand light effects, etc, but it is stuff like that I cannot understand, thats is a very small thing to not allow Non-Upgraded servers to have.
stefan must of lost it
Reply With Quote
  #8  
Old 04-30-2002, 10:22 AM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
oh...
*feels dumb*
*walks off a cliff*
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #9  
Old 04-30-2002, 04:22 PM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
Re: Re: Re: Re: help...

Quote:
Originally posted by Saga2001


Keine Problem
remove the e at the end of 'keine'
at the moment the first word is plural and the second one singular so it would be wrong
__________________
No Webhost at the moment
Reply With Quote
  #10  
Old 04-30-2002, 08:04 PM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
Will the string now work after the upgrades? I just upgraded my account (projectshifter) b/c i needed to. This one isn't mine, it is a friend's who was letting me use it. I just registered w/ the forums, so i'll be Projectshifter now, instead of emortylone, heh. So give it a week and i'll be up and posting. You'll notice the sig and the closing (---Shifter) will be the same, lol
---Shifter
__________________
Quote:
*Stefan: it seems sometimes they hire newbie scripters everywhere x-x
*Stefan: scripters are sometimes like people that draw paintings
*Stefan: all that counts is that it looks nice
Reply With Quote
  #11  
Old 04-30-2002, 08:20 PM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
O_o, heh. I have never used the NPC Server, exactly what good is it and what does it do? I wonder if ALL servers will have axx to one after tomorrow? I finally upgraded my account! :P
---Shifter
__________________
Quote:
*Stefan: it seems sometimes they hire newbie scripters everywhere x-x
*Stefan: scripters are sometimes like people that draw paintings
*Stefan: all that counts is that it looks nice
Reply With Quote
  #12  
Old 04-30-2002, 08:31 PM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
Wait, so they WILL be available to ALL servers now? I need to figure out the stuff for it. Sansnat5
---Shifter
__________________
Quote:
*Stefan: it seems sometimes they hire newbie scripters everywhere x-x
*Stefan: scripters are sometimes like people that draw paintings
*Stefan: all that counts is that it looks nice
Reply With Quote
  #13  
Old 04-30-2002, 10:34 PM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
Quote:
Originally posted by emortylone
O_o, heh. I have never used the NPC Server, exactly what good is it and what does it do? I wonder if ALL servers will have axx to one after tomorrow? I finally upgraded my account! :P
---Shifter
Well the question is not what is good about it, its more what is bad, sure some npcs can take a little more time to figure out when you first get started, but if you get a really good scripter (Er1c in my case) to help you out with the basics you will like it a lot more. The reason that not all servers will have NPC-Server tomorrow is because the fact if they did, then they would have to add //#CLIENTSIDE to a lot of npcs, and also turn things like graalet manipulation serverside (a lot of work). So maybe over time some non-upgraded servers will turn into upgraded. Who knows. I'd go with NPC-Server though.
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #14  
Old 05-01-2002, 08:01 PM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
I'm a NAT on Sans, so i want to understand this so we can start using more complex stuff. So WHAT needs to be added in all of our NPC'S? //#CLIENTSIDE ? is that it? Just @ the top of them all? And how would we obtain the NPC Server, or is one of the options that higher level RC's can use? If we now have access to all of this stuff, i think it would be good to take advantage of it
---Shifter
__________________
Quote:
*Stefan: it seems sometimes they hire newbie scripters everywhere x-x
*Stefan: scripters are sometimes like people that draw paintings
*Stefan: all that counts is that it looks nice
Reply With Quote
  #15  
Old 05-01-2002, 09:09 PM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
o_O! Like can you give me a quick example of how things are to be changed?
---Shifter
__________________
Quote:
*Stefan: it seems sometimes they hire newbie scripters everywhere x-x
*Stefan: scripters are sometimes like people that draw paintings
*Stefan: all that counts is that it looks nice
Reply With Quote
  #16  
Old 05-01-2002, 10:56 PM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
Quote:
Originally posted by emortylone
o_O! Like can you give me a quick example of how things are to be changed?
---Shifter
Lets say you have an npc like this:
NPC Code:

if (playertouchsme) say2 say "stuff" to buy me!;
if (playerchats && strequals(#c,Stuff)) {playerrupees-=100;toweapons stuff;}


It would have to change to this:
NPC Code:

if (actionserverside) {
playerrupees-=100;
addweapon stuff;
}
//#CLIENTSIDE
if (playertouchsme) say2 say "stuff" to buy me!;
if (playerchats && strequals(#c,Stuff)) triggeraction 0,0,serverside,;


Is probably more what you would be doing. Also something that displays server. striungs will have to be changed like this:
used to be:
NPC Code:

if (playerchats) {
tokenize #c;
if (strequals(What is "#t(2)")) setplayerprop #c,#s(server.#t(2));
}


will have to be:
NPC Code:

if (actionserverside) {
setplayerprop #c,#s(server.#p(0));
}
//#CLIENTSIDE
if (playerchats) {
tokenize #c;
if (strequals(What is "#t(2)")) triggeraction 0,0,serverside,#t(2);
}



this is not precise, because I think if you wish to triggeraction on a database npc or otherwise it has to be assigned a name. But its a lot like what you would have to do. Also the stuff weapon would need to be added into the weapons database, although I believe toweapons still works if you have it in the weapons database, it is a lot easier to make changes on it. However there are a lot of benefits you also get, for example:
NPC Code:

if (actionservergetfromothernpc) {
with(getnpc(databasenpcname)) {
thiso.vars = this.var;
setstring thiso.stuff,#s(this.stuff);
}
setplayerprop #c,#v(this.vars) - #s(this.stuff);
}
//CLIENTSIDE
if (weaponfired) triggeraction 0,0,servergetfromothernpc;


This will go to the specified database npc, look for the this.var variable and this.stuff string and set them on this npcw and set the player's prop, so you can have many npcs on the server all addstring or deletestring or lindex of on one string a lot like server strings, however one of my favorite part is that only people with NC (hopefully only the admins) will be able to edit it so that you don't get gps who (for some reason) have access to server vars deleting your flags, etc. (very nice).
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #17  
Old 05-02-2002, 09:12 AM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
Quote:
Originally posted by Kaimetsu
Um... Actually PastAustin, a couple of those aren't exactly right. For a start, serverside scripts can take playerchats events just fine, and there's no way to directly and exclusively trigger a non-weapon.
Yes, I know, they were just examples...
However I think the point was probably processed...
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #18  
Old 05-04-2002, 08:45 AM
BBflat BBflat is offline
Registered User
BBflat's Avatar
Join Date: Apr 2002
Location: United States of America
Posts: 573
BBflat is on a distinguished road
Re: Re: Re: Re: Re: help...

Quote:
Originally posted by TDO2000

remove the e at the end of 'keine'
at the moment the first word is plural and the second one singular so it would be wrong
I don't want to argue with someone who speaks fluent German, but it was possible Saga2001 thought Problem was feminine. That would explain it, oder?
__________________
I am a .sig virus. Please put me in your .sig so I can continue to replicate.

Last edited by BBflat; 05-04-2002 at 09:12 PM..
Reply With Quote
  #19  
Old 05-04-2002, 09:12 PM
BBflat BBflat is offline
Registered User
BBflat's Avatar
Join Date: Apr 2002
Location: United States of America
Posts: 573
BBflat is on a distinguished road
Re: Re: Re: Re: Re: Re: Re: help...

Quote:
Originally posted by Kaimetsu


Wait, when was I involved in this?
Lol, sorry Kamietsu. My mistake. *Changes to correct name* Es tut mir leid.
__________________
I am a .sig virus. Please put me in your .sig so I can continue to replicate.
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 11:16 PM.


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