Jump to content
  • 0

Shoot nearest available enemy


Echo Mokona

Question


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  3
  • Reputation:   0
  • Joined:  11/29/19
  • Last Seen:  

Good afternoon.

 

Among many new skills and skill remakes I plan to do for my personal single-player localhosted adaptation of RO, I am really lost regarding how to implement some of them. The first one I'm wanting to tackle is one of the apparently simpler ones.

Also, pardon for eventual bad writing, and mistakes on common rA terminology; after a few years away from the RO scene I am a bit rusty.

So, I humbly request help, and if possible, code, for the following skill:

Paint the Wall - Gunslinger class skill meant to be used with pistols. When used, checks if the character already has the Paint the Wall statuschange/buff. If not, applies the Paint the Wall buff to the caster, which starts with a counter of 12 ("12 loaded bullets" so to say, unrelated to coins) and that's it until the caster casts Paint the Wall again. Else, If the caster already has the buff applied, reduces counter by 1, then finds the enemy closest to the caster and shoots at it. Skill must fail if no target is found, or if line of shooting is obstructed by something from the map (walls, etc). When Paint the Wall buff counter hits 0, the buff is dispelled.

 

Thank you very much, the help would be really appreciated! *(And would help making my quarantine days better too <3)*

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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.   Paste as plain text instead

  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.

×
×
  • Create New...