Graal Forums

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

Sym2001 02-18-2002 03:07 PM

Triggeraction
 
Hey guys, need some assistance. I have used triggeraction many times and it has worked many times for me. But im trying to make lighteffects spin around a character, but so it will show to all. Example if some player has this NPC enabled, than all the other Players in the level will be able to see the lighteffects spinning around the player with the NPC Enabled.

But it doesnt seem to work, could anyone give me an example on how to fix this, and make it work. Please and thank you very much, been working on this NPC all day and cant figure it out.

Faheria_LAT1 02-18-2002 03:35 PM

use an index over 200 for the showimg o_O?

joseyisleet 02-18-2002 03:36 PM

-=Josey=-
If it's for pay-to-play I'd use getplayer, playerx, and playery.

TDK_RC6 02-18-2002 08:19 PM

im confused, do you want it to show for everyone in the level??

Admins 02-18-2002 09:43 PM

You can do it with showimgs, or with gani scripts.
Showimg will be laggy when displaying many
lights on many players, but will work everywhere.
You just have to do showimg index,image,x,y;
with index between 1 and 199.

Gani scripts are not laggy, but you will need
to make special ganis that hold the script
like lightswalk.gani, lightsidle.gani, and then
call replaceani idle,lightsidle; and replaceani
walk,lightswalk;
Inside the ganis add a script like this:

SCRIPT
if (playerenters || timeout) {
showimg 200,light2.png,playerx-2,playery-2;
changeimgcolors 200,1,1,1,0.99;
changeimgvis 200,3;
timeout = 0.05;
}
SCRIPTEND

Such ganiss are currently only allowed on servers with
npcserver (p2p servers).

TDK_RC6 02-18-2002 10:18 PM

gani scripting??

o my lord, how could i not know this


can it handle all of the regular gscript commands??

TDK_RC6 02-18-2002 10:27 PM

u mean that triggeraction and hitobjects can be included in ganis??

Sym2001 02-18-2002 10:57 PM

Hmmm
 
I have tried Gani scripts before, didnt work. But I will try that though since Stefan said its the best way. Im making some spells for my Mage Class, all the spells will use lighteffects and what not. Well, thanx guys. :D

Falcor 02-18-2002 11:03 PM

show img and its modifiers will work
this.vars
playerx playerx x and y will work
All the #P<number> will work
and play <sound>; will work too. basically thats it.

so you cant make a script persay inside a gani, just showimgs and play sounds.

TDK_RC6 02-19-2002 12:14 AM

Quote:

Originally posted by Falcor
show img and its modifiers will work
this.vars
playerx playerx x and y will work
All the #P<number> will work
and play <sound>; will work too. basically thats it.

so you cant make a script persay inside a gani, just showimgs and play sounds.

that helps alot, thanks

Saga2001 02-19-2002 03:05 AM

Quote:

Originally posted by Kaimetsu
Could always try script ganis, probably be the neatest way.

neomaximus2k 02-19-2002 03:42 AM

Quote:

Originally posted by Stefan
You can do it with showimgs, or with gani scripts.
Showimg will be laggy when displaying many
lights on many players, but will work everywhere.
You just have to do showimg index,image,x,y;
with index between 1 and 199.

Gani scripts are not laggy, but you will need
to make special ganis that hold the script
like lightswalk.gani, lightsidle.gani, and then
call replaceani idle,lightsidle; and replaceani
walk,lightswalk;
Inside the ganis add a script like this:

SCRIPT
if (playerenters || timeout) {
showimg 200,light2.png,playerx-2,playery-2;
changeimgcolors 200,1,1,1,0.99;
changeimgvis 200,3;
timeout = 0.05;
}
SCRIPTEND

Such ganiss are currently only allowed on servers with
npcserver (p2p servers).

This should probably be in the new ideas forum, but why not add Gani scripting to the Grall Shop program rather than manually editing it

Sym2001 02-19-2002 05:56 AM

hmm
 
So I can use Showimg in Ganis, but will I be able to use Magnatude and Cos ?

TDK_RC6 02-19-2002 08:13 PM

Quote:

Originally posted by neomaximus2k


This should probably be in the new ideas forum, but why not add Gani scripting to the Grall Shop program rather than manually editing it

me likes this idea

Kamaeru 02-24-2002 08:36 AM

how do i make it to where i can press any butto like abcdef or g and it does an action, like if i wanted to make an npc where i have to press combinations of buttons to do something, kinda like the bamboo stick, except i wanna make a skateboard that runs on a halfpipe npc and when you hit the vert you press a combo of buttons to do a specific trick, can you help?

TDK_RC6 02-24-2002 09:28 AM

Quote:

Originally posted by Kamaeru
how do i make it to where i can press any butto like abcdef or g and it does an action, like if i wanted to make an npc where i have to press combinations of buttons to do something, kinda like the bamboo stick, except i wanna make a skateboard that runs on a halfpipe npc and when you hit the vert you press a combo of buttons to do a specific trick, can you help?
you cant do anykeys you want


All times are GMT +2. The time now is 05:32 PM.

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