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 04-08-2003, 04:56 AM
DarkDragoon_Lloyd DarkDragoon_Lloyd is offline
Registered User
Join Date: Aug 2002
Posts: 157
DarkDragoon_Lloyd is on a distinguished road
Send a message via AIM to DarkDragoon_Lloyd
RETURN of the Useless Grid Thingy

OKOK, so I am still new to scripting, but I made a new useless grid thingy.
Please give me suggestions on how I can improve my scripting skills...

Things to try:
-Stand in the corners of the level.
-Walk from one corner to another.
-Walk along the sides.

I think the effect it produces is cool...
I cant fix how its kinda off a bit in some places(where the lines don't quite make it to the corners). Its because Graal reads the players x and y as the very top corner of the player...
Attached Files
File Type: nw lloydgeometricthingy.nw (11.5 KB, 186 views)
__________________
Quote:
Originally posted by protagonist
YES OF COURSE I AM SO MISTAKEN LOLOL I SUCK AT THE INTERNET!
Quote:
Originally posted by unixmad
Rome have not been build in 1 day !
Reply With Quote
  #2  
Old 04-08-2003, 05:06 AM
DarkDragoon_Lloyd DarkDragoon_Lloyd is offline
Registered User
Join Date: Aug 2002
Posts: 157
DarkDragoon_Lloyd is on a distinguished road
Send a message via AIM to DarkDragoon_Lloyd
o¯O
Dunt know LOOPS...
I go learn now...
__________________
Quote:
Originally posted by protagonist
YES OF COURSE I AM SO MISTAKEN LOLOL I SUCK AT THE INTERNET!
Quote:
Originally posted by unixmad
Rome have not been build in 1 day !
Reply With Quote
  #3  
Old 04-08-2003, 08:08 AM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
Looky, from 71 lines to 13. Loops and mathematics are amazing aren't they?
NPC Code:

//#CLIENTSIDE
if (created || timeout) {
timeout = .05;
for (a=0;a<22;a++) {
i = (a+int(a/21))*3;
showpoly a,{playerx,i,i,playery+3};
showpoly a+22,{i,playerx,playery+3,i};
changeimgcolors a,random(0,1),random(0,1),random(0,1),1;
changeimgcolors a+22,random(0,1),random(0,1),random(0,1),1;
changeimgvis a,0;
changeimgvis a+22,0;
}
}

__________________
[signature]insert here[/signature]
Reply With Quote
  #4  
Old 04-08-2003, 08:44 AM
Knuckles Knuckles is offline
Registered User
Join Date: Sep 2002
Location: New York
Posts: 580
Knuckles is on a distinguished road
Send a message via AIM to Knuckles
Quote:
Originally posted by screen_name
Looky, from 71 lines to 13. Loops and mathematics are amazing aren't they?
NPC Code:

//#CLIENTSIDE
if (created || timeout) {
timeout = .05;
for (a=0;a<22;a++) {
i = (a+int(a/21))*3;
showpoly a,{playerx,i,i,playery+3};
showpoly a+22,{i,playerx,playery+3,i};
changeimgcolors a,random(0,1),random(0,1),random(0,1),1;
changeimgcolors a+22,random(0,1),random(0,1),random(0,1),1;
changeimgvis a,0;
changeimgvis a+22,0;
}
}

Lmao... and the thing looks cool ;o
__________________
Knuckles
"They say 60% of the time, it works everytime!"
Reply With Quote
  #5  
Old 04-08-2003, 05:35 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
Southeast corner looks like something i did for math at school.
__________________

Quote:
Originally Posted by Lance
stefan is satan
I am the best.
[URL removed]Music or aural pollution?
Reply With Quote
  #6  
Old 04-08-2003, 09:34 PM
Knuckles Knuckles is offline
Registered User
Join Date: Sep 2002
Location: New York
Posts: 580
Knuckles is on a distinguished road
Send a message via AIM to Knuckles
....Uhh....? All I see is a grid, that moves with the player.
__________________
Knuckles
"They say 60% of the time, it works everytime!"
Reply With Quote
  #7  
Old 04-08-2003, 11:50 PM
DarkDragoon_Lloyd DarkDragoon_Lloyd is offline
Registered User
Join Date: Aug 2002
Posts: 157
DarkDragoon_Lloyd is on a distinguished road
Send a message via AIM to DarkDragoon_Lloyd
Yes, well... As you can see, I am not very good at scripting...

In fact, that is one of the main reasons why I posted this... I need to learn more and get better...
__________________
Quote:
Originally posted by protagonist
YES OF COURSE I AM SO MISTAKEN LOLOL I SUCK AT THE INTERNET!
Quote:
Originally posted by unixmad
Rome have not been build in 1 day !
Reply With Quote
  #8  
Old 04-09-2003, 08:47 PM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
Quote:
Originally posted by Kaimetsu


The best thing you could do is to examine screen_name's adaptation. Loops are indispensable for this kind of program.
I just looked over the script and I feel bashful... I made a mistake. The below includes the correction

NPC Code:

//#CLIENTSIDE
if (created || timeout) {
timeout = .05;
for (a=0;a<22;a++) {
i = (a*3)+int(a/21);
showpoly a,{playerx,i,i,playery+3};
showpoly a+22,{i,playerx,playery+3,i};
changeimgcolors a,random(0,1),random(0,1),random(0,1),1;
changeimgcolors a+22,random(0,1),random(0,1),random(0,1),1;
changeimgvis a,0;
changeimgvis a+22,0;
}
}

__________________
[signature]insert here[/signature]
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 07:43 PM.


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