Jump to content
  • 0

Check npcskill ?


Question

Posted

Hello guys, I would know how I can check if my npc is going to npcskill.

I try :

if (npcskill !=0){close;}

 

But it's don't work, that's possible ? You are any idea ?

Thanks.

3 answers to this question

Recommended Posts

Posted (edited)

Can you elaborate more? If you wanted to know whether your npc have casted skill or not you can use a npc variable like .var then check back with if (.var != 0) close;

 

Not sure what are you trying to do but here's the example:

if (!.healed) { 
    npcskill "AL_HEAL",10,99,60;
    .healed = 1;
} else {
    mes "Healed already.";
    close;
}

Here is a list of different variable types:

  name  - permanent character integer variable
  name$ - permanent character string variable
 @name  - temporary character integer variable
 @name$ - temporary character string variable
 $name  - permanent global integer variable
 $name$ - permanent global string variable
$@name  - temporary global integer variable
$@name$ - temporary global string variable
 .name  - NPC integer variable
 .name$ - NPC string variable
.@name  - scope integer variable
.@name$ - scope string variable
 #name  - permanent local account integer variable
 #name$ - permanent local account string variable
##name  - permanent global account integer variable
##name$ - permanent global account string variable
Edited by Bin4ry

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...