Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Percent Done? (https://forums.graalonline.com/forums/showthread.php?t=16716)

Mrmicro 11-12-2001 08:58 PM

Percent Done?
 
How do i script something where it got hit with an axe and it goes up 1 %and when it gets to a hundred it gives you a flag? I really need this

TDO2000 11-12-2001 11:18 PM

axe:

if(playertouchsme){
toweapons axe;
}
if(weaponfired){
setani sillyaxejustdoaganiandputthenamehere,;
triggeraction playerx+1.5+vecx(playerdir)*2,playery+2+vecy(playe rdir)*2,axe,; // Jay I use triggeraction because it gives me 50% more power!!!
}


the thing u work at

if(actionaxe){
this.procent++;
message #v(this.procent)%;
if(this.procent==100){
set sillyflaghere;
this.procent=0;
}
}


should work...

Mrmicro 11-13-2001 01:51 AM

Thank you
 
Thank you very much... I will test it

Mrmicro 11-13-2001 02:01 AM

No Working!
 
Ack it doesnt work! it changes Percents if you touch it not if you hit it

TDO2000 11-13-2001 02:16 AM

um =/
u could use a timeout for the percent showing...

Mrmicro 11-13-2001 06:11 AM

I figured out how to do it..
 
There were just 2 errors.! Proablly made by me Thanks for the help!


All times are GMT +2. The time now is 09:34 PM.

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