Idolo Posted September 1, 2014 Posted September 1, 2014 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. Quote
Bin4ry Posted September 9, 2014 Posted September 9, 2014 (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 September 9, 2014 by Bin4ry Quote
Idolo Posted September 9, 2014 Author Posted September 9, 2014 I had not thought of that solution thanks ! Quote
Question
Idolo
Hello guys, I would know how I can check if my npc is going to npcskill.
I try :
But it's don't work, that's possible ? You are any idea ?
Thanks.
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.