SphereCommunity
Help with FULLTRIGGER - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: Help with FULLTRIGGER (/Thread-Help-with-FULLTRIGGER)



Help with FULLTRIGGER - Rizz - 10-14-2014 05:49 AM

Code:
[SKILL 17]
DEFNAME=Skill_Healing
KEY=Healing
TITLE=Healer
PROMPT_MSG=Who will you use the bandages on?
DELAY=2.4
EFFECT=2.0,20.0
ADV_RATE=3.0,15.0,60.0
STAT_STR=0
STAT_INT=0
STAT_DEX=0
BONUS_STATS=20
BONUS_STR=0
BONUS_DEX=30
BONUS_INT=70

ON=@Start
serv.b healing


ON=@Success

ON=@Fail
    SRC.SYSMESSAGE You apply the bandages, but they barely help.

ON=@Abort
    SRC.SYSMESSAGE You stop applying the bandages.

Using the normal skill triggers there are no ways to force a skills to fire @Fail or @Success as i want to do.
Is possible to do this using fulltrigger? If yes, how?


RE: Help with FULLTRIGGER - Ben - 10-14-2014 08:24 AM

I don't think it's possible using FULLTRIGGER or TRIGGER since it's a skill and not an in-game object.


RE: Help with FULLTRIGGER - Rizz - 10-14-2014 08:50 AM

Is possible to add and ARGN on @Start to manage this?
Maybe a value from 0 to 1 where

0 fail
1 success


RE: Help with FULLTRIGGER - darksun84 - 10-14-2014 09:16 AM

if you want to fail a skill just set a super high actdiff, like 10000 (and test it with gm off Tongue)


RE: Help with FULLTRIGGER - Coruja - 10-14-2014 11:15 AM

try set your char action to skill_healing, if it works, you can control it using ACTDIFF 1 (success) / -1 (fail) and TIMER=0 to end the action


RE: Help with FULLTRIGGER - Rizz - 10-14-2014 07:25 PM

Thx Big Grin

Anyway on this page i found something not correct: http://wiki.sphere.torfo.org/index.php/Making_your_own_Skills

Code:
ON=@Start
    // Fires when the skill begins.
    // RETURN 1    = Prevent using the skill
    // RETURN 0/2  = Allow skill to be used
    // ACTION = -1 = Fail (@Fail).
    // ACTDIFF     = Skill required to succeed (0-100). Set to a negative value to fail the skill.

ACTION=-1 fires @abort
ACTDIFF=-1, negative values become 0


RE: Help with FULLTRIGGER - darksun84 - 10-14-2014 08:34 PM

in @start actdiff value must be very high for automatically failing the skill while in @hittry is the opposite.