Hyroshima 18 Posted July 27, 2019 hlw, would anyone tell me how to execute a callfunc "func", param1,param2; in src (função de npc script existente!) ? one skill will call callfunc "func", 1, skill_id; I need to pass param1 = 1, param2 = skil_level Quote Share this post Link to post Share on other sites
0 bWolfie 138 Posted July 29, 2019 I'm not sure if callfunc() is meant to be used outside of the script engine. Quote Share this post Link to post Share on other sites
0 cookie-rae 6 Posted July 29, 2019 On 7/28/2019 at 2:48 AM, Hyroshima said: hlw, would anyone tell me how to execute a callfunc "func", param1,param2; in src (função de npc script existente!) ? one skill will call callfunc "func", 1, skill_id; I need to pass param1 = 1, param2 = skil_level callfunc "func", "param1","param2"; like this also have a sample callfunc("OddFunc",.@number) the source link is https://herc.ws/wiki/Callfunc Quote Share this post Link to post Share on other sites
0 bWolfie 138 Posted July 29, 2019 25 minutes ago, hikashin said: callfunc "func", "param1","param2"; like this also have a sample callfunc("OddFunc",.@number) the source link is https://herc.ws/wiki/Callfunc Hyroshima wants to use a callfunc() every time a skill is used. E.g. player uses skill 'Magnum Break', every time it occurs callfunc("F_Test") happens. Quote Share this post Link to post Share on other sites
0 Hyroshima 18 Posted August 6, 2019 (edited) On 7/29/2019 at 6:29 AM, bWolfie said: Hyroshima wants to use a callfunc() every time a skill is used. E.g. player uses skill 'Magnum Break', every time it occurs callfunc("F_Test") happens. I added a custom skill and that skill will call the function I created ... but I had to pass some parameters, because each custom skill would perform a different action within the function! The solution I had was to create separate files just to call the function with the params for each custom skill. solved~ ty all! Edited August 6, 2019 by Hyroshima Quote Share this post Link to post Share on other sites
hlw, would anyone tell me how to execute a
callfunc "func", param1,param2;
in src (função de npc script existente!) ?
one skill will call callfunc "func", 1, skill_id;
I need to pass param1 = 1, param2 = skil_level
Share this post
Link to post
Share on other sites