Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   Pausing the player with Graalscript! (https://forums.graalonline.com/forums/showthread.php?t=35602)

G_yoshi 08-11-2002 11:10 AM

Pausing the player with Graalscript!
 
I think it would be useful if a command was added that literally pauses the player as if he or she pushed "p". That way I and others can make custom message displays; using freezeplayer doesn't protect the player from attacks of any kind.

screen_name 08-11-2002 11:21 AM

lol, use disablepause
then script your own pause system

and use disabledefmovement =)

G_yoshi 08-11-2002 11:36 AM

Quote:

Originally posted by screen_name
lol, use disablepause
then script your own pause system

and use disabledefmovement =)

You missed entirely what I said didn't you? I already knew about disablepause, etc. I want a command that will pause the player as if they pushed "p". I know how to lock the player, most people that can script NPCs do :p To actually make them invincible is another thing and doing playerhearts=playerfullhearts or whatever doesn't do what I want...they still get hurt and move.

Cybnext 08-11-2002 11:53 AM

Quote:

Originally posted by G_yoshi


You missed entirely what I said didn't you? I already knew about disablepause, etc. I want a command that will pause the player as if they pushed "p". I know how to lock the player, most people that can script NPCs do :p To actually make them invincible is another thing and doing playerhearts=playerfullhearts or whatever doesn't do what I want...they still get hurt and move.

Do the damage and such serverside and check for 'playerpaused'.

Python523 08-11-2002 11:55 AM

use keypressed, strequals(#p(1),p)) and have a var keep track of the pause/unpaused and do what you want to the player while the var is true or somethin

Kaimetsu 08-11-2002 10:01 PM

Like Cybnext said, you just need to script your own damage system.

mikepg 08-11-2002 10:37 PM

Quote:

Originally posted by Kaimetsu
Like Cybnext said, you just need to script your own damage system.
Having to rescript a damage system just for the purpose of pausing a player is lame.

I have an idea....that should be in a new topic...
hhmmm.

Kaimetsu 08-11-2002 10:45 PM

Quote:

Originally posted by mikepg


Having to rescript a damage system just for the purpose of pausing a player is lame.

I have an idea....that should be in a new topic...
hhmmm.

You don't need to; you could always use the built-in pause. But if you want to customise your server and suchlike then you need to learn to script.

G_yoshi 08-11-2002 11:27 PM

Quote:

Originally posted by Kaimetsu


You don't need to; you could always use the built-in pause. But if you want to customise your server and suchlike then you need to learn to script.

actually, I just want something like 'pauseplayer' :p I already have somewhat of a custom damage system...the only problem is, getting around the engine's built-in animation checking. Every time the player swings their sword, the engine checks for that animation and then does whatever it needs to after that. Other than that, I already have it sending out triggeraction because I do a few things when 'S' is pushed :)

Kaimetsu 08-12-2002 12:06 AM

Quote:

Originally posted by G_yoshi


actually, I just want something like 'pauseplayer' :p I already have somewhat of a custom damage system...the only problem is, getting around the engine's built-in animation checking. Every time the player swings their sword, the engine checks for that animation and then does whatever it needs to after that. Other than that, I already have it sending out triggeraction because I do a few things when 'S' is pushed :)

There must be some way to get around that. Use a different gani for sword striking if necessary.

G_yoshi 08-12-2002 11:56 AM

Quote:

Originally posted by Kaimetsu


There must be some way to get around that. Use a different gani for sword striking if necessary.

nada...doing replaceani sword,<newgani> doesn't change anything. Graal still reads it as sword :(

Cybnext 08-12-2002 01:31 PM

Quote:

Originally posted by G_yoshi


nada...doing replaceani sword,<newgani> doesn't change anything. Graal still reads it as sword :(

Then rescript the swinging of the sword.

screen_name 08-12-2002 01:45 PM

Quote:

Originally posted by G_yoshi


You missed entirely what I said didn't you? I already knew about disablepause, etc. I want a command that will pause the player as if they pushed "p". I know how to lock the player, most people that can script NPCs do :p To actually make them invincible is another thing and doing playerhearts=playerfullhearts or whatever doesn't do what I want...they still get hurt and move.

o, lol, i just figured that you wasn't using regular damage system

lol, :)

