Help to edit the script a little :(

Hi guys, i am trying to modify KHAS's Saphier Action System:
http://arcthunder.blogspot.com.br/p/scripts.html
that to have a distance attribute for skill, for example if i input note tag
distance = 100
then that skill will be destroyed after it has moved >= 100 pixel.
I checked the script and guess that shouldn't too hard for some one experienced with RGSS3 script (Ruby?)

My theory is to define a new tag, and declare it like target.loc = char.x + distance
give condition to destroy the skill once it reached the target.loc

But i don't know much about RPGVXAce scripting so... please HELP T.T
Below is Khas Sapphire Script so you can take a look

Thanks Guys



Moderator note: Removed the script because of the Terms of Use it comes with. Please be extra careful whe you post such assets. Read the terms before posting and make sure you can. Your alternative is to post his blog!

http://arcthunder.blogspot.gr/p/scripts.html
Oh sorry about that, i thought that would be easier for people who want to help : |
Oh sorry about that, i thought that would be easier for people who want to help : |
It would be, but not everything is easy 😉

Also his website is down 🙁 so I'm not sure how to get it.
Ooops!Sorry about that. The link in the terms is dead. Here is his blog! ^^
http://arcthunder.blogspot.gr/p/scripts.html
Edited OP too!
I just glanced over the code, and it seems it's based on stock functions, just rewired a bit to do other things.
if what you want is to put a limit to the distance of a spell, that *should* be doable.
hi @gstv87 somehow i was able to implement a distance attribute for skill.
Can you help me to add a timer function? for example i can set the skill to
vanished after 120 frames or so on.
I think it's not too hard too, since we can set like time1 = Graphics.frame_count
and time2 = Graphics.frame_count + timer
and check if time1 >= time2 >>> destroy
But i am not sure how to do it properly :|
Thank you : )
look into the SaphireSkill class, methods "move", "move_last", "destroy" and "update"

Original thread: https://forums.rpgmakerweb.com/threads/help-to-edit-the-script-a-little.92483/