laonglaing Posted May 16 Group: Members Topic Count: 13 Topics Per Day: 0.00 Content Count: 37 Reputation: 0 Joined: 06/12/16 Last Seen: June 6 Share Posted May 16 is there a guide or is it posibble to run custom script example "function script func_mTest {}" when using a skill example Bash of swordsman? Quote Link to comment Share on other sites More sharing options...
0 ckx_ Posted May 16 Group: Members Topic Count: 6 Topics Per Day: 0.01 Content Count: 24 Reputation: 4 Joined: 06/29/22 Last Seen: 1 hour ago Share Posted May 16 It's possible, but usually messy. You would need to get a reference to the NPC calling the script down to the C layer, and that can be messy, especially if instances are involved. What functionality do you want? It's likely that a source mod is more straightforward. You can add a statement somewhere in skill.cpp's `skill_additional_effect` function if you want something to happen after Bash hits a target, or you can add it under the SM_BASH case label in skill.cpp's `skill_castend_damage_id` if you want to happen as soon as Bash is used. 1 Quote Link to comment Share on other sites More sharing options...
0 laonglaing Posted May 17 Group: Members Topic Count: 13 Topics Per Day: 0.00 Content Count: 37 Reputation: 0 Joined: 06/12/16 Last Seen: June 6 Author Share Posted May 17 8 hours ago, ckx_ said: It's possible, but usually messy. You would need to get a reference to the NPC calling the script down to the C layer, and that can be messy, especially if instances are involved. What functionality do you want? It's likely that a source mod is more straightforward. You can add a statement somewhere in skill.cpp's `skill_additional_effect` function if you want something to happen after Bash hits a target, or you can add it under the SM_BASH case label in skill.cpp's `skill_castend_damage_id` if you want to happen as soon as Bash is used. i see, so as you mentioned that its messy... what are the methods in the source that i should check to do such? there are some skill mods that i wanted to implement and i think its more organize if i put every mods in a script outside the source. Quote Link to comment Share on other sites More sharing options...
0 ckx_ Posted May 17 Group: Members Topic Count: 6 Topics Per Day: 0.01 Content Count: 24 Reputation: 4 Joined: 06/29/22 Last Seen: 1 hour ago Share Posted May 17 What skill mods do you want to implement? Quote Link to comment Share on other sites More sharing options...
Question
laonglaing
is there a guide or is it posibble to run custom script example "function script func_mTest {}" when using a skill example Bash of swordsman?
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.