Jump to content
  • 0
Sign in to follow this  
Hyroshima

Callfunc npc script in src code?

Question

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

4 answers to this question

Recommended Posts

  • 0
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

 

Share this post


Link to post
Share on other sites
  • 0
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.

Share this post


Link to post
Share on other sites
  • 0
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 by Hyroshima

Share this post


Link to post
Share on other sites

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.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.