Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   New Scripting Engine (GS2) (https://forums.graalonline.com/forums/forumdisplay.php?f=153)
-   -   triggeractioning area (https://forums.graalonline.com/forums/showthread.php?t=74779)

Salaisuus 06-22-2007 02:07 AM

triggeractioning area
 
How do I make triggeraction hit an entire level?

Sorry for the stupid question.

:noob:

DustyPorViva 06-22-2007 02:13 AM

Umm....
for (i=0;i<64*64;i++) {
triggeraction(i%64,int(i/64),blahblah);
}

Or I guess you could loop through all the players/npc's and triggeraction at their x/y, as you won't need to trigger anywhere's else.

cbk1994 06-22-2007 04:51 AM

getareanpcs()

triggeraction the x's, or just go through the array and call trigger( "blah", "" )

Novo 06-22-2007 11:27 AM

The problem with the ways mentioned here are flawed in the fact that a single NPC may get 2 or more triggers...

zokemon 06-22-2007 11:58 AM

Yeah, an "AoE" (Area of Effect) triggeraction would be nice :)


All times are GMT +2. The time now is 04:18 AM.

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