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 02-25-2002, 09:48 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
Question Strange behaviour of a variable :/

client.attrib.hp is 9999, here.
NPC Code:

hp = strtofloat(#s(client.attrib.hp));
setplayerprop #c,#v(hp) #v(strtofloat(#s(client.attrib.hp)));



Result: "1807 9999"
Are "hp"-variables limited somehow?
The hp thingie is acting as if I did hp = strtofloat(#s(client.attrib.hp))%2048;

Strangely, the mp are working fine, though using the very same thingie.
Reply With Quote
  #2  
Old 02-25-2002, 10:02 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
hp is an internal variable and is the same like 'hearts',
so its the power of the npc
Reply With Quote
  #3  
Old 02-25-2002, 10:05 PM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
Quote:
Originally posted by Stefan
hp is an internal variable and is the same like 'hearts',
so its the power of the npc
When did those types of variables come about?
Reply With Quote
  #4  
Old 02-25-2002, 11:38 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
Quote:
Originally posted by Stefan
hp is an internal variable and is the same like 'hearts',
so its the power of the npc
*hates internal variables*
Remove it k?
Why can hp go up to 2048, while playerhp only goes to ... less, probably?
Reply With Quote
  #5  
Old 02-25-2002, 11:59 PM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
I believe the hp and stuff have been around for a while...
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
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:48 AM.


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