You are not logged in.

Applications: [GameMaster: OPEN] | [Volunteer Testers: OPEN]


This forum will be permanently shut down on Friday 13.07.2018
Please copy or save all important information from old forum before they will be deactivated
We have moved to new board. https://forum.runesofmagic.gameforge.com/Come join us.

Amberwave

Intermediate

  • "Amberwave" started this thread

Posts: 369

Location: Chicagoland

  • Send private message

1

Sunday, June 1st 2014, 4:18pm

Determination of front or rear for DIYCE

Determining if we are behind a target has never been available to us. We currently use whether or not we are targeted, assuming if not targeted we are behind the target. I have started this thread to give the idea some focus and see if we can come up with a different solution. I will start with my idea and lets see if we can move this thing forward.

When you are not behind the target and try to use a rear attack an error message pops up. My thought is to detect and use the error message as a condition of the rear attack. Spamming DIYCE, it attempts to use a rear attack, the error message pops up, it detects the error and now skips the rear attack and moves on. I tried using what was used for skills where Dodge was a condition but I could not get it to work. The messages pop in different places so my guess is that I am searching the wrong text. Any idea how I could detect this error message?

Peryl

Intermediate

Posts: 313

Location: Elsewhere

  • Send private message

2

Monday, June 2nd 2014, 6:39am

An ineresting idea.

Would need to intercept the error message text at the point of using the skill and check that, though we would want to suppress the message for this check or we would end up with a lot of spammed messages on screen. Should be possible though I'm not sure what frame the messages appear on (would need to check through RoMWiki).

One problem with this method though is that it doesn't actually tell us if we are behind or not, it just allows DIYCE to continue if a skill that does need to be rear facing but we currently aren't. This means that we can't do a check when building the DIYCE skill list.


Well a quick check on RoMWiki and some old stuff I have still kicking around seems to indicate two possible places that these messages could show up.

WarningFrame and SystemMsgFrame both have text messages that appear on screen, these are MessageFrame UI component. See http://runesofmagic.gamepedia.com/List_o…ds#MessageFrame though unfortunately I never got around to completing the RomWiki entries for this component so some research will have to be done on it. But the ClearText method seems appropriate for getting rid of the message and the GetLines method seems like what is needed for retrieving the text.
2013... The year from hell....

This post has been edited 2 times, last edit by "Peryl" (Jun 2nd 2014, 7:11am)


3

Saturday, June 14th 2014, 10:42am

Ye, nice idea. I've seen this used in other combat engines like KitteyCombo were they also use it to detect other
failed attacks as the UseSkill and similar functions do not give feedback on fail/success.

.frafall

ghostwolf82

Professional

Posts: 859

Location: Kalvans Trunk

Occupation: It's dark in here

  • Send private message

4

Friday, June 20th 2014, 7:55pm

Had this same idea at one point but never fully fleshed it out because Rogue has never really been my main class for very long. (Only ever played it long enough to test a few things out lol.) I have always enjoyed the ranged classes the most, with tanking or healing as a close second for pure enjoyment. I hope someone eventually figures it out :)