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 07-17-2003, 09:06 PM
Chris1Polly Chris1Polly is offline
Registered User
Chris1Polly's Avatar
Join Date: Feb 2002
Location: A place without hate
Posts: 44
Chris1Polly is on a distinguished road
Send a message via AIM to Chris1Polly
Exclamation Weapon Select

Well Ill probably seem like an idiot for asking, but I will anyway.
Using this type of script/command
for (this.i=0;this.i<weaponscount;this.i++) {
}
how could I get it to show all weapons in your inventory at once, so far Ive only been able to make it show one at a time, via a circle type thing. Thanks in advanced.

-I dont think I broke any rules with this, but just in case sorry e.e-
__________________
Reply With Quote
  #2  
Old 07-17-2003, 09:25 PM
tlf288 tlf288 is offline
Registered User
tlf288's Avatar
Join Date: Nov 2001
Location: new account: Trevor
Posts: 0
tlf288 is on a distinguished road
Send a message via AIM to tlf288 Send a message via Yahoo to tlf288
Use of #W and #w will probabbly be needed. If you put a parrenthesis after message codes you can get the index of them.
__________________
new account: Trevor
Reply With Quote
  #3  
Old 07-17-2003, 09:43 PM
Dach Dach is offline
call me Chad, it's cooler
Dach's Avatar
Join Date: Aug 2002
Posts: 1,899
Dach is on a distinguished road
use different indecies for the showimgs maybe?
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote
  #4  
Old 07-18-2003, 08:09 AM
Chris1Polly Chris1Polly is offline
Registered User
Chris1Polly's Avatar
Join Date: Feb 2002
Location: A place without hate
Posts: 44
Chris1Polly is on a distinguished road
Send a message via AIM to Chris1Polly
Yea heh

Yea, thanks, but I figured apon I would need those already. But to be honest I wont even need what I originally thought. Ive got the script almost done now, its rather nice
__________________
Reply With Quote
  #5  
Old 07-18-2003, 03:10 PM
GoZelda GoZelda is offline
Mister 1,000,000
GoZelda's Avatar
Join Date: Jan 2003
Location: Brussels, capital of Europe.
Posts: 5,396
GoZelda will become famous soon enough
Send a message via AIM to GoZelda Send a message via MSN to GoZelda
Heh, i've always wondered how you could make a menu. Forgot about loops. Anyway, yes, a for loop is good. I suppose to do something like this, and suppose the very first weapons is the -system weapon. Let's say, the weapon limit is, um... 20.
for (i=1;i<=20;i++){
showimg i,this.x,this.y,#w(i);
}
ofcourse you'll need for loops for i.e. new x and y, and ofcourse changeimgvis.
__________________

Quote:
Originally Posted by Lance
stefan is satan
I am the best.
[URL removed]Music or aural pollution?
Reply With Quote
  #6  
Old 07-18-2003, 03:17 PM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Quote:
Originally posted by GoZelda
ofcourse you'll need for loops for i.e. new x and y, and ofcourse changeimgvis.
No you won't. You can do all that you need in a single loop.
__________________
Reply With Quote
  #7  
Old 07-18-2003, 03:30 PM
GoZelda GoZelda is offline
Mister 1,000,000
GoZelda's Avatar
Join Date: Jan 2003
Location: Brussels, capital of Europe.
Posts: 5,396
GoZelda will become famous soon enough
Send a message via AIM to GoZelda Send a message via MSN to GoZelda
Kaimestu note that you can use this loop to, i didn't said you couldn't use this loop, just that you need a loop for them. A lso with imgvis was meant to be that you needed to add it in, but i admit that was a little unclear of me =\
__________________

Quote:
Originally Posted by Lance
stefan is satan
I am the best.
[URL removed]Music or aural pollution?
Reply With Quote
  #8  
Old 07-18-2003, 04:33 PM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Seems strange that you used the plural form of 'loop', then.
__________________
Reply With Quote
  #9  
Old 07-18-2003, 04:54 PM
GoZelda GoZelda is offline
Mister 1,000,000
GoZelda's Avatar
Join Date: Jan 2003
Location: Brussels, capital of Europe.
Posts: 5,396
GoZelda will become famous soon enough
Send a message via AIM to GoZelda Send a message via MSN to GoZelda
Look. You need a loop for new x, for new y. But you can use it all in the same loop.
__________________

Quote:
Originally Posted by Lance
stefan is satan
I am the best.
[URL removed]Music or aural pollution?
Reply With Quote
  #10  
Old 07-19-2003, 02:28 AM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Quote:
Originally posted by GoZelda
Look. You need a loop for new x, for new y. But you can use it all in the same loop.
No, you look. I'm willing to accept that you didn't mean to imply multiple loops, but you did nonetheless. All fault here is entirely yours.
__________________
Reply With Quote
  #11  
Old 07-19-2003, 10:39 AM
GoZelda GoZelda is offline
Mister 1,000,000
GoZelda's Avatar
Join Date: Jan 2003
Location: Brussels, capital of Europe.
Posts: 5,396
GoZelda will become famous soon enough
Send a message via AIM to GoZelda Send a message via MSN to GoZelda
Depends from what view you're looking at it.
But i guess you're probably right.
__________________

Quote:
Originally Posted by Lance
stefan is satan
I am the best.
[URL removed]Music or aural pollution?
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:16 PM.


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