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 05-03-2008, 09:52 AM
Rave_J Rave_J is offline
Graal Developer
Join Date: Feb 2006
Location: Texas
Posts: 848
Rave_J can only hope to improve
Send a message via AIM to Rave_J Send a message via MSN to Rave_J Send a message via Yahoo to Rave_J
Q Menu script problem

ok people the image looks like this


what I'm trying to do is
display an add text in the boxes
so does anybody know how to do that an if so
can yall give me a exampe thank you
ur friend
Rave Platinum (Manager of Bionic/Cynical)
Reply With Quote
  #2  
Old 05-03-2008, 01:20 PM
Robin Robin is offline
The secret of NIMH
Robin's Avatar
Join Date: Apr 2005
Location: Wales, UK
Posts: 515
Robin will become famous soon enough
Send a message via AIM to Robin
PHP Code:
//#CLIENTSIDE
function onWeaponfired() {
  
this.position.screenwidth/2-411/2;
  
this.position.screenheight/2-280/2;
  
  
this.inventory.this.position.76;
  
this.inventory.this.position.52;
  
this.inventory.weaponwidth 32;
  
this.inventory.weaponheight 32;
  
this.inventory.marginx 13;
  
this.inventory.marginy 12;
  
  
this.visible = !this.visible;
  if (
this.visible == true) {
    
with (findimg(300)) {
      
image "cyn_inventory_gui.gif";
      
thiso.position.x;  // thiso because we're in a with()
      
thiso.position.y;  // center to screen
      
layer 5// show on screen as a gui
    
}
    
this.0;
    for(
this.weaponryplayer.weapons) {
      if (
this.weaponry.name.starts("-")) //hide hidden weapons
        
continue;
        
      
with(findimg(301+this.i)) {
        
image thiso.weaponry.image;
        
thiso.inventory.x+((thiso.i%4)*(thiso.inventory.weaponwidth+thiso.inventory.marginx));
        
thiso.inventory.y+(int(thiso.i/4)*(thiso.inventory.weaponheight+thiso.inventory.marginy));
        
layer 6;
        
showtext(501+thiso.i,x+16,y+48,"Arial","bc",thiso.weaponry.name);
        
changeimgvis(501+thiso.i,6);
        
changeimgzoom(501+thiso.i,1/24*6); // default height = 24px, == 6px
      
}
      
this.i++;
    }
  } else {
    
hideimgs(300,350);
    
hideimgs(500,550);
  }

Of course, this doesn't allow for pagination or selecting weapons, but it's quick and dirty to show you the basics :P

And I will help, I'm just busy!
__________________

Reply With Quote
  #3  
Old 05-03-2008, 03:18 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Quote:
Originally Posted by Robin View Post
PHP Code:
... 
Of course, this doesn't allow for pagination or selecting weapons, but it's quick and dirty to show you the basics :P

And I will help, I'm just busy!
But that doesn't do/show what he asked for though ;o
__________________
Reply With Quote
  #4  
Old 05-03-2008, 03:36 PM
Robin Robin is offline
The secret of NIMH
Robin's Avatar
Join Date: Apr 2005
Location: Wales, UK
Posts: 515
Robin will become famous soon enough
Send a message via AIM to Robin
Lions

Quote:
Originally Posted by Rave_J View Post
what I'm trying to do is
display an add text in the boxes
Tigers
Quote:
Originally Posted by Robin View Post
PHP Code:
        showtext(501+thiso.i,x+16,y+48,"Arial","bc",thiso.weaponry.name); 
Bears
Quote:
Originally Posted by Chompy View Post
But that doesn't do/show what he asked for though ;o
Oh my?
__________________

Reply With Quote
  #5  
Old 05-03-2008, 03:43 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Quote:
Originally Posted by Robin View Post
Lions



Tigers


Bears


Oh my?
In my defense to this, he didn't say which boxes he wanted them in. And yours would show 'Weapons/Wooden Sword', "Stafftool/Mouse Dragger" etc. So with that image I don't think it would be likely good visual to display long names under the item slots or near the item slots, since they would interfere with eachother when names reach longer then a said number.

In your script it would be better to display text on mouse hovering.

Also, could the thread starter be more specific?
__________________
Reply With Quote
  #6  
Old 05-03-2008, 03:49 PM
Robin Robin is offline
The secret of NIMH
Robin's Avatar
Join Date: Apr 2005
Location: Wales, UK
Posts: 515
Robin will become famous soon enough
Send a message via AIM to Robin
I know exactly what he wanted I was just too busy last night to give it to him so he posted here it seems.

You're right but then I even noted in my script that it was no where near complete and lacked basic features such as pagination, etc.

Read oh god read why do people on these forums never read x-x
__________________

Reply With Quote
  #7  
Old 05-03-2008, 04:03 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Quote:
Originally Posted by Robin View Post
I knw exactly what he wanted I was just too busy last night to give it to him so he posted here it seems.

You're right but then I even noted in my script that it was no where near complete and lacked basic features such as pagination, etc.

Read oh god read why do people on these forums never read x-x
Well, how could I know that you had been speaking to him earlier and knew what he was referring to?

And I know that your script isn't suppose to be a full script, since that is against the forum rules, I know it is an example showing how to do it, I just pointed out what would interfere with each other (the names of the weapons).

I really don't know why you say I never read
__________________
Reply With Quote
  #8  
Old 05-03-2008, 04:08 PM
Robin Robin is offline
The secret of NIMH
Robin's Avatar
Join Date: Apr 2005
Location: Wales, UK
Posts: 515
Robin will become famous soon enough
Send a message via AIM to Robin
Quote:
Originally Posted by Robin View Post
quick
Quote:
Originally Posted by Robin View Post
dirty
Quote:
Originally Posted by Robin View Post
to show you the basics
Because you don't read Chompy x-x and It's not just you, it's everyone. Yes including me.
__________________

Reply With Quote
  #9  
Old 05-03-2008, 04:11 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Quote:
Originally Posted by Robin View Post
Because you don't read Chompy x-x and It's not just you, it's everyone. Yes including me.
I'm starting to think it's a bad habit on the internet, but oh well, I see what you mean :P
__________________
Reply With Quote
  #10  
Old 05-03-2008, 04:42 PM
Rave_J Rave_J is offline
Graal Developer
Join Date: Feb 2006
Location: Texas
Posts: 848
Rave_J can only hope to improve
Send a message via AIM to Rave_J Send a message via MSN to Rave_J Send a message via Yahoo to Rave_J
Robin i need u know those empty boxes on the left side
im going to write text in them but how u do it on the commmand
like up top but Cynical an then blah blah
Reply With Quote
  #11  
Old 05-03-2008, 04:53 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Rave_J View Post
Robin i need u know those empty boxes on the left side
im going to write text in them but how u do it on the commmand
like up top but Cynical an then blah blah
Do you mean have 'tabs' on the left that when you click sort your weapons?

For example, Weapons tab for weapons, Items for items, etc?

Also, Robin, try to stop spamming. Your post count has no bearing on your life.
__________________
Reply With Quote
  #12  
Old 05-03-2008, 06:01 PM
xXziroXx xXziroXx is offline
Master of Puppets
xXziroXx's Avatar
Join Date: May 2004
Location: Sweden
Posts: 5,288
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Send a message via AIM to xXziroXx Send a message via MSN to xXziroXx
Quote:
Originally Posted by cbkbud View Post
Also, Robin, try to stop spamming. Your post count has no bearing on your life.
I'm actually somewhat offended by YOU telling someone to stop spamming.
__________________

"A delayed game is eventually good, but a rushed game is forever bad." - Shigeru Miyamoto
Reply With Quote
  #13  
Old 05-03-2008, 06:34 PM
Robin Robin is offline
The secret of NIMH
Robin's Avatar
Join Date: Apr 2005
Location: Wales, UK
Posts: 515
Robin will become famous soon enough
Send a message via AIM to Robin
Quote:
Originally Posted by xXziroXx View Post
I'm actually somewhat offended by YOU telling someone to stop spamming.
He's referencing a post that I made earlier, and being somewhat of a [[really mean boy]] about it.

It's alright though one day he'll realize his wrong doings and go repent, or something.

EDIT: Wow that swear filter doesn't cover up some words XD
__________________

Reply With Quote
  #14  
Old 05-03-2008, 07:39 PM
Rave_J Rave_J is offline
Graal Developer
Join Date: Feb 2006
Location: Texas
Posts: 848
Rave_J can only hope to improve
Send a message via AIM to Rave_J Send a message via MSN to Rave_J Send a message via Yahoo to Rave_J
kk just text like up the top
an the weapons an ect
have tabs for them
Reply With Quote
  #15  
Old 05-03-2008, 08:44 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by xXziroXx View Post
I'm actually somewhat offended by YOU telling someone to stop spamming.
It was a joke ...
__________________
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 05:26 AM.


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