Graal Forums  

Go Back   Graal Forums > Development Forums > Future Improvements
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 05-09-2004, 10:27 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
If you want to put tiles on your level, there are other commands which already do so.

Laziness is good, to an extent. You people are going far beyond its good extent.
Reply With Quote
  #2  
Old 05-10-2004, 03:23 PM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
Quote:
Originally Posted by Lance
If you want to put tiles on your level, there are other commands which already do so.

Laziness is good, to an extent. You people are going far beyond its good extent.
Now that I have the time in my hands to post fully about the origins of this suggestion:

I'm not really going far beyond laziness to a good extent. For whoever it was... i did this script for the top part of a picnic table in my tileset, slightly modified to let it be used as an example.
NPC Code:

if (playerenters) {
for (i=x;i<=x+5;i++){
showimg i*y,ostileset.png,i,y;
changeimgpart i*y,43*16,25*16,16,16;
}
}


The actual script that I would have used this on is gone now, because of a managerial change and a new plan of what is going to happen. It read values off of the string:

setstring this.port,portnumber,x,y,dir,boatx,boaty,signx,sig ny;

To explain the string:

-Consider portnumber,signx,signy irrelevant.
-The x,y,dir was to actually place the tickettaker char that used showcharacter and charprops.
-The boatx,boaty was for placing a showimg of the boat on the given coordinates.

Before I go any further, I'll explain to you how the old boat system on Classic had worked. (and also, please understand the fact that I was converting it to work on an NPC server and that it had been using like 20 putnpc scripts beforehand)
-you sit at the dock until the boat arrives
-the boat, ticket taker appear at the end of the timer.
-you go talk to the ticket taker, he warps you to a separate boat level.
-you stay in the boat level until you get at the stop you want.
-you get off the boat, warp into a new level.

I wanted to be able to control all of this through a single class. The problem was that the tickettaker char took immediate control of the setshape and I couldn't use setshape anywhere else through the NPC because of that. I don't see it as a big deal, I wouldn't care about being able to swim under the boat graphic, but if it was something where it would make more sense to block, I would appreciate being able to use a feature that set a shape using x and y values.
Reply With Quote
  #3  
Old 05-10-2004, 09:09 PM
G_yoshi G_yoshi is offline
Forbidden
G_yoshi's Avatar
Join Date: Mar 2001
Posts: 7,206
G_yoshi will become famous soon enough
Send a message via AIM to G_yoshi
Quote:
Originally Posted by jake13jake
Now that I have the time in my hands to post fully about the origins of this suggestion:

I'm not really going far beyond laziness to a good extent. For whoever it was... i did this script for the top part of a picnic table in my tileset, slightly modified to let it be used as an example.
NPC Code:

if (playerenters) {
for (i=x;i<=x+5;i++){
showimg i*y,ostileset.png,i,y;
changeimgpart i*y,43*16,25*16,16,16;
}
}


The actual script that I would have used this on is gone now, because of a managerial change and a new plan of what is going to happen. It read values off of the string:

setstring this.port,portnumber,x,y,dir,boatx,boaty,signx,sig ny;

To explain the string:

-Consider portnumber,signx,signy irrelevant.
-The x,y,dir was to actually place the tickettaker char that used showcharacter and charprops.
-The boatx,boaty was for placing a showimg of the boat on the given coordinates.

Before I go any further, I'll explain to you how the old boat system on Classic had worked. (and also, please understand the fact that I was converting it to work on an NPC server and that it had been using like 20 putnpc scripts beforehand)
-you sit at the dock until the boat arrives
-the boat, ticket taker appear at the end of the timer.
-you go talk to the ticket taker, he warps you to a separate boat level.
-you stay in the boat level until you get at the stop you want.
-you get off the boat, warp into a new level.

I wanted to be able to control all of this through a single class. The problem was that the tickettaker char took immediate control of the setshape and I couldn't use setshape anywhere else through the NPC because of that. I don't see it as a big deal, I wouldn't care about being able to swim under the boat graphic, but if it was something where it would make more sense to block, I would appreciate being able to use a feature that set a shape using x and y values.
The boat needs to be a serverside NPC since you said you're using an NPC server, correct? At that point you can control it with setshape2 Like I said a few posts before, one big script is a NO NO! It will take much more time to load versus small scripts. It sounds efficient to put it all in one, but its the exact opposite. If you want I have the script(s) for 2k1's old moveable pirate boat. You're much better off to do it that way because the boat should be on its own. Setshap isn't meant to be used with showimgs to begin with. :/ It won't kill you or the server to use a seperate NPC for the boat. Besides, doing it like that would allow you to actually move the boat between levels like on 2k1. It would give a better sense of realism rather than just magically teleporting to your destination
__________________
Reply With Quote
  #4  