Kaimetsu 08-12-2002 08:22 PM

Quote:

Originally posted by Cybnext


Then rescript the swinging of the sword.

Indeed. Aren't you even using disabledefmovement, Yoshi?

SingleChance 08-12-2002 08:32 PM

:)
G...

Tyhm 08-13-2002 12:29 AM

I the only one who sees it as a tragic waste that the only way we can do what we need to is to add a whole new layer of player-scripted code on top of Stefan's original code? I mean, in order to make a truly good world, you have to script custom movement, custom damage, custom inventory, custom map, custom baddies, custom arrows....if you want something to work right, you have to replace it yourself. Seems wasteful.

Kaimetsu 08-13-2002 12:47 AM

Quote:

Originally posted by Tyhm
I the only one who sees it as a tragic waste that the only way we can do what we need to is to add a whole new layer of player-scripted code on top of Stefan's original code? I mean, in order to make a truly good world, you have to script custom movement, custom damage, custom inventory, custom map, custom baddies, custom arrows....if you want something to work right, you have to replace it yourself. Seems wasteful.
Graal's more of a toolkit to me now, a foundation for making game stuff. Personally, I want more of Graal's features to be overridable.

G_yoshi 08-13-2002 02:15 AM

1 Attachment(s)
Quote:

Originally posted by Kaimetsu


Indeed. Aren't you even using disabledefmovement, Yoshi?

Heh, no :p I don't need or want to do that. While yes, I do have custom player graphics and animation, I don't see or feel the need to create custom player movement controls. I already have a basic replacement for Graal's default message windows. I suppose any that are in areas where I will allow weapons to be used won't lock the player until the message is finished.

It shouldn't be too hard to spot...right there in the bottom-right corner :)

G_yoshi 08-13-2002 02:16 AM

Quote:

Originally posted by Kaimetsu


Graal's more of a toolkit to me now, a foundation for making game stuff. Personally, I want more of Graal's features to be overridable.

I second that! :D

Kaimetsu 08-13-2002 05:27 AM

Quote:

Originally posted by G_yoshi


Heh, no :p I don't need or want to do that. While yes, I do have custom player graphics and animation, I don't see or feel the need to create custom player movement controls. I already have a basic replacement for Graal's default message windows. I suppose any that are in areas where I will allow weapons to be used won't lock the player until the message is finished.

It shouldn't be too hard to spot...right there in the bottom-right corner :)

The box is very nice. It reminds me of FF7.

But really, you should think about rescripting movement. It's essential if you wanna customise your world to any great degree.

G_yoshi 08-13-2002 07:20 AM

Quote:

Originally posted by Kaimetsu


The box is very nice. It reminds me of FF7.

But really, you should think about rescripting movement. It's essential if you wanna customise your world to any great degree.

Again, that depends upon whether or not I truly need to do that :/

Oh, and thank you for your comment on the dialogue box :) I'll probably change it so that it matches the rest of the status display :)

Falcor 08-13-2002 07:47 AM

Yo, that screenshot is cool. I like the feel of the GUI and stuff. Although I think you should make some way to hide or minimize it, because that is taking up a WHOLE lot of room.

Tyhm 08-13-2002 08:09 AM

Quote:

Originally posted by Kaimetsu


Graal's more of a toolkit to me now, a foundation for making game stuff. Personally, I want more of Graal's features to be overridable.

Seems that in such situations, Graal's gonna waste a lot of cycles on default behaviour that never takes place. It reads in a keypress, stops the default movement, runs your custom movement, and looks for the next key...hardly ideal.

G_yoshi 08-13-2002 08:19 AM

Quote:

Originally posted by Falcor
Yo, that screenshot is cool. I like the feel of the GUI and stuff. Although I think you should make some way to hide or minimize it, because that is taking up a WHOLE lot of room.
heh, I know...I plan to do a little something to take care of it but otherwise, I like it how it is now :) If you have a good computer, fullscreen is best :D

Kaimetsu 08-13-2002 10:23 PM

Quote:

Originally posted by Tyhm


