Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-11-2003, 04:43 PM
bashjgovers bashjgovers is offline
Registered User
Join Date: Aug 2003
Posts: 31
bashjgovers is on a distinguished road
Unhappy 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
Reply With Quote
  #2  
Old 08-11-2003, 07:31 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
you'll have to rescript hearts and possible movement if you want it to not be crap
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote
  #3  
Old 08-11-2003, 07:38 PM
Andy0687 Andy0687 is offline
Enigma
Join Date: Feb 2002
Posts: 1,072
Andy0687 is on a distinguished road
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
__________________
Reply With Quote
  #4  
Old 08-11-2003, 08:21 PM
bashjgovers bashjgovers is offline
Registered User
Join Date: Aug 2003
Posts: 31
bashjgovers is on a distinguished road
so thats what im going to try

thanx
Reply With Quote
  #5  
Old 08-12-2003, 12:34 AM
Mykel Mykel is offline
:o
Mykel's Avatar
Join Date: May 2002
Location: Canton, Ohio.
Posts: 5,526
Mykel has a spectacular aura about
Send a message via AIM to Mykel Send a message via MSN to 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)){

__________________
(Married to Skyld)
Reply With Quote
  #6  
Old 08-12-2003, 03:14 AM
osrs osrs is offline
Graalian since 1998
osrs's Avatar
Join Date: Mar 2002
Location: Brazil
Posts: 2,724
osrs is on a distinguished road
Send a message via ICQ to osrs Send a message via AIM to osrs Send a message via MSN to osrs Send a message via Yahoo to osrs
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
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /
Reply With Quote
  #7  
Old 08-12-2003, 03:23 AM
Mykel Mykel is offline
:o
Mykel's Avatar
Join Date: May 2002
Location: Canton, Ohio.
Posts: 5,526
Mykel has a spectacular aura about
Send a message via AIM to Mykel Send a message via MSN to Mykel
Quote:
Originally posted by osrs


Not exactly..=p
lmao, I took that from the death script you made for Chaos Faction that works.

__________________
(Married to Skyld)
Reply With Quote
  #8  
Old 08-12-2003, 04:48 PM
SaijinGohan SaijinGohan is offline
Registered User
SaijinGohan's Avatar
Join Date: Jul 2001
Location: U.S.A - Ohio
Posts: 536
SaijinGohan is on a distinguished road
Send a message via AIM to SaijinGohan Send a message via MSN to SaijinGohan
Well you could use the code mentioned to add other effects and then replace the gani.
__________________

Job: A Legend

And you think that you have played Graal forever? Ha!
Reply With Quote
  #9  
Old 08-12-2003, 08:49 PM
osrs osrs is offline
Graalian since 1998
osrs's Avatar
Join Date: Mar 2002
Location: Brazil
Posts: 2,724
osrs is on a distinguished road
Send a message via ICQ to osrs Send a message via AIM to osrs Send a message via MSN to osrs Send a message via Yahoo to osrs
Quote:
Originally posted by Mykel
lmao, I took that from the death script you made for Chaos Faction that works.

I know,but that's a different thing.
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /
Reply With Quote
  #10  
Old 08-12-2003, 11:24 PM
bashjgovers bashjgovers is offline
Registered User
Join Date: Aug 2003
Posts: 31
bashjgovers is on a distinguished road
mm
i cant do it

im not very used to use string etc. but i if (playerhearts=<
doesnt work
Reply With Quote
  #11  
Old 08-13-2003, 12:10 AM
SaijinGohan SaijinGohan is offline
Registered User
SaijinGohan's Avatar
Join Date: Jul 2001
Location: U.S.A - Ohio
Posts: 536
SaijinGohan is on a distinguished road
Send a message via AIM to SaijinGohan Send a message via MSN to SaijinGohan
I dunno if it matters but isnt it

if (playerhearts<=
__________________

Job: A Legend

And you think that you have played Graal forever? Ha!
Reply With Quote
  #12  
Old 08-13-2003, 12:53 AM
Riot-Starter Riot-Starter is offline
Registered User
Join Date: Aug 2001
Location: Central Florida, USA
Posts: 79
Riot-Starter is on a distinguished road
Send a message via AIM to Riot-Starter
Quote:
Originally posted by SaijinGohan
I dunno if it matters but isnt it

if (playerhearts<=
Doesn't matter
<=
will get the same results as
=<
Reply With Quote
  #13  
Old 08-13-2003, 12:53 AM
Mykel Mykel is offline
:o
Mykel's Avatar
Join Date: May 2002
Location: Canton, Ohio.
Posts: 5,526
Mykel has a spectacular aura about
Send a message via AIM to Mykel Send a message via MSN to Mykel
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.
__________________
(Married to Skyld)
Reply With Quote
  #14  
Old 08-13-2003, 02:12 AM
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
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
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote
  #15  
Old 08-13-2003, 02:39 AM
Tseng Tseng is offline
Sublime
Tseng's Avatar
Join Date: Jan 2003
Location: California
Posts: 0
Tseng is on a distinguished road
Quote:
Originally posted by Riot-Starter

Doesn't matter
<=
will get the same results as
=<
=< is bad form, though.
__________________
Funny Things:
Quote:
Originally posted by Stefan
I didn't ban you, I only played a little bit with my RC.
-----
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 07:44 AM.


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