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 09-07-2008, 08:56 PM
johny023 johny023 is offline
Registered User
Join Date: Dec 2006
Posts: 36
johny023 is on a distinguished road
damage text help

i have a offline player world and i was wondering how to do damage text that says how much damage was done to the player/npc, like the text on GK and Zodiac, but i don't know how to make the text show up as the amount of damage that person took. the best i could think of was to make a trigger for every possible amount of damage the player/npc could take then use a few "showimg" triggers to show a number, but.. that would take up a huge amount of script. could someone tell me if there's a better way?
Reply With Quote
  #2  
Old 09-07-2008, 09:17 PM
DrakilorP2P DrakilorP2P is offline
Registered User
DrakilorP2P's Avatar
Join Date: Apr 2006
Posts: 755
DrakilorP2P is just really niceDrakilorP2P is just really nice
Just display the damage value. Use string concatenation if you need to add other stuff.
Reply With Quote
  #3  
Old 09-07-2008, 09:33 PM
johny023 johny023 is offline
Registered User
Join Date: Dec 2006
Posts: 36
johny023 is on a distinguished road
Quote:
Originally Posted by DrakilorP2P View Post
Just display the damage value. Use string concatenation if you need to add other stuff.
is there something that displays values? sorry i don't know much about script could you be a little more specific?
Reply With Quote
  #4  
Old 09-07-2008, 09:58 PM
DrakilorP2P DrakilorP2P is offline
Registered User
DrakilorP2P's Avatar
Join Date: Apr 2006
Posts: 755
DrakilorP2P is just really niceDrakilorP2P is just really nice
Quote:
Originally Posted by johny023 View Post
is there something that displays values? sorry i don't know much about script could you be a little more specific?
Values and strings are often treated the same. Just replace the string with the value.
Reply With Quote
  #5  
Old 09-07-2008, 11:00 PM
johny023 johny023 is offline
Registered User
Join Date: Dec 2006
Posts: 36
johny023 is on a distinguished road
Quote:
Originally Posted by DrakilorP2P View Post
Values and strings are often treated the same. Just replace the string with the value.
do you mean make the npc message the damage?
Reply With Quote
  #6  
Old 09-07-2008, 11:50 PM
DrakilorP2P DrakilorP2P is offline
Registered User
DrakilorP2P's Avatar
Join Date: Apr 2006
Posts: 755
DrakilorP2P is just really niceDrakilorP2P is just really nice
Quote:
Originally Posted by johny023 View Post
do you mean make the npc message the damage?
I believe so. Why didn't you try that immediately before asking here?
Reply With Quote
  #7  
Old 09-08-2008, 12:25 AM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Quote:
Originally Posted by DrakilorP2P View Post
Values and strings are often treated the same. Just replace the string with the value.
He's talking offline, as in GS1.
__________________
Reply With Quote
  #8  
Old 09-08-2008, 01:06 AM
johny023 johny023 is offline
Registered User
Join Date: Dec 2006
Posts: 36
johny023 is on a distinguished road
Quote:
Originally Posted by DrakilorP2P View Post
I believe so. Why didn't you try that immediately before asking here?
because the npcs message their health if they messaged damage you wouldn't be able to see their health.
Reply With Quote
  #9  
Old 09-08-2008, 01:54 AM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Quote:
Originally Posted by johny023 View Post
because the npcs message their health if they messaged damage you wouldn't be able to see their health.
Is health display not separate from message?
__________________
Reply With Quote
  #10  
Old 09-08-2008, 02:37 AM
johny023 johny023 is offline
Registered User
Join Date: Dec 2006
Posts: 36
johny023 is on a distinguished road
Quote:
Originally Posted by Inverness View Post
Is health display not separate from message?
i was using hearts in the beginning but after a while i noticed that npcs can't have more then 2047 hearts... and i needed more so i changed all the npcs to run off of the value this.hp instead of hearts, and then i used hearts for allies/enemies so they don't attack the wrong npcs, the old rupees script had too many glitches.
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 06:02 PM.


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