Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   damage text help (https://forums.graalonline.com/forums/showthread.php?t=81712)

johny023 09-07-2008 08:56 PM

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?

DrakilorP2P 09-07-2008 09:17 PM

Just display the damage value. Use string concatenation if you need to add other stuff.

johny023 09-07-2008 09:33 PM

Quote:

Originally Posted by DrakilorP2P (Post 1421266)
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?

DrakilorP2P 09-07-2008 09:58 PM

Quote:

Originally Posted by johny023 (Post 1421269)
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.

johny023 09-07-2008 11:00 PM

Quote:

Originally Posted by DrakilorP2P (Post 1421277)
Values and strings are often treated the same. Just replace the string with the value.

do you mean make the npc message the damage?

DrakilorP2P 09-07-2008 11:50 PM

Quote:

Originally Posted by johny023 (Post 1421286)
do you mean make the npc message the damage?

I believe so. Why didn't you try that immediately before asking here?

Inverness 09-08-2008 12:25 AM

Quote:

Originally Posted by DrakilorP2P (Post 1421277)
Values and strings are often treated the same. Just replace the string with the value.

He's talking offline, as in GS1.

johny023 09-08-2008 01:06 AM

Quote:

Originally Posted by DrakilorP2P (Post 1421290)
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.

Inverness 09-08-2008 01:54 AM

Quote:

Originally Posted by johny023 (Post 1421301)
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?

johny023 09-08-2008 02:37 AM

Quote:

Originally Posted by Inverness (Post 1421312)
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.


All times are GMT +2. The time now is 02:34 AM.

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