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 12-14-2001, 02:21 AM
Brad_Elven Brad_Elven is offline
Registered User
Join Date: Jul 2001
Posts: 0
Brad_Elven is on a distinguished road
Send a message via AIM to Brad_Elven
writing

How do u use writing using showimg to appear where u want? Like for a taylor or a menu or something?

Like Shadow Knight showed me a taylor he made and it used a menu that consisted of text and the select cursor was >
Reply With Quote
  #2  
Old 12-14-2001, 02:39 AM
konidias konidias is offline
Old Bee
konidias's Avatar
Join Date: Jul 2001
Location: Orlando, FL
Posts: 7,222
konidias will become famous soon enough
Send a message via AIM to konidias
NPC Code:

showimg 202,@Courier New@cb@Text Here,playerx,playery-5;
changeimgvis 202,4;
changeimgzoom 202,1.5;
changeimgcolors 202,0,0,0,1;



just put in the font name where font is.. and you can use any style in the second part "cb" means center and bold, there is also
u - underlined
i - italic

then the text, and then the x and y of the text
__________________

Put this image in your sig if you support Bomy Island! (g2k1 revision)
play bomberman while you wait!


Reply With Quote
  #3  
Old 12-14-2001, 02:52 AM
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
TAILOR, not TAYLOR. TAYLOR is a name of somebody. A TAILOR is a person who mends clothes.
__________________
-Boco

FLKJH$TRFG*$(&%>FMG >REN<>F ;.kjsd
Reply With Quote
  #4  
Old 12-14-2001, 03:48 AM
Brad_Elven Brad_Elven is offline
Registered User
Join Date: Jul 2001
Posts: 0
Brad_Elven is on a distinguished road
Send a message via AIM to Brad_Elven
Quote:
Originally posted by konidias
NPC Code:

showimg 202,@Courier New@cb@Text Here,playerx,playery-5;
changeimgvis 202,4;
changeimgzoom 202,1.5;
changeimgcolors 202,0,0,0,1;



just put in the font name where font is.. and you can use any style in the second part "cb" means center and bold, there is also
u - underlined
i - italic

then the text, and then the x and y of the text
Thanks

How would you make it like a menu or something? where if something is selected?
Reply With Quote
  #5  
Old 12-14-2001, 04:45 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Quote:
Originally posted by BocoC
TAILOR, not TAYLOR. TAYLOR is a name of somebody. A TAILOR is a person who mends clothes.
Almost every server has that problem with tailor
Reply With Quote
  #6  
Old 12-14-2001, 05:57 AM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
something like this:
NPC Code:

if(playertouchsme && save[0]==0){
save[0]=1;
this.pos=1;
timeout=.05;
}

if(timeout){
disabledefmovement;
drawmenue();
drawcursor();
movement();
if(save[0]==1){timeout=.1;}
}

function drawmenue() {
this.maxposes=3; //how many selections
//showing the text
showimg 1,@Text1,x,y-((this.maxposes-1)*3);
showimg 2,@Text2,x,y-((this.maxposes-2)*3);
showimg 3,@Text3,x,y-((this.maxposes-3)*3);
}

function drawcursor() {
//showing it
showimg this.maxposes+1,@-->,x-2,y-((this.maxposes-this.pos)*3);
}

function movement() {
if(keydown(0) && this.pos > 1){this.pos--;}
if(keydown(2) && this.pos < this.maxposes){this.pos++;}
//deactivate
if(keydown(6)){
save[0]=0;
delimg();
}
//Getting position
if(keydown(4)){
save[0]=0;
enabledefmovement;
doevent();
delimg();
}
}

//for hiding all the images
function delimg() {
//hide imges
for(this.i=0;this.i < this.maxposes+1;this.i++){
hideimg this.i;
}
}

function doevent() {
if(this.pos==1){code;}
if(this.pos==2){code;}
if(this.pos==3){code;}
}



haven't tested it and it's too long I think but ok for an example...
__________________
No Webhost at the moment
Reply With Quote
  #7  
Old 12-14-2001, 06:10 AM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
If you want easy use chat commands
Reply With Quote
  #8  
Old 12-14-2001, 06:17 AM
Faheria_GP2 Faheria_GP2 is offline
Banned
Faheria_GP2's Avatar
Join Date: Oct 2001
Posts: 1,177
Faheria_GP2 is on a distinguished road
yes, NAT-Chief of TDK spells it Taylor!

Reply With Quote
  #9  
Old 12-14-2001, 11:01 AM
aesquivel aesquivel is offline
Registered User
Join Date: Sep 2001
Location: Whitewright
Posts: 346
aesquivel is on a distinguished road
Send a message via AIM to aesquivel
i thought it could be spelt either way
__________________
Reply With Quote
  #10  
Old 12-14-2001, 01:54 PM
T-Squad T-Squad is offline
Banned
T-Squad's Avatar
Join Date: Mar 2001
Location: United States of America
Posts: 1,733
T-Squad is on a distinguished road
Ack...Why didn't you IM me about this? I could haved whipped up a script which would be less then 10 lines long and perfectly efficient =/ You probably already have something though.
Reply With Quote
  #11  
Old 12-14-2001, 08:21 PM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
#C5 is the players outline if you did not know
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 10:03 PM.


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