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 09-03-2002, 03:23 AM
prozac424242 prozac424242 is offline
Registered User
prozac424242's Avatar
Join Date: May 2001
Location: Gone crazy: back soon
Posts: 356
prozac424242 is on a distinguished road
Send a message via ICQ to prozac424242 Send a message via AIM to prozac424242
string array help ...

I am trying to make a little select script, nothign fancy,
using string arrays, Im using hat images here
as my first attempt.

What am I missing that no images show up?
I saved the filenames of the images into
a string array,
it must be something where i am
accessing them wrong?

Or am I totally off the wall in my algorithm?
Maybe the solution is staring me in the face?

Any help would be great, this is driving me buggy...
Attached Files
File Type: nw prozac_hats.nw (10.3 KB, 193 views)
__________________

Useful links:
Graal Stats
Client Script Functions-GS1 to GS2
Serverside Script Functions-Gscript page
Particle Engine-Player Attributes
Server Options-Admin rights-Gmaps
Quote:
Originally Posted by Admins
Thanks for developing and improving playerworlds and such
Reply With Quote
  #2  
Old 09-03-2002, 03:31 AM
prozac424242 prozac424242 is offline
Registered User
prozac424242's Avatar
Join Date: May 2001
Location: Gone crazy: back soon
Posts: 356
prozac424242 is on a distinguished road
Send a message via ICQ to prozac424242 Send a message via AIM to prozac424242
dude

did you even look at the script?

Accessing the sting array just as you said
is in there, but it does not work!!!

How do I access the string array value
in the script that i posted above
for use in a showimg command?
__________________

Useful links:
Graal Stats
Client Script Functions-GS1 to GS2
Serverside Script Functions-Gscript page
Particle Engine-Player Attributes
Server Options-Admin rights-Gmaps
Quote:
Originally Posted by Admins
Thanks for developing and improving playerworlds and such
Reply With Quote
  #3  
Old 09-03-2002, 04:04 AM
prozac424242 prozac424242 is offline
Registered User
prozac424242's Avatar
Join Date: May 2001
Location: Gone crazy: back soon
Posts: 356
prozac424242 is on a distinguished road
Send a message via ICQ to prozac424242 Send a message via AIM to prozac424242
aarrrgghhhh

I have tried about ten ways from sunday
to make it display the value of the string array
unsuccesfully!

Someone please post a WORKING script
that
creates a string array
accesses the values in the string array in a loop
showimg each value

Kai, i tried what you said, it did not work
in the playerprop #c command
nor the showimg command

just something that works!
One Little itty bit of code like this please!
__________________

Useful links:
Graal Stats
Client Script Functions-GS1 to GS2
Serverside Script Functions-Gscript page
Particle Engine-Player Attributes
Server Options-Admin rights-Gmaps
Quote:
Originally Posted by Admins
Thanks for developing and improving playerworlds and such
Reply With Quote
  #4  
Old 09-03-2002, 04:35 AM
prozac424242 prozac424242 is offline
Registered User
prozac424242's Avatar
Join Date: May 2001
Location: Gone crazy: back soon
Posts: 356
prozac424242 is on a distinguished road
Send a message via ICQ to prozac424242 Send a message via AIM to prozac424242
oh

What letter you type there?

*cleans smudges off screen*

wait is that an ....

*cleans smidges off glasses*

oops - its an I (eye) not an l (el)

... thanks

*hides away with working script*
__________________

Useful links:
Graal Stats
Client Script Functions-GS1 to GS2
Serverside Script Functions-Gscript page
Particle Engine-Player Attributes
Server Options-Admin rights-Gmaps
Quote:
Originally Posted by Admins
Thanks for developing and improving playerworlds and such
Reply With Quote
  #5  
Old 09-03-2002, 05:43 AM
prozac424242 prozac424242 is offline
Registered User
prozac424242's Avatar
Join Date: May 2001
Location: Gone crazy: back soon
Posts: 356
prozac424242 is on a distinguished road
Send a message via ICQ to prozac424242 Send a message via AIM to prozac424242
ok