Old 05-11-2004, 08:47 PM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
Quote:
Originally Posted by G_yoshi
The boat needs to be a serverside NPC since you said you're using an NPC server, correct? At that point you can control it with setshape2 Like I said a few posts before, one big script is a NO NO! It will take much more time to load versus small scripts. It sounds efficient to put it all in one, but its the exact opposite. If you want I have the script(s) for 2k1's old moveable pirate boat. You're much better off to do it that way because the boat should be on its own. Setshap isn't meant to be used with showimgs to begin with. :/ It won't kill you or the server to use a seperate NPC for the boat. Besides, doing it like that would allow you to actually move the boat between levels like on 2k1. It would give a better sense of realism rather than just magically teleporting to your destination
Pfft... it is CLASSIC after all... we'd go nuts if we didn't get teleported everywhere as if by magic. In addition, you're wrong about the script being serverside. The script was 99.9% clientside save the triggeraction warp. I don't believe two showimgs and a showchar using hide and show would very much affect somebody's lag significantly, and I even think it could have worked better with lag so that you could see the timer as it hit 0 instead of it forwarding straight to the boat. It's much easier to keep track of two NPCs than it is to keep track of six.
Reply With Quote
  #5  
Old 05-12-2004, 01:12 AM
G_yoshi G_yoshi is offline
Forbidden
G_yoshi's Avatar
Join Date: Mar 2001
Posts: 7,206
G_yoshi will become famous soon enough
Send a message via AIM to G_yoshi
Quote:
Originally Posted by jake13jake
Pfft... it is CLASSIC after all... we'd go nuts if we didn't get teleported everywhere as if by magic. In addition, you're wrong about the script being serverside. The script was 99.9% clientside save the triggeraction warp. I don't believe two showimgs and a showchar using hide and show would very much affect somebody's lag significantly, and I even think it could have worked better with lag so that you could see the timer as it hit 0 instead of it forwarding straight to the boat. It's much easier to keep track of two NPCs than it is to keep track of six.
And you failed to listen to what I said. I just told you it would only require approximately two NPCs if that. Why the hell would even need six?! No wonder why it sucked :/
__________________
Reply With Quote
  #6  
Old 05-14-2004, 07:31 AM
dlang dlang is offline
Yoshi!
dlang's Avatar
Join Date: Oct 2002
Location: Houston, Texas
Posts: 406
dlang is on a distinguished road
Send a message via AIM to dlang Send a message via MSN to dlang
Quote:
Originally Posted by Lance
If you want to put tiles on your level, there are other commands which already do so.

Laziness is good, to an extent. You people are going far beyond its good extent.
I'm not being lazy (Probably not true XD!)
But I just want a simple solution to it, rather than having to modify ganis or create long scripts when the same could be done in a simple command.
__________________
Where do I take this pain of mine?
I run but it stays right by my side.
So tear me open, pour me out,
there's things inside that scream and shout.
And the pain still hates me, so hold me until it sleeps.

---------------
Reply With Quote
  #7  
Old 05-15-2004, 11:42 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
Quote:
Originally Posted by dlang
I'm not being lazy (Probably not true XD!)
But I just want a simple solution to it, rather than having to modify ganis or create long scripts when the same could be done in a simple command.
Or with a simple NPC.
Reply With Quote
  #8  
Old 05-11-2004, 10:34 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
uh, the boat is clientside? why, exactly? its much easier to do serverside
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote
  #9  
Old 05-12-2004, 08:51 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
meh, its easier if you don't limit yourself to making it work the same as it did before, but I guess you're more worried about being hack-resilient than improving script/system quality
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote
  #10  
Old 05-16-2004, 01:01 PM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
Quote:
Originally Posted by Dach
meh, its easier if you don't limit yourself to making it work the same as it did before, but I guess you're more worried about being hack-resilient than improving script/system quality
Actually... I don't think it would have been easy at all to map the movement of the boat from port to port. Classic's Map had like 1000+ levels.
Reply With Quote
  #11  
Old 05-16-2004, 07:56 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
Quote:
Originally Posted by jake13jake
Actually... I don't think it would have been easy at all to map the movement of the boat from port to port. Classic's Map had like 1000+ levels.

fine, use a shortcut, move it off of the port level, and warp to a scrolling water level (similar to the old system) then warp to the next port

I never even said to do it the same as GK... not to mention mapping nodes on a gmap isn't very hard, classic does have alot of ocean y'know
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote
  #12  
Old 06-02-2004, 08:24 AM
dlang dlang is offline
Yoshi!
dlang's Avatar
Join Date: Oct 2002
Location: Houston, Texas
Posts: 406
dlang is on a distinguished road
Send a message via AIM to dlang Send a message via MSN to dlang
I hope this is added soon -.-, it would be very handy.
__________________
Where do I take this pain of mine?
I run but it stays right by my side.
So tear me open, pour me out,
there's things inside that scream and shout.
And the pain still hates me, so hold me until it sleeps.

---------------
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 02:19 PM.


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