Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   death script (https://forums.graalonline.com/forums/showthread.php?t=47014)

bashjgovers 08-11-2003 04:43 PM

death script
 
i dunno if its possible, but i wanna script my own death system. Like if your death, the screen is going black and a message appear. Can i configure this?

greetz Bas

Dach 08-11-2003 07:31 PM

you'll have to rescript hearts and possible movement if you want it to not be crap

Andy0687 08-11-2003 07:38 PM

Quote:

Originally posted by Dach
you'll have to rescript hearts and possible movement if you want it to not be crap
Definatly hearts, because when playerhearts hits 0 the default system kicks in

bashjgovers 08-11-2003 08:21 PM

so thats what im going to try:D

thanx

Mykel 08-12-2003 12:34 AM

Or you could just use:

NPC Code:
if(created){
setstring client.dead,false;
}

if(playerdies){
setstring client.dead,true;
timeout=.05;
}

if(timeout){
if(strequals(#s(client.dead),true)){


osrs 08-12-2003 03:14 AM

Quote:

Originally posted by Mykel
Or you could just use:

NPC Code:
if(created){
setstring client.dead,false;
}

if(playerdies){
setstring client.dead,true;
timeout=.05;
}

if(timeout){
if(strequals(#s(client.dead),true)){


Not exactly..=p

Mykel 08-12-2003 03:23 AM

Quote:

Originally posted by osrs


Not exactly..=p

lmao, I took that from the death script you made for Chaos Faction that works. :rolleyes:

:D

SaijinGohan 08-12-2003 04:48 PM

Well you could use the code mentioned to add other effects and then replace the gani.

osrs 08-12-2003 08:49 PM

Quote:

Originally posted by Mykel
lmao, I took that from the death script you made for Chaos Faction that works. :rolleyes:

:D

I know,but that's a different thing.

bashjgovers 08-12-2003 11:24 PM

mm
i cant do it:\

im not very used to use string etc. but i if (playerhearts=<
doesnt work

SaijinGohan 08-13-2003 12:10 AM

I dunno if it matters but isnt it

if (playerhearts<=

Riot-Starter 08-13-2003 12:53 AM

Quote:

Originally posted by SaijinGohan
I dunno if it matters but isnt it

if (playerhearts<=

Doesn't matter
<=
will get the same results as
=<

Mykel 08-13-2003 12:53 AM

Quote:

Originally posted by SaijinGohan
I dunno if it matters but isnt it

if (playerhearts<=

I think so. Because in school they say lessthan or equal to, not equal to or less than.

Dach 08-13-2003 02:12 AM

you can't do much in terms of animations and such when the player's hearts are at zero with the built in system, you'll have to make your own to do anything neat-o

Tseng 08-13-2003 02:39 AM

Quote:

Originally posted by Riot-Starter

Doesn't matter
<=
will get the same results as
=<

=< is bad form, though.

SaijinGohan 08-13-2003 06:20 PM

Quote:

Originally posted by Tseng


=< is bad form, though.

Thats why I pointed that out. It didnt seem to click in my head.

wonderboysp2p 08-14-2003 10:18 PM

<= ; =< who cares? we're all dyslexic anyways

SaijinGohan 08-14-2003 10:32 PM

Who elected you to speak for all of us? :)

GoZelda 08-14-2003 11:33 PM

=< is like using = instead of ==

bashjgovers 08-18-2003 11:28 PM

and like in era, if you die there, you cant respawn by pressing a key, and after some secs you go to the hospital

such thing as that


All times are GMT +2. The time now is 08:18 AM.

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