thanks for the help


my indentation = clicking the "style" button most of the time

also i remember you said you were 19?
in a previous post?
I been programming since before you were born
and i know you dont care but im saying it anyways.
After so many languages and lines of code
see if your train of thought dosent get derailed now and then...

sleep was used because the image changes would have
happened too fast otherwise, i tried it without the sleep command and its better with sleep in this case.
__________________

Useful links:
Graal Stats
Client Script Functions-GS1 to GS2
Serverside Script Functions-Gscript page
Particle Engine-Player Attributes
Server Options-Admin rights-Gmaps
Quote:
Originally Posted by Admins
Thanks for developing and improving playerworlds and such
Reply With Quote
  #6  
Old 09-03-2002, 05:53 AM
MalakSylv MalakSylv is offline
Registered User
Join Date: Jun 2002
Location: England
Posts: 426
MalakSylv is on a distinguished road
Send a message via AIM to MalakSylv
Re: ok

Quote:
Originally posted by prozac424242
thanks for the help


my indentation = clicking the "style" button most of the time

also i remember you said you were 19?
in a previous post?
I been programming since before you were born
and i know you dont care but im saying it anyways.
After so many languages and lines of code
see if your train of thought dosent get derailed now and then...

sleep was used because the image changes would have
happened too fast otherwise, i tried it without the sleep command and its better with sleep in this case.
a 1 second timeout is ust as long as a 1 second sleep.
__________________

alias: malak
aim: andyfearsemotion
e-mail: [email protected]

site to be updated next month. expect a big surprise.
Reply With Quote
  #7  
Old 09-03-2002, 05:53 AM
Falcor Falcor is offline
Darth Cucumber
Falcor's Avatar
Join Date: Mar 2001
Location: At School
Posts: 2,874
Falcor is on a distinguished road
Send a message via ICQ to Falcor Send a message via AIM to Falcor Send a message via MSN to Falcor Send a message via Yahoo to Falcor
Re: ok

Quote:
Originally posted by prozac424242

also i remember you said you were 19?
in a previous post?
I been programming since before you were born
Yet you ask for help from someone you seem to value so lowly? I find this hypocritical almost.

(hypocritical probably isn't the best word to use)
__________________

subliminal message: 1+1=3

Last edited by Falcor; 09-03-2002 at 06:27 AM..
Reply With Quote
  #8  
Old 09-03-2002, 06:33 AM
prozac424242 prozac424242 is offline
Registered User
prozac424242's Avatar
Join Date: May 2001
Location: Gone crazy: back soon
Posts: 356
prozac424242 is on a distinguished road
Send a message via ICQ to prozac424242 Send a message via AIM to prozac424242
but

did i ever once say ""Kai, help me?" The question was open to ANY AND EVERY scripter who knew the answer.

and about increasng the timeouts,
i added a sleep instead to intentionally complicate the script.
I meant to do that and I knew the alternative.

Its a habit from writing open source code that people pay me for
(yes, i actually get paid to program, not gscript of course).

There are simple ways I could do things, like document
and make algorithmic flows consistent.
But then anyone can look at the code, follow it,
and change to upgrade without me.

Part of preserving my space at the place i work is this
intentional complicaiton of things;
I know how it works even though its more work
for me to remember, others won't know what to do
without time and effort - so they are likely to keep me around
and i still get paid.

Actually not a bad job preservation habit to build.
__________________

Useful links:
Graal Stats
Client Script Functions-GS1 to GS2
Serverside Script Functions-Gscript page
Particle Engine-Player Attributes
Server Options-Admin rights-Gmaps
Quote:
Originally Posted by Admins
Thanks for developing and improving playerworlds and such
Reply With Quote
  #9  
Old 09-03-2002, 04:55 PM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
Prozac, it doesn't matter how much you whine and complain, Kai will not give in.
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 03:42 PM.


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