JerethKhan Posted September 20, 2009 Share Posted September 20, 2009 For some reason I can't seem to get "mynpcREF.isdead" style scripts working on custom NPCs.For example: in LucasSimmsScript there is the recursive statementif MisterBurkeRef.getSitting == 0 I have a custom NPC Regulis (name and ID) but whenever I use "RegulisRef.isdead" it tells me Unkowen variable or function 'isDead'. Is dead is defined in the same script used in Regulis' NPC_ file, actually it's set up exactly the same way Lucas Simms death check is set up, but doesn't seem to work. Is there a spot where I need to create a referance pointer to Regulis for this to work? I've coded MUDs in C for years and reversed some pretty complex source, so I'm sure there is something small and stupid I am missing. Link to comment Share on other sites More sharing options...
gsmanners Posted September 20, 2009 Share Posted September 20, 2009 The function is actually GetDead, and your NPC's reference ID is all you need to use this. Link to comment Share on other sites More sharing options...
JerethKhan Posted September 20, 2009 Author Share Posted September 20, 2009 The function is actually GetDead, and your NPC's reference ID is all you need to use this.Thanks, I knew it was something stupid, I didn't realise the script was refering to an object in the game space, I thought it was a static NPC from the object windows. Thanks for the direct link to references, that fixed my issue in less than 20 seconds. Link to comment Share on other sites More sharing options...
Recommended Posts