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...


All times are GMT +2. The time now is 01:24 PM.

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