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-06-2002, 10:49 PM
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
wraptext2

okay

here i go

im trying to get wordwrap working

NPC Code:

if (actionserverside) {
with (getplayer(screen_name)) {
wraptext2 screenwidth-95,.75,,#p(2);
for (this.i=0;this.i<tokenscount;this.i++) {
addstring client.tellthem,#t(this.i);
}
}
}




however, when i trigger the weapon, it just gives me previous tokens, from when i tokenized something else for the player



can someone please help me Xx
__________________
[signature]insert here[/signature]
Reply With Quote
  #2  
Old 08-07-2002, 12:15 AM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to adam
Re: wraptext2

Quote:
Originally posted by screen_name
okay

here i go

im trying to get wordwrap working

NPC Code:

if (actionserverside) {
with (getplayer(screen_name)) {
wraptext2 screenwidth-95,.75,,#p(2);
for (this.i=0;this.i<tokenscount;this.i++) {
addstring client.tellthem,#t(this.i);
}
}
}




however, when i trigger the weapon, it just gives me previous tokens, from when i tokenized something else for the player



can someone please help me Xx
I think we need more information. o.O

where did you tokenize anything to start with?
__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly
Reply With Quote
  #3  
Old 08-07-2002, 02:26 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
nm, i figured it out, with a little help of kaimetsu
__________________
[signature]insert here[/signature]
Reply With Quote
  #4  
Old 08-07-2002, 09:03 PM
amonrabr amonrabr is offline
Scripter
Join Date: Nov 2001
Location: Brazil
Posts: 374
amonrabr is on a distinguished road
Re: wraptext2

wraptext2 is to write something on a image or on screen parts.. example..

wraptext2 imgwidth(door.png),1,,@Message.;
for (i=0; i<tokenscount; i++) {
showimg 202+i,@Trebuchet MS@#t(i),(screenwidth/4)-16,(screenheight/2)+(i*18)-60;
changeimgzoom 202+i,1;
changeimgvis 202+i,5;
}

It will make the tokens with the image width(door.gif) of letters..

I dont know if it works this way,anyway try:
wraptext2 screenwidth-95,.75,,@#p(2);
Reply With Quote
  #5  
Old 08-07-2002, 09:25 PM
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 screen_name
nm, i figured it out, with a little help of kaimetsu

and FYI, that wasn't what was the problem
__________________
[signature]insert here[/signature]
Reply With Quote
  #6  
Old 08-08-2002, 11:32 AM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to adam
Re: Re: wraptext2

Quote:
Originally posted by amonrabr
wraptext2 is to write something on a image or on screen parts.. example..

wraptext2 imgwidth(door.png),1,,@Message.;
for (i=0; i<tokenscount; i++) {
showimg 202+i,@Trebuchet MS@#t(i),(screenwidth/4)-16,(screenheight/2)+(i*18)-60;
changeimgzoom 202+i,1;
changeimgvis 202+i,5;
}

It will make the tokens with the image width(door.gif) of letters..

I dont know if it works this way,anyway try:
wraptext2 screenwidth-95,.75,,@#p(2);
Thanx. Im glad to know this.
__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly
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 06:22 PM.


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