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 08-12-2001, 10:49 AM
Guest
Posts: n/a
Question help me out please...

how can i make this code show more words when you speak..?
and how do you get it excactly nice above your head like when you speak normal in graal without this code?
please help me out,
thanks.


NPC Code:
// NPC made by Yakuzo
if (playerchats) {
tokenize #c;
timeout=0.05;
showimg 0,@Dancin LET@bi@#t(),playerx,playery-1;
setplayerprop #c,;
}
if (timeout) {
showimg 0,@Dancin LET@bi@#t(),playerx,playery-1;
timeout=0.05;
}

Reply With Quote
  #2  
Old 08-12-2001, 10:54 AM
LiquidIce00 LiquidIce00 is offline
RadioActive Monkeeh
LiquidIce00's Avatar
Join Date: Apr 2001
Location: dirty south
Posts: 2,112
LiquidIce00 is on a distinguished road
Send a message via ICQ to LiquidIce00 Send a message via AIM to LiquidIce00 Send a message via Yahoo to LiquidIce00
plz dont hurt urself
use
setcharprop #c,Dancing!;
u dont really wanna use showimg with text stuff unless its for a npc or something.
__________________
LiquidIce *Owner* (UnholyNation)
-UN Website
http://www.unholynation.com
-UN Forum
http://forums.unholynation.com
-
-the thinker
-

-
onwall2 for nonp2p (i suck at onwall)
Reply With Quote
  #3  
Old 08-12-2001, 11:03 AM
Guest
Posts: n/a
Quote:
Originally posted by LiquidIce00
plz dont hurt urself
use
setcharprop #c,Dancing!;
u dont really wanna use showimg with text stuff unless its for a npc or something.
Yes i do want to use showimg and stuff, cause I want to replace the text with a nicer font...
if you don't want to help or something then rather don't say anything at all...(counts for all of you who's out there and wants to go spam or critize a thread)
Reply With Quote
  #4  
Old 08-12-2001, 12:51 PM
LiquidIce00 LiquidIce00 is offline
RadioActive Monkeeh
LiquidIce00's Avatar
Join Date: Apr 2001
Location: dirty south
Posts: 2,112
LiquidIce00 is on a distinguished road
Send a message via ICQ to LiquidIce00 Send a message via AIM to LiquidIce00 Send a message via Yahoo to LiquidIce00
then u could of said that o.o
well my best tip is dont use showimg like i said but if u do want it ..
then u gotta make a little math thingy..
it still wont be as the real chat of the player but like you are doing it wont be hard to be nice. just take away some x's and it should center it out ..
__________________
LiquidIce *Owner* (UnholyNation)
-UN Website
http://www.unholynation.com
-UN Forum
http://forums.unholynation.com
-
-the thinker
-

-
onwall2 for nonp2p (i suck at onwall)
Reply With Quote
  #5  
Old 08-12-2001, 01:14 PM
Brady2 Brady2 is offline
Registered User
Brady2's Avatar
Join Date: Mar 2001
Location: Phoenix, AZ and Wichita Falls, TX
Posts: 924
Brady2 is on a distinguished road
Jadis:
NPC Code:

if (playerchats) {
setstring chatdude,#c;
setplayerprop #c,;
showimg 0,@Dancin LET@c@#s(chatdude),playerx+1.5-strlen(#s(chatdude))/2,playery-3;
timeout = .05;
this.1 = 0;
}
if (timeout) {
if (this.1<60) {
showimg 0,@Dancin LET@c@#s(chatdude),playerx+1.5-strlen(#s(chatdude))/2,playery-3;
timeout = .05;
this.1++;
} else hideimg 0;
}



Had a lot of bugs

Last edited by Brady2; 08-12-2001 at 01:21 PM..
Reply With Quote
  #6  
Old 08-12-2001, 01:15 PM
BocoC BocoC is offline
Registered User
BocoC's Avatar
Join Date: Jun 2001
Location: Washington State, USA
Posts: 980
BocoC is on a distinguished road
Send a message via AIM to BocoC Send a message via Yahoo to BocoC
NPC Code:

if (playerchats) {
setstring this.chat,#c;
showimg 0,@Dancin LET@bic@#s(this.chat),playerx+1.5,playery-1;
setplayerprop #c,;
this.counter=0;
timeout=0.05;
}
if (timeout) {
if (this.counter>3) {
hideimg 0;
timeout=0;
} else {
this.counter+=0.05;
showimg 0,@Dancin LET@bic@#s(this.chat),playerx+1.5,playery-1;
timeout=0.05;
}
}


There. That works perfectly.
__________________
-Boco

FLKJH$TRFG*$(&%>FMG >REN<>F ;.kjsd
Reply With Quote
  #7  
Old 08-12-2001, 01:25 PM
Guest
Posts: n/a
makes sense...
the only tihng is i never use else
so thats probably the reason why i didn't come up with that...
now I think of it its stupid of me of using tokenize instead of variables....oh well, guess we're all human and humans makes mistakes
Reply With Quote
  #8  
Old 08-23-2001, 02:02 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
*looks with great awe and wonder of the scripts which he cannot understand*
__________________

Job: A Legend

And you think that you have played Graal forever? Ha!
Reply With Quote
  #9  
Old 08-23-2001, 02:04 AM
IceHawk IceHawk is offline
Jenseits von Gut und Böse
IceHawk's Avatar
Join Date: Mar 2001
Location: Vancouver BC, Canada
Posts: 4,704
IceHawk will become famous soon enough
Send a message via AIM to IceHawk
Quote:
Originally posted by SaijinGohan
*looks with great awe and wonder of the scripts which he cannot understand*
*looks with great disgust at your account name*
__________________
Reply With Quote
  #10  
Old 08-23-2001, 08:33 AM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
bocos works

boco's works
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 03:03 PM.


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