Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   New Scripting Engine (GS2) (https://forums.graalonline.com/forums/forumdisplay.php?f=153)
-   -   Showing blood effects only once (https://forums.graalonline.com/forums/showthread.php?t=79985)

Stryke 06-08-2008 05:19 AM

onActionProjectile only detects when hit on player.
if(actionprojectile2) detects when it hits anything.

cbk1994 06-08-2008 05:29 AM

Quote:

Originally Posted by Stryke (Post 1395379)
onActionProjectile only detects when hit on player.
if(actionprojectile2) detects when it hits anything.

I'm talking about your combination of GS1 and GS2.

function onActionProjectile() = if (actionprojectile)

function onActionProjectile2() = if(actionprojectile2)

params[0] = #p(0)

Stryke 06-08-2008 06:47 AM

For params part, #p(0) is shorter than params[0].
About the projectile2 part, it didn't work for me, but now it does. Thanks.

cbk1994 06-08-2008 06:52 AM

Quote:

Originally Posted by Stryke (Post 1395402)
For params part, #p(0) is shorter than params[0]

Who cares if it's shorter? X_X

It's ugly and makes little sense.

xXziroXx 06-08-2008 12:39 PM

Not to mention that if GS1 ever gets removed, your scripts will go BOOM.

Crow 06-08-2008 12:43 PM

Quote:

Originally Posted by xXziroXx (Post 1395424)
Not to mention that if GS1 ever gets removed, your scripts will go BOOM.

GS1 won't be removed, Stefan stated that. GS1 support itself kinda is removed already, but the syntax is still working. Though you should still not mix GS1 with GS2.

xXziroXx 06-08-2008 12:44 PM

Quote:

Originally Posted by Crow (Post 1395425)
GS1 won't be removed, Stefan stated that. GS1 support itself kinda is removed already, but the syntax is still working. Though you should still not mix GS1 with GS2.

I said if..

cbk1994 06-08-2008 05:55 PM

I've also read on the Wiki, though I can't find it now, that you should avoid mixing GS1 and GS2.

TheStan 06-08-2008 07:57 PM

Quote:

Originally Posted by Stryke (Post 1395402)
For params part, #p(0) is shorter than params[0].
About the projectile2 part, it didn't work for me, but now it does. Thanks.

That doesn't mean anything, we're talking about functionality and proper coding. You should never mix GS1 with GS2 in the case of many things such as with what ziro said in the case GS1 is removed.

Besides that it's just weird and improper coding!

zokemon 06-08-2008 08:05 PM

Message codes for the win!


All times are GMT +2. The time now is 09:00 AM.

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