Seems that in such situations, Graal's gonna waste a lot of cycles on default behaviour that never takes place. It reads in a keypress, stops the default movement, runs your custom movement, and looks for the next key...hardly ideal.

However: Modern computers are more than fast enough to handle it.

brock128 08-13-2002 10:27 PM

Wasn't the Yoshi head removed?

Tyhm 08-14-2002 07:02 AM

Quote:

Originally posted by Kaimetsu


However: Modern computers are more than fast enough to handle it.

Bleh. By that rationalle it's perfectly reasonable to code a pathfinder that operates in n^4 time, because ram's cheap and it's only a matter of time before computers become fast enough that the difference is undetectable.

If Graal won't allow direct overriding of the underlying code, the underlying code should be removable, not just patchable...

G_yoshi 08-14-2002 07:52 AM

Quote:

Originally posted by brock128
Wasn't the Yoshi head removed?
That doesn't mean I can't have it for personal use :p

G_yoshi 08-14-2002 07:56 AM

Quote:

Originally posted by Tyhm


Bleh. By that rationalle it's perfectly reasonable to code a pathfinder that operates in n^4 time, because ram's cheap and it's only a matter of time before computers become fast enough that the difference is undetectable.

If Graal won't allow direct overriding of the underlying code, the underlying code should be removable, not just patchable...

That might make Graal more vulnerable to hacks and what not...but that would be dependant upon how well Stefan can code it to work and be safe for use online....it would be a shame if someone had overidden the defaults only for it to be hacked around with a lame trainer or something similar.

Torankusu 08-14-2002 09:15 AM

Quote:

Originally posted by G_yoshi


That doesn't mean I can't have it for personal use :p

yes it does.
When it's removed, it's removed.

screen_name 08-14-2002 03:50 PM

Quote:

Originally posted by Torankusu
yes it does.
When it's removed, it's removed.

lol, true, but what is it hurting??

Kaimetsu 08-14-2002 07:49 PM

Quote:

Originally posted by Tyhm


Bleh. By that rationalle it's perfectly reasonable to code a pathfinder that operates in n^4 time, because ram's cheap and it's only a matter of time before computers become fast enough that the difference is undetectable.

If the pathfinder causes no noticable slowdown on modern systems then what's the problem? Obviously there would be potential problems if the thing took 50% of the computer's processing time, but a simple movement script could hardly take more than a percentile.

Torankusu 08-15-2002 12:00 AM

Quote:

Originally posted by screen_name


lol, true, but what is it hurting??

you're aware of trademarks and copyrights, right?

Kaimetsu 08-15-2002 12:10 AM

It depends. If he means personal use in that it replaces a head on his own computer but is not found on the server, then fair enough. If he means personal use in that he uploaded it to DK for his use only, then bad.

screen_name 08-15-2002 12:15 AM

Quote:

Originally posted by Kaimetsu
It depends. If he means personal use in that it replaces a head on his own computer but is not found on the server, then fair enough. If he means personal use in that he uploaded it to DK for his use only, then bad.
I meant for personal use on home PC, not online ;)

Torankusu 08-15-2002 12:36 AM

Quote:

Originally posted by screen_name


I meant for personal use on home PC, not online ;)

But he's on Doragon Koden.

Kaimetsu 08-15-2002 12:40 AM

As I said, it's possible that he's merely substituted a graphic on his computer for the yoshi head so that it shows on his screen only. Possible, but unlikely.

Tyhm 08-15-2002 04:30 AM

Wouldn't it be EASIER to hack something with a substructure of forgotten code?

For example, if I recode bombs to use putnpc instead of putbomb - putbomb still exists, it can still be used by hackers, but it's not doing any GOOD....

Kaimetsu 08-15-2002 10:49 PM

Yes, fair point. But then most stuff like that is disabled on the NPC Server now anyway - everything works through triggeraction and putnpc2. It's pretty darned hard to hack anything on there.

G_yoshi 08-16-2002 10:40 AM

Quote:

Originally posted by Torankusu
But he's on Doragon Koden.
Hmm....*scans PW FTP* Nope, not there :p Anything I posted that is from the new overworld is not online :p


All times are GMT +2. The time now is 12:49 PM.

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