Idolo Posted September 1, 2014 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 48 Reputation: 3 Joined: 03/30/12 Last Seen: August 17, 2017 Share 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 Link to comment Share on other sites More sharing options...
Bin4ry Posted September 9, 2014 Group: Members Topic Count: 30 Topics Per Day: 0.01 Content Count: 782 Reputation: 82 Joined: 01/01/12 Last Seen: September 21, 2015 Share 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 Link to comment Share on other sites More sharing options...
Idolo Posted September 9, 2014 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 48 Reputation: 3 Joined: 03/30/12 Last Seen: August 17, 2017 Author Share Posted September 9, 2014 Bump. Quote Link to comment Share on other sites More sharing options...
Idolo Posted September 9, 2014 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 48 Reputation: 3 Joined: 03/30/12 Last Seen: August 17, 2017 Author Share Posted September 9, 2014 I had not thought of that solution thanks ! Quote Link to comment Share on other sites More sharing options...
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.
Link to comment
Share on other sites
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.