Thread: Better combat triangle for hybriding? 718 matrix

Results 1 to 7 of 7
  1. #1 Better combat triangle for hybriding? 718 matrix 
    Registered Member
    Join Date
    Jun 2015
    Posts
    323
    Thanks given
    21
    Thanks received
    11
    Rep Power
    7
    MATRIX 718

    I'm trying to implement a better combat system;

    i.e special attacks hit more accurately and reasonably higher when target is wearing mage or range gear (robes or hides)

    and magic is more accurate when opponent is wearing melee gear

    where would i start and what would i do? (please dont just comment "playercombat.java" or something like that )

    i dont want to edit the soaking formula to do this (lol, thats what ive been told to do)
    Reply With Quote  
     

  2. #2  
    Contributor

    clem585's Avatar
    Join Date
    Sep 2013
    Posts
    3,555
    Thanks given
    652
    Thanks received
    640
    Rep Power
    358
    Quote Originally Posted by new2rsps View Post
    MATRIX 718

    I'm trying to implement a better combat system;

    i.e special attacks hit more accurately and reasonably higher when target is wearing mage or range gear (robes or hides)

    and magic is more accurate when opponent is wearing melee gear

    where would i start and what would i do? (please dont just comment "playercombat.java" or something like that )

    i dont want to edit the soaking formula to do this (lol, thats what ive been told to do)
    If you look at the bottom of buttonhandler there is the code to get the soaking bonuses.

    What you want to edit it probably a method called getRandomHit() or getRandom().

    Make a statement somewhere about the soaking damage giving a Utils.getRandom() chance of missing. So like:

    Code:
    if (target instance of Player) {
    Player player2 = (Player) target;
    if (Utils.getRandom(100-player2.getSoakingDamageMage) == 0)//or < 10 or something like that
    hit = 0;
    }
    Project thread
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Jun 2015
    Posts
    323
    Thanks given
    21
    Thanks received
    11
    Rep Power
    7
    Quote Originally Posted by clem585 View Post
    If you look at the bottom of buttonhandler there is the code to get the soaking bonuses.

    What you want to edit it probably a method called getRandomHit() or getRandom().

    Make a statement somewhere about the soaking damage giving a Utils.getRandom() chance of missing. So like:

    Code:
    if (target instance of Player) {
    Player player2 = (Player) target;
    if (Utils.getRandom(100-player2.getSoakingDamageMage) == 0)//or < 10 or something like that
    hit = 0;
    }
    i dont quite understand what this does? could u elaborate, i know what ur getting at, but will this really effect something like (for example) accuracy of special attacks/melee hits on mage gear/range gear/melee gear?

    also why buttonhandler
    Reply With Quote  
     

  4. #4  
    Contributor

    clem585's Avatar
    Join Date
    Sep 2013
    Posts
    3,555
    Thanks given
    652
    Thanks received
    640
    Rep Power
    358
    Quote Originally Posted by new2rsps View Post
    i dont quite understand what this does? could u elaborate, i know what ur getting at, but will this really effect something like (for example) accuracy of special attacks/melee hits on mage gear/range gear/melee gear?

    also why buttonhandler
    In buttonhandler there is a thing for Equipment bonuses. If you want to do something with soaking, you can directly copy a few lines from there.

    What the code does is:

    If (the oponent is a player) {
    it declares the oponent as a player;
    if (you roll a dice with (100-the soaking bonuses of the target) faces and that it lands on 0) {
    you don't hit anything;
    }
    }
    Project thread
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Jun 2015
    Posts
    323
    Thanks given
    21
    Thanks received
    11
    Rep Power
    7
    Quote Originally Posted by clem585 View Post
    In buttonhandler there is a thing for Equipment bonuses. If you want to do something with soaking, you can directly copy a few lines from there.

    What the code does is:

    If (the oponent is a player) {
    it declares the oponent as a player;
    if (you roll a dice with (100-the soaking bonuses of the target) faces and that it lands on 0) {
    you don't hit anything;
    }
    }
    can you give me an example of what exactly u would put in huttonhandler.java, im really lost on this 1...
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Jun 2015
    Posts
    323
    Thanks given
    21
    Thanks received
    11
    Rep Power
    7
    bump
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Jun 2015
    Posts
    323
    Thanks given
    21
    Thanks received
    11
    Rep Power
    7
    bump
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Need a developer for my 718 matrix server
    By armadylpkz in forum Advertise
    Replies: 11
    Last Post: 04-25-2013, 05:16 PM
  2. 718 [Matrix] Worldmessage for new starters
    By Savions in forum Tutorials
    Replies: 20
    Last Post: 11-24-2012, 09:58 PM
  3. Rights for 718 matrix
    By JDM Reject in forum Help
    Replies: 5
    Last Post: 09-30-2012, 06:28 PM
  4. a better ::item Command for 718
    By Th3MaDhAtT3R in forum Help
    Replies: 3
    Last Post: 07-17-2012, 01:49 AM
  5. Tutorial For Better Combat.
    By PrePay in forum Requests
    Replies: 0
    Last Post: 10-20-2008, 04:06 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •