Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-06-2004, 08:01 AM
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
Playerfullhearts?

Is there any way to increase a player's full hearts without a chest? playerfullhearts=# doesn't seem to really work, and I've tried several conditions. Maybe it's something you can't do in offline mode?
Reply With Quote
  #2  
Old 01-06-2004, 09:38 AM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
Re: Playerfullhearts?

It does work online, serverside, probably within the limits the appropriate server option sets you.
Reply With Quote
  #3  
Old 01-06-2004, 11:14 AM
D1ce2 D1ce2 is offline
Registered User
Join Date: Dec 2003
Location: United Kingdom
Posts: 446
D1ce2 is on a distinguished road
Send a message via AIM to D1ce2 Send a message via Yahoo to D1ce2
Like this:

NPC Code:


if(actionserverside){
playerhearts = playerfullhearts;
}
//#CLIENTSIDE
if(created){
triggeraction 0,0,serverside,weaponame,param1,param2;
}



That's how you get to serverside by using triggeractions
__________________

The time is coming
Reply With Quote
  #4  
Old 01-06-2004, 12:43 PM
GoZelda GoZelda is offline
Mister 1,000,000
GoZelda's Avatar
Join Date: Jan 2003
Location: Brussels, capital of Europe.
Posts: 5,396
GoZelda will become famous soon enough
Send a message via AIM to GoZelda Send a message via MSN to GoZelda
Quote:
Originally posted by D1ce2
Like this:

NPC Code:


if(actionserverside){
playerhearts = playerfullhearts;
}
//#CLIENTSIDE
if(created){
triggeraction 0,0,serverside,weaponame,param1,param2;
}



That's how you get to serverside by using triggeractions
That isn't really good to do, but i guess you were givin' him the general idea.
__________________

Quote:
Originally Posted by Lance
stefan is satan
I am the best.
[URL removed]Music or aural pollution?
Reply With Quote
  #5  
Old 01-06-2004, 03:20 PM
D1ce2 D1ce2 is offline
Registered User
Join Date: Dec 2003
Location: United Kingdom
Posts: 446
D1ce2 is on a distinguished road
Send a message via AIM to D1ce2 Send a message via Yahoo to D1ce2
Quote:
Originally posted by GoZelda

That isn't really good to do, but i guess you were givin' him the general idea.
I don't care if you can do any better, atleast I give the general idea on how it goes.
__________________

The time is coming
Reply With Quote
  #6  
Old 01-06-2004, 04:24 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 D1ce2
Like this:

NPC Code:


if(actionserverside){
playerhearts = playerfullhearts;
}
//#CLIENTSIDE
if(created){
triggeraction 0,0,serverside,weaponame,param1,param2;
}



That's how you get to serverside by using triggeractions
Your script is acting like a healer, he wants to add +1 heart.
__________________
"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 01-06-2004, 04:28 PM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
... it is so unneccessary to trigger the server to set the playerhearts. Also, the question was about setting playerfullhearts, not playerhearts.
Reply With Quote
  #8  
Old 01-06-2004, 04:48 PM
D1ce2 D1ce2 is offline
Registered User
Join Date: Dec 2003
Location: United Kingdom
Posts: 446
D1ce2 is on a distinguished road
Send a message via AIM to D1ce2 Send a message via Yahoo to D1ce2
Ah I missunderstood. I didn't have to trigger it, since it dosn't need to be a weapon. I understand my mistake.
__________________

The time is coming
Reply With Quote
  #9  
Old 01-06-2004, 05:18 PM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
But still - playerhearts is clientsidely writeable.
Reply With Quote
  #10  
Old 01-06-2004, 06:09 PM
-Ramirez- -Ramirez- is offline
Registered User
Join Date: Jun 2002
Location: USA, Ohio
Posts: 729
-Ramirez- has a spectacular aura about-Ramirez- has a spectacular aura about
Quote:
Originally posted by Loriel
But still - playerhearts is clientsidely writeable.
No doubt only due to the need for the clientside-only engine. It seems likely that it would change in 3.1, as it would be more secure.
__________________
Kat
Reply With Quote
  #11  
Old 01-06-2004, 08:33 PM
D1ce2 D1ce2 is offline
Registered User
Join Date: Dec 2003
Location: United Kingdom
Posts: 446
D1ce2 is on a distinguished road
Send a message via AIM to D1ce2 Send a message via Yahoo to D1ce2
Quote:
Originally posted by Loriel
But still - playerhearts is clientsidely writeable.
I wasn't aware of that.
__________________

The time is coming
Reply With Quote
  #12  
Old 01-06-2004, 11:49 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
umm... wow.... -straight forward- Does that mean it's currently possible, or no?
Reply With Quote
  #13  
Old 01-06-2004, 11:56 PM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
NPC Code:
if (playertouchsme) {
if (!got_fullheart) {
playerfullhearts ++;
say2 I grant thee new powers!;
} else say I shall heel thy wounds!;
playerhearts = playerfullhearts;
}


Reply With Quote
  #14  
Old 01-06-2004, 11:58 PM
D1ce2 D1ce2 is offline
Registered User
Join Date: Dec 2003
Location: United Kingdom
Posts: 446
D1ce2 is on a distinguished road
Send a message via AIM to D1ce2 Send a message via Yahoo to D1ce2
Quote:
Originally posted by Loriel
NPC Code:
if (playertouchsme) {
if (!got_fullheart) {
playerfullhearts ++;
say2 I grant thee new powers!;
} else say I shall heel thy wounds!;
playerhearts = playerfullhearts;
}


You are Cool
(You spelt heal wrong though!)
__________________

The time is coming
Reply With Quote
  #15  
Old 01-07-2004, 12:37 AM
-Ramirez- -Ramirez- is offline
Registered User
Join Date: Jun 2002
Location: USA, Ohio
Posts: 729
-Ramirez- has a spectacular aura about-Ramirez- has a spectacular aura about
Not to mention that got_fullheart flag check is completely pointless. In the visible script at least.
__________________
Kat
Reply With Quote
  #16  
Old 01-07-2004, 01:17 AM
zell12 zell12 is offline
Gone
zell12's Avatar
Join Date: Jun 2001
Location: Alberta, Canada
Posts: 8,541
zell12 has a spectacular aura about
Send a message via ICQ to zell12 Send a message via AIM to zell12 Send a message via MSN to zell12
why dont you just add client flags every time they get a full heart? For every client.hearts=# a new full heart is added.
__________________
Reply With Quote
  #17  
Old 01-07-2004, 01:23 AM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
I WAS TIRED
(I still am.)
Reply With Quote
  #18  
Old 01-07-2004, 07:31 AM
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
So can you only add playerfullhearts online? I can't get anything to work offline having to do with changing playerfullhearts-- unless I use the chest. Loriel, your script doesn't work, either. I don't really understand why I can't... I'd assume since you could get fullhearts in chests (offline), that you'd be able to add them using a script, but I just can't get it.
Reply With Quote
  #19  
Old 01-07-2004, 03:46 PM
D1ce2 D1ce2 is offline
Registered User
Join Date: Dec 2003
Location: United Kingdom
Posts: 446
D1ce2 is on a distinguished road
Send a message via AIM to D1ce2 Send a message via Yahoo to D1ce2
Remove the flag for it to work.
__________________

The time is coming
Reply With Quote
  #20  
Old 01-07-2004, 04:43 PM
-Ramirez- -Ramirez- is offline
Registered User
Join Date: Jun 2002
Location: USA, Ohio
Posts: 729
-Ramirez- has a spectacular aura about-Ramirez- has a spectacular aura about
Normally I wouldn't do anything that would help him in any way, since I can't stand him, however... he IS correct. Increasing full hearts with that variable doesn't work. It may work serverside, sure, but that's not what he's doing, he's doing it in offline mode. Try it yourself, you'll find that it DOESN'T work.
__________________
Kat
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 01:43 AM.


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