Castle Paradox Forum Index Castle Paradox

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Gamelist   Review List   Song List   All Journals   Site Stats   Search Gamelist   IRC Chat Room

Getting npc ID

 
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP!
View previous topic :: View next topic  
Author Message
Saga




Joined: 21 Aug 2004
Posts: 8
Location: Australia

PostPosted: Mon Dec 13, 2004 7:19 pm    Post subject: Getting npc ID Reply with quote

Ok well I have this script which i'm going to try and run from multiple NPCs, is there a way that i can get the NPC thats running the scripts ID number? Or do i have to make multiple coppies of it or something?
_________________
No Current Projects
Back to top
View user's profile Send private message MSN Messenger
Bob the Hamster
OHRRPGCE Developer




Joined: 22 Feb 2003
Posts: 2526
Location: Hamster Republic (Southern California Enclave)

PostPosted: Tue Dec 14, 2004 4:27 pm    Post subject: second argument Reply with quote

check out: http://hamsterrepublic.com/ohrrpgce/plotscripttutor.html#triggering

The first argument of a script that is triggered by an NPC is going to be the "script argument" from the NPC editor, but the optional second argument will be a reference to the npc

Example:
Code:

define script(1,NPC action,2,0,0)

script, NPC action, arg, ref, begin
    walk NPC(ref,south,1)
end
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP! All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group