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 01-03-2004, 07:33 AM
CaTigus CaTigus is offline
Scripter
Join Date: Oct 2002
Posts: 80
CaTigus is on a distinguished road
Showpoly

hey, I need help with this showpoly script I'm making. I'm atempting to make it show five showpoly's at the same time with one command. I've done it before with showimg, though, for some reason its not showing the five polygons. Perhaps you can't put an index on a width and height var? I figured on the GUI I'm making, using polygons for text fields would be easier, if I used one command instead of making twently different showpoly commands with a new index for each. Seeing, all I need to do with this is use tokens and a few other things. Any ideas?

NPC Code:
setarray this.textboxx,5;
setarray this.textboxy,5;
setstring this.65box,85,114,130,140,150;

for (p = 0; p < 5; p ++) {
tokenize #s(this.65box);
this.textboxx[p] = 65;
this.textboxy[p] = strtofloat(#t(p));
showpoly p,{
this.textboxx[p], this.textboxy[p],
this.textboxx[p] + 70, this.textboxy[p],
this.textboxx[p] + 70, this.textboxy[p] + 21,
this.textboxx[p], this.textboxy[p] + 21
};
}
changeimgvis p,5;


Last edited by Loriel; 01-05-2004 at 05:17 PM..
Reply With Quote
  #2  
Old 01-03-2004, 07:45 AM
Thak2 Thak2 is offline
:]
Join Date: Mar 2001
Location: BC
Posts: 1,344
Thak2 is on a distinguished road
Send a message via AIM to Thak2
Re: Showpoly

Uh, not sure. But maybe moving that changeimgvis inside the for-loop will fix it?

Last edited by Loriel; 01-05-2004 at 03:15 PM..
Reply With Quote
  #3  
Old 01-03-2004, 07:51 AM
Mykel Mykel is offline
:o
Mykel's Avatar
Join Date: May 2002
Location: Canton, Ohio.
Posts: 5,526
Mykel has a spectacular aura about
Send a message via AIM to Mykel Send a message via MSN to Mykel
Re: Re: Showpoly

Quote:
Originally posted by Thak2
Uh, not sure. But maybe moving that changeimgvis into the for function will fix it?
Giltwist is helping me with scripting. We were talking about this on AIM. It seems that is part of it. Also, [from Giltwist] tokenize breaks up over spaces not over commas, if he wants to define 65box that way he should be using string array stuff not tokenize stuff.
__________________
(Married to Skyld)
Reply With Quote
  #4  
Old 01-03-2004, 08:33 AM
Lance Lance is offline
dark overlord
Lance's Avatar
Join Date: Sep 2003
Location: Space Jam Mountain
Posts: 5,072
Lance is on a distinguished road
Giltwist-through-Mykel is correct, though as the old saying goes, there's more than one way to do it.
Reply With Quote
  #5  
Old 01-03-2004, 05:55 PM
Hevaricubed Hevaricubed is offline
Registered User
Join Date: Aug 2003
Posts: 262
Hevaricubed is on a distinguished road
Send a message via AIM to Hevaricubed Send a message via Yahoo to Hevaricubed
old saying == more than one way to skin a cat
__________________
Reply With Quote
  #6  
Old 01-03-2004, 08:43 PM
Lance Lance is offline
dark overlord
Lance's Avatar
Join Date: Sep 2003
Location: Space Jam Mountain
Posts: 5,072
Lance is on a distinguished road
Quote:
Originally posted by Hevaricubed
old saying == more than one way to skin a cat
Tim-Toady.

TMTOWTDI.

Quote:
Originally posted by marcoR
Is Lance smoking pot, or is that a really long abbreviation?
There's
More
Than
One
Way
To
Do
It
.

Last edited by Loriel; 01-05-2004 at 03:12 PM..
Reply With Quote
  #7  
Old 01-04-2004, 10:57 PM
osrs osrs is offline
Graalian since 1998
osrs's Avatar
Join Date: Mar 2002
Location: Brazil
Posts: 2,724
osrs is on a distinguished road
Send a message via ICQ to osrs Send a message via AIM to osrs Send a message via MSN to osrs Send a message via Yahoo to osrs
WASA, Lance. :grin:

[SIZE=0.5]*what a stupid abbreviation, Lance.[/SIZE]
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /
Reply With Quote
  #8  
Old 01-05-2004, 04:07 AM
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
abbr's are stupid, IMO
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote
  #9  
Old 01-05-2004, 04:44 AM
Mykel Mykel is offline
:o
Mykel's Avatar
Join Date: May 2002
Location: Canton, Ohio.
Posts: 5,526
Mykel has a spectacular aura about
Send a message via AIM to Mykel Send a message via MSN to Mykel
brb.
afk.
__________________
(Married to Skyld)
Reply With Quote
  #10  
Old 01-05-2004, 06:14 AM
CaTigus CaTigus is offline
Scripter
Join Date: Oct 2002
Posts: 80
CaTigus is on a distinguished road
Wow thanks guys you really helped ¬_¬
Reply With Quote
  #11  
Old 01-05-2004, 03:11 PM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
Indeed... stop the offtopic posting! *deletes some*
Reply With Quote
  #12  
Old 01-05-2004, 03:45 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
Perhaps, just perhaps, it's because of the fact that that poly stuff isn't on the same line.

Doubtful though.
__________________

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 09:20 AM.


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