PenUltima Online Forum Index Official Core: 096.7
Official Core: 097 2008-02-26
Donate towards the POL web hosting bill!
 POL Home   FAQ   Search    Memberlist   Usergroups    Register    Profile   Log in to check your private messages   Log in
Skill messages, and combat messages

 
Post new topic   Reply to topic    PenUltima Online Forum Index -> General Help 096
Display posts from previous:   

Author Message
chaosdevi



Joined: 19 Sep 2007
Posts: 7

PostPosted: Wed Sep 19, 2007 4:46 am    Post subject: Skill messages, and combat messages Reply with quote

People who played at Middle Earth UO shard might remember that when using skills the server sent you messages:
Points:..
Success Chance:..
Points Gained(not gained)
The question is: how does the SysHook function CheckSkill calculates the success chance?
Or they might have created their own function, which is not using checkskill??

Second question is:
If you enable in watch.cfg combat messages, the Core prints it into console, how to make it print messages to characters??

on ME hey did it somehow....
If I had Core Source, I could've done this myself..
Is there any chance to get Pol source code?

I'm using Pol Core 96

Thanks in advance

Author Message
Zoram



Joined: 05 Aug 2007
Posts: 6
Location: Heart of Dixie

PostPosted: Wed Sep 19, 2007 8:10 am    Post subject: Reply with quote

In short no, in long, it may happen in the distant future, but I'm not gonna hold my breath! Wink

Author Message
OldnGrey



Joined: 04 Feb 2006
Posts: 517

PostPosted: Wed Sep 19, 2007 8:43 am    Post subject: Reply with quote

A lot of scriptsets hook CheckSkill.

However since CheckSkill uses skillids, it's not acceptable to those who want to eliminate skillid altogether! Take a look at the distro. It bypasses CheckSkill by defining its own function "SkillCheck" instead which uses attributes entirely.

Since you code it yourself you have complete freedom to print all sorts of information to the player, as well as total freedom to define the chance of success. eg I allow the player to optionally see the number of points that are accumulating towards a 0.1 gain.

I still use the old CheckSkill system where 20 below the skill is a 0% chance of success, and 20% above is 100% success. The range inbetween is a linear amount where equalling the skill gives 50% chance of success. That should be really easy to show as a message to the player if they wanted it.

Points gained is fairly simple. It's a parameter passed to both SkillCheck and CheckSkill, so you can readily display that too.

Given all that, it's relatively easy to display to the player their chance of success and the points gained. (If you still use points, but that's another story.)


As for damage, hits and misses, that too is readily done if you hook combat. On my shard the target gets a number above their head equalling the hp they lost, and it's easy to have a miss printed onscreen as well as parry messages because the combat hook does all the calculations and so you can easily display it.

Author Message
chaosdevi



Joined: 19 Sep 2007
Posts: 7

PostPosted: Wed Sep 19, 2007 9:56 am    Post subject: Reply with quote

Thanks, but just wanted to know how to display Miss?
damage is displayed easily in Hit scripts, but what about misses?

Author Message
MontuZ
Distro Developer


Joined: 10 Feb 2006
Posts: 293
Location: Myrtle Beach, South Carolina

PostPosted: Wed Sep 19, 2007 11:25 am    Post subject: Reply with quote

You'll want to hook Attack, good example in the 097 Distro.

Author Message
chaosdevi



Joined: 19 Sep 2007
Posts: 7

PostPosted: Wed Sep 19, 2007 12:41 pm    Post subject: Reply with quote

MontuZ wrote:
You'll want to hook Attack, good example in the 097 Distro.


can you tell me more details please?

Post new topic   Reply to topic    PenUltima Online Forum Index -> General Help 096 All times are GMT - 4 Hours
Page 1 of 1

 




Powered by phpBB © 2001, 2005 phpBB Group :: Theme & Graphics by GHS & Scott E. Royalty