![]() |
Jagen.
He wasn't asking for an NPC... he was asking if anybody had a predefined "watershore" thing like the path generator. I don't think he can find konidias's and neither can I.
|
Re: Jagen.
Quote:
|
Re: Re: Jagen.
Quote:
|
err, the path makers are scripts =/
|
Quote:
They're not "graal scripts." |
open the text file up, it's a script
|
if (playerenters) {
this.lastpx = -1000; } if (playerenters || timeout) { if (mousebuttons%2>=1) { if (this.lastpx>-1000) { dx = (mousex-this.lastpx); dy = (mousey-this.lastpy); dist = (abs(dx)>abs(dy)? abs(dx) : abs(dy)); for (di=0; di<dist; di++) { px = this.lastpx + (dx*di/dist); py = this.lastpy + (dy*di/dist); laypath(); } } px = mousex; py = mousey; laypath(); this.lastpx = px; this.lastpy = py; } else this.lastpx = -1000; timeout = 0.05; } function laypath() { sandtiles = {0xaa,0xab,0x12d,0x8,0xf}; grasstiles = {0x0,0x1,0x10,0x1ff,0x3ff,0x7ff,0x835,0x836,0x837} ; sandspot = { 0x176,0x166,0x177, 0x1a7, 0xaa,0x197, 0x188,0x178,0x169 }; grassspot = { 0x168,0x178,0x189, 0x197,0x7ff,0x1a7, 0x187,0x166,0x186 }; sandcornernwse = 0xfe9; sandcornernesw = 0xff9; allcornertiles = {0x176,0x166,0x167,0x177,0x1a7,0xaa,0x197,0x188,0x 178,0x179,0x169, 0x168,0x189,0x187,0x186,0xfe9,0xff9}; // Check if can lay a sand path here if (tiles[px,py] in sandtiles) return; for (tx=px-1; tx<=px+1; tx++) for (ty=py-1; ty<=py+1; ty++) { if (tiles[tx,ty] in sandtiles) continue; checkgrassorborder(); if (isok==false) return; } // Put sand on the mouse position tiles[px,py] = sandtiles[int(random(0,5))]; // Calculate the tiles around the mouse position for (tx=px-1; tx<=px+1; tx++) for (ty=py-1; ty<=py+1; ty++) { if ((tx==px && ty==py) || tiles[tx,ty] in sandtiles) continue; // Check which tiles around this tile are sand tiles sandn = (tiles[tx ,ty-1] in sandtiles); sandnw = (tiles[tx-1,ty-1] in sandtiles); sandw = (tiles[tx-1,ty ] in sandtiles); sandsw = (tiles[tx-1,ty+1] in sandtiles); sands = (tiles[tx ,ty+1] in sandtiles); sandse = (tiles[tx+1,ty+1] in sandtiles); sande = (tiles[tx+1,ty ] in sandtiles); sandne = (tiles[tx+1,ty-1] in sandtiles); if (sandnw+sandne==2) sandn = true; if (sandnw+sandsw==2) sandw = true; if (sandsw+sandse==2) sands = true; if (sandse+sandne==2) sande = true; // Get the right sand corner tile depending on // in which directions sand was found if (sandn+sands==2 || sandw+sande==2 || sandn+sandw+sandse==3 || sandw+sands+sandne==3 || sands+sande+sandnw==3 || sande+sandn+sandsw==3) newtile = sandtiles[0]; else if (sandn+sandw+sands+sande==2) { if (sandn+sandw==2) newtile = grassspot[0+0*3]; else if (sandw+sands==2) newtile = grassspot[0+2*3]; else if (sands+sande==2) newtile = grassspot[2+2*3]; else newtile = grassspot[2+0*3]; } else if (sandn+sandw+sands+sande==1) { if (sandn+sandse==2 || sande+sandnw==2) newtile = grassspot[2+0*3]; else if (sandn+sandsw==2 || sandw+sandne==2) newtile = grassspot[0+0*3]; else if (sands+sandnw==2 || sandw+sandse==2) newtile = grassspot[0+2*3]; else if (sands+sandne==2 || sande+sandsw==2) newtile = grassspot[2+2*3]; else if (sandn==1) newtile = grassspot[1+0*3] + (tx%2); // 2 tiles for north else if (sandw==1) newtile = grassspot[0+1*3]; else if (sands==1) newtile = grassspot[1+2*3] + (tx%2); // 2 tiles for south else newtile = grassspot[2+1*3]; } else if (sandnw+sandne+sandsw+sandse==2) { if (sandnw+sandse==2) newtile = sandcornernwse; else if (sandne+sandsw==2) newtile = sandcornernesw; } else if (sandnw+sandne+sandsw+sandse==1) { if (sandnw==1) newtile = sandspot[2+2*3]; else if (sandsw==1) newtile = sandspot[2+0*3]; else if (sandse==1) newtile = sandspot[0+0*3]; else newtile = sandspot[0+2*3]; } // Write the tile tiles[tx,ty] = newtile; } // Redraw the level on the mouse position updateboard px-1,py-1,3,3; } function checkgrassorborder() { isok = ((tiles[tx,ty] in grasstiles) || (tiles[tx,ty] in allcornertiles)); } |
har did i miss something?
|
There is a fine line between asking for someone to give you a script, and asking for a script that is retally available. If I asked for the graal2002 sand path Edit NPC would you close my thread?
|
Quote:
|
Grrrrrr....
Personally I don't consider that script stealing and neither did Kai, so it shouldn't have heppened. *wonders why he wasn't chosen to mod the forums because he pwns* |
Quote:
|
this is in kaimetsu's rules and guidelines:
Don't post here just asking for scripts. The posters here aren't some universal resource for scripting shortcuts. If you can't script something then don't try to produce it. If you're trying to make it to aid your learning then set your sights lower. If you want it for a server then go get a NAT. I considered that asking for a script and so did rabid |
Quote:
|
then maybe you didnt know alkaren
|
i think "jagen" and rabid are stupid!
|
Quote:
Rabid is the best man... Dont tell me otherwise because I know you are lieing;) |
1 Attachment(s)
I work on 2001, I don't know alkie, well I know him, but he hates me for no aparent reason.
Jagen and Rabid do not script badly, however I believe I have much more experience and practical knowledge on scripting, along with more posts here and more resolved issues from my posts, rather than question, no hard meant to either of them, I just pride myself at being one of the best scripters on Graal, and 90% of the Graalian population knows I am a good scripter, and no one seems to ever take note unless I beat them with salmon like I did to Kamuii. Pretty good? I wonder if I posted something pwnage if they would mod me. Here we go. I don't really care if anyone uses any of this on their server, its a showoff, and since I posted it here everyone who knows anything about scripting will know its mine, since Bird, Kamuii, Koni, and about 100000 other people have seen it, go for it, your bad mistake. Did I mention that I was the one who scripted the 2001 q menu system that you have seen information about in the main forum? Yeah. So here we go...:rolleyes: |
Quote:
*cries* *screams* WHY@#$@ WHY!@$#@! Why did you have to quit TCN!@#@!$# But whatever. :-/ I should have known you'd be one of the few to actually do what you intended and become one of the best scripters around. Aw well. You have a lot of free time don't you? Man.. I wish I had free time. |
Rabid is cool ;)
I don't know Jagen all that well. |
i think they both need to be removed from modship, banned, and stripped of internet access!
mods should be Falcor and Saga2001 |
Quote:
|
Dustey:
Quote:
Quote:
|
Quote:
|
Quote:
|
It's a script for level making. You will never see the script on a level. It just makes tiling go alot faster. I mean if it was something that would show up in the game then I would say no. But its basically an add on to level editing. To speed up work. No one is ripping off a script. They're just grateful some one made a tool that adds onto level editor. That speeds up there own work.
|
Quote:
Quote:
|
Quote:
yah,... thats pretty bad...:( |
lies
|
truths
|
Quote:
Quote:
|
Well note all the times that Logo said lies, where the hell are the mods? See, I am on the forums at least 2 times a day, and I would see this stuff...
|
I am on the forums almost 10 or 20 times a day and Have a vast experience in all form s of scripting. Plus have been scripting since the days when Kharlia was still an extension on Classic (I think around 1999 or so) yet I wasn't chosen. I should kiss some asses, maybe Ill be mod of something ;p
|
and pastaustin is a far better teacher than rabid. :O
"WAIT FOR A DOCUMENT I WILL POST." "WAIT. STEFAN SAID HE WILL POST THE PROJECT THING "Soon*" *Soon = around 2 weeks, if not more. :( |
Ahh stop the whining..Forum mods have lifes too, we can't be on the forums 24/7. Remember, patience is a virtue.
|
Can we ban Logo for repetitious posting of the same friggen word?
|
Quote:
|
lies
|
Corupt: wow this thread got off topic real quick whoever wanted the beach lines generator I havent made one yet but ive made plenty others ill look into making a beach gen when i finish up soem gfx on my tileset just PM whoever wanted it
|
| All times are GMT +2. The time now is 08:18 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.