SphereCommunity
Need help with sphere_combat - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: Need help with sphere_combat (/Thread-Need-help-with-sphere-combat)



Need help with sphere_combat - Rizz - 09-30-2014 10:37 AM

This is the original code

Code:
if (<CanSee <src>>)                                                    // If I can see my target.
    serv.b cansee                                                                // And my target is being ridden (should not happen) or ! CanSeeLos (Ignoring windows if i'm shooting).
    if ( (<src.brain> && <src.flags>&statf_ridden) || !<CanSeeLosFlag <src>,<qval ( <Action>==archery )? LOS_NB_WINDOWS : 0>>)
        if ( !<serv.CombatFlags>&200 || <Swing>!=SWING_SWINGING)    // I'm going to stop (unless i'm preparing to hit and Combat_StayInRange is not set).
            argn1 SWING_READY
            return 1
        endif
        argn1 SWING_EQUIPPING
        return 1
    endif
else
    if ( !<serv.CombatFlags>&200 || <Swing>!=SWING_SWINGING)        // same here but without LOS check.
        argn1 SWING_READY
        return 1
    endif
    argn1 SWING_EQUIPPING
    return 1
endif

Default behaviour:
A is attacking B, B hides himself, A stops to attack B until B becomes visible again and after A presses "attacklast".

What i need:
A is attacking B, B hides himself, A is ready to hit B when B will become visible again without use "attacklast".

LOL @HitCheck doesn't trigger if you use "attacklast" on someone that is hidden...


RE: Need help with sphere_combat - Rizz - 09-30-2014 09:08 PM

Ok i think sphere_combat is not proper working...


RE: Need help with sphere_combat - Extreme - 10-01-2014 12:13 AM

You don't have to use it, I don't use it Smile


RE: Need help with sphere_combat - Rizz - 10-01-2014 04:09 AM

Eh XuN suggested me to use it to change all the combat system as i want... actually i would like to use but, in order to make some changes, i need a working code.

Right now, eveything under the code i quoted seems to be ignored.


RE: Need help with sphere_combat - Extreme - 10-01-2014 04:25 AM

It's work for me, but I don't need it.
Maybe you didn't understand how to use this new trigger.


RE: Need help with sphere_combat - Rizz - 10-01-2014 05:00 AM

(10-01-2014 04:25 AM)Extreme Wrote:  It's work for me, but I don't need it.
Maybe you didn't understand how to use this new trigger.

I will thx you if you'll explain me.

This is not enough to install?
ON=@HitCheck
call f_combat_hit <src>
src.f_combat_gethit=<local.dam>,<argn2>


RE: Need help with sphere_combat - Extreme - 10-01-2014 05:23 AM

Yes, start adding E_COMBAT_SYSTEM in your characters.
Then to debug the script, insert a lots of serv.b to identify where is the problem and what.


RE: Need help with sphere_combat - Rizz - 10-01-2014 06:52 AM

(10-01-2014 05:23 AM)Extreme Wrote:  Yes, start adding E_COMBAT_SYSTEM in your characters.
Then to debug the script, insert a lots of serv.b to identify where is the problem and what.

Yes i did but i cannot pass the code i posted.


RE: Need help with sphere_combat - Extreme - 10-01-2014 07:33 AM

Maybe there is something in revisions logs that can help you.