![]() |
|
05-07-2012
|
1 |
|
Levels<3
Join Date: Dec 2011
Location: Fairfax, Virginia
Posts: 997
|
NPC script question (commands)
What does index and eventflag mean? callnpc index,eventflag; What does this do and what does action and params mean? Can i use this to trigger the script of another npc? if so how? triggeraction x,y,action,params; |
|
05-07-2012
|
2 |
|
Nerd
Join Date: Sep 2011
Location: Berlin
Posts: 3,825
|
These are all GS1 events. If you are interested in working for other servers, I suggest you learn GS2 since Graal doesn't support GS1 anymore. Triggeraction can be used in GS2, and you're correct in thinking it can be used to trigger another NPC. For example Lets say you had 2 NPC's in a level. One NPC is at 30, 39 and me NPC is at 40, 41. You can use Triggeraction to trigger the NPC at 40, 41 from the NPC at 30, 39 by doing something like this in the NPC script. PHP Code:
PHP Code:
|
|
05-07-2012
|
3 |
|
Levels<3
Join Date: Dec 2011
Location: Fairfax, Virginia
Posts: 997
|
do these codes work in offline editor?
|
|
05-07-2012
|
4 |
|
Nerd
Join Date: Sep 2011
Location: Berlin
Posts: 3,825
|
No, since the offline editor only functions with GS1. I've given a GS2 solution to your problem. Triggeraction can be used in GS1, but the syntax is different and I don't have any idea how it would be used without doing some quid research, which I'm sure you could do yourself.
|
|
05-07-2012
|
5 |
|
Levels<3
Join Date: Dec 2011
Location: Fairfax, Virginia
Posts: 997
|
ohh ok, thx for all your help anyways, is there a way I could test the script anywhere?
|
|
05-07-2012
|
6 |
|
Nerd
Join Date: Sep 2011
Location: Berlin
Posts: 3,825
|
If you buy a gold subscription, you can contact a Testbed server administrator and ask for access, you can test anything you want here, including levels and coding. A gold subscription can be bought via phone every month or by card. You can find payment information at www.graalonline.com. You can read through this thread to find out who you have to contact to get Testbed server access. |
|
05-07-2012
|
7 |
|
Levels<3
Join Date: Dec 2011
Location: Fairfax, Virginia
Posts: 997
|
oh ok why doesnt graal support gs1 anymore? greeeeaaaaattt now i gotta learn gs2, do you know where i can learn gs2? |
|
05-07-2012
|
8 |
|
Nerd
Join Date: Sep 2011
Location: Berlin
Posts: 3,825
|
|
|
05-07-2012
|
9 |
|
Levels<3
Join Date: Dec 2011
Location: Fairfax, Virginia
Posts: 997
|
k thx!
|