![]() |
#n > Gs2
In GS1:
NPC Code:#N - Nickname of NPC. In GS2: NPC Code:#n > nick My question is, what is the GS2 version of #N? |
I don't think #N is the NPC name. It's been a while so I could be wrong.
Anyways for GS2, 'nick' is the nickname of an NPC/Player. 'player.nick' is the current player's nick If you had an NPC, its nick would be 'this.nick'. |
Haha, I find it hillarious that I never tried that one.. And #N IS the NPC name.
For example, the NPC "Sendtorc NPC" uses this command: NPC Code:sendtorc This is triggered by #N!; This would show upon RC: NPC Code:(NPC Server): This is triggered by Sendtorc NPC! By using #w, that would only work if its selected with the classic inventory. |
Quote:
|
'nick' is a built-in variable so in an npc you can access it with just 'nick' and not 'this.nick' or even 'npc.nick'. I don't use 'this.' with built-in variables, its less confusing for me I suppose. Whatever you're scripting in has a current object in it.
And also, 'id' and 'name' are seperate. 'name' being the object its on and 'id' being the NPC's Id. All weapons have an ID of -1. |
Quote:
|
Quote:
|
Quote:
|
jake13jake, take this as an example:
PHP Code:
Quote:
|
| All times are GMT +2. The time now is 01:14 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.