Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-18-2002, 03:07 PM
Sym2001 Sym2001 is offline
Registered User
Join Date: Nov 2001
Location: Ontario Canada
Posts: 226
Sym2001 is on a distinguished road
Send a message via AIM to Sym2001 Send a message via Yahoo to Sym2001
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.
Reply With Quote
  #2  
Old 02-18-2002, 03:35 PM
Faheria_LAT1 Faheria_LAT1 is offline
Seraphim Warrior
Faheria_LAT1's Avatar
Join Date: Oct 2001
Location: QUÉBEC!!!!!!1
Posts: 2,040
Faheria_LAT1 is on a distinguished road
Send a message via ICQ to Faheria_LAT1 Send a message via AIM to Faheria_LAT1
use an index over 200 for the showimg o_O?
__________________


"I like movies where the guy shoots stuff, and then it blows up, and then this other guy shoots him, and then the first guy drives through a Coke sign, and it blows up, and the car flips over in slow motion, and then the guy gets out and pops his arm back in place, and then they fight 'cause they're out of bullets, and the guy says something like "This is Walmart, boy...and you just got price-checked!" - Broken Saints

"There is no greater sorrow than to recall in misery when we were happy" - Dante

"If you know yourself but not the enemy, for every victory gained you will also suffer a defeat" - Sun Tzu, The Art Of War

"Kingdoms ...rising without word. Collapsing without warning." - Broken Saints

Account now used by Silver and Mmmmkay
yoshee15 account has run out :[[[
Reply With Quote
  #3  
Old 02-18-2002, 03:36 PM
joseyisleet joseyisleet is offline
Registered User
Join Date: Aug 2001
Posts: 378
joseyisleet is on a distinguished road
-=Josey=-
If it's for pay-to-play I'd use getplayer, playerx, and playery.
__________________
Account used by Josey and Howard.
Ali G: 'Is it cause i Black?'
Reply With Quote
  #4  
Old 02-18-2002, 08:19 PM
TDK_RC6 TDK_RC6 is offline
Registered User
TDK_RC6's Avatar
Join Date: Jan 2002
Location: Earth
Posts: 0
TDK_RC6 is on a distinguished road
im confused, do you want it to show for everyone in the level??
__________________
Staff on Renegade


email: [email protected]
aim: papivicente
Reply With Quote
  #5  
Old 02-18-2002, 09:43 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
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).
Reply With Quote
  #6  
Old 02-18-2002, 10:18 PM
TDK_RC6 TDK_RC6 is offline
Registered User
TDK_RC6's Avatar
Join Date: Jan 2002
Location: Earth
Posts: 0
TDK_RC6 is on a distinguished road
gani scripting??

o my lord, how could i not know this


can it handle all of the regular gscript commands??
__________________
Staff on Renegade


email: [email protected]
aim: papivicente
Reply With Quote
  #7  
Old 02-18-2002, 10:27 PM
TDK_RC6 TDK_RC6 is offline
Registered User
TDK_RC6's Avatar
Join Date: Jan 2002
Location: Earth
Posts: 0
TDK_RC6 is on a distinguished road
u mean that triggeraction and hitobjects can be included in ganis??
__________________
Staff on Renegade


email: [email protected]
aim: papivicente
Reply With Quote
  #8  
Old 02-18-2002, 10:57 PM
Sym2001 Sym2001 is offline
Registered User
Join Date: Nov 2001
Location: Ontario Canada
Posts: 226
Sym2001 is on a distinguished road
Send a message via AIM to Sym2001 Send a message via Yahoo to Sym2001
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.
Reply With Quote
  #9  
Old 02-18-2002, 11:03 PM
Falcor Falcor is offline
Darth Cucumber
Falcor's Avatar
Join Date: Mar 2001
Location: At School
Posts: 2,874
Falcor is on a distinguished road
Send a message via ICQ to Falcor Send a message via AIM to Falcor Send a message via MSN to Falcor Send a message via Yahoo to 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.
__________________

subliminal message: 1+1=3
Reply With Quote
  #10  
Old 02-19-2002, 12:14 AM
TDK_RC6 TDK_RC6 is offline
Registered User
TDK_RC6's Avatar
Join Date: Jan 2002
Location: Earth
Posts: 0
TDK_RC6 is on a distinguished road
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
__________________
Staff on Renegade


email: [email protected]
aim: papivicente
Reply With Quote
  #11  
Old 02-19-2002, 03:05 AM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
Quote:
Originally posted by Kaimetsu
Could always try script ganis, probably be the neatest way.
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #12  
Old 02-19-2002, 03:42 AM
neomaximus2k neomaximus2k is offline
Registered User
Join Date: Feb 2002
Location: UK
Posts: 324
neomaximus2k is on a distinguished road
Send a message via ICQ to neomaximus2k
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
__________________
Beware of thy Inner self
NPC Code:

_.,.__
((o\\o\))
.-. ` \\``
__( )___.o"".,___
=== ~~~~~~~~
==
= Neo

Reply With Quote
  #13  
Old 02-19-2002, 05:56 AM
Sym2001 Sym2001 is offline
Registered User
Join Date: Nov 2001
Location: Ontario Canada
Posts: 226
Sym2001 is on a distinguished road
Send a message via AIM to Sym2001 Send a message via Yahoo to Sym2001
hmm

So I can use Showimg in Ganis, but will I be able to use Magnatude and Cos ?
Reply With Quote
  #14  
Old 02-19-2002, 08:13 PM
TDK_RC6 TDK_RC6 is offline
Registered User
TDK_RC6's Avatar
Join Date: Jan 2002
Location: Earth
Posts: 0
TDK_RC6 is on a distinguished road
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
__________________
Staff on Renegade


email: [email protected]
aim: papivicente
Reply With Quote
  #15  
Old 02-24-2002, 08:36 AM
Kamaeru Kamaeru is offline
G2k1
Kamaeru's Avatar
Join Date: Dec 2001
Posts: 1,040
Kamaeru has much to be proud ofKamaeru has much to be proud ofKamaeru has much to be proud ofKamaeru has much to be proud ofKamaeru has much to be proud ofKamaeru has much to be proud of
Question

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?
__________________
3DS friendcode: 1118-0226-7975
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 12:30 AM.


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