@@ -2052,7 +2052,7 @@ function Scl.CreateActivateEffect_NegateActivation(reg_obj, op_str, lim_obj, con
...
@@ -2052,7 +2052,7 @@ function Scl.CreateActivateEffect_NegateActivation(reg_obj, op_str, lim_obj, con
end
end
--Create an activate effect, fusion summon a monster meets "fus_filter", use cards from "mat_obj" as fusion materials, and do "mat_fun" to those materials, the materials must meet "fcheck" and "gcheck"
--Create an activate effect, fusion summon a monster meets "fus_filter", use cards from "mat_obj" as fusion materials, and do "mat_fun" to those materials, the materials must meet "fcheck" and "gcheck"
--"mat_obj" should be function-format, call mat_obj(e, tp, eg, ...) to get materials.
--"mat_obj" should be function-format, call mat_obj(e, tp, eg, ...) to get materials.
--"mat_fun" can be string-format (like "Send2GY", "Bainsh", see Scl.Category_List), call s.operate_selected_objects to do the operation on the selected materials and set operation info due to the categroy.
--"mat_fun" can be string-format (like "Send2GY", "Bainsh", see Scl.Category_List), call Scl.OperateSelectedObjects to do the operation on the selected materials and set operation info due to the categroy.
--OR can be function-format, call mat_fun(selected_materials, e, tp, eg, ep, ev, re, r, rp) to do the operation on the selected materials.
--OR can be function-format, call mat_fun(selected_materials, e, tp, eg, ep, ev, re, r, rp) to do the operation on the selected materials.
--only after all the selected materials be operated successfully by "mat_fun", the fusion summon will be continued, so if you used function-format "mat_fun", PLZ noticed that you should return a boolean value to make this function to distinguish whether you have operated successfully (like return Duel.Destroy(g, REASON_MATERIAL + REASON_EFFECT + REASON_FUSION) == #g)
--only after all the selected materials be operated successfully by "mat_fun", the fusion summon will be continued, so if you used function-format "mat_fun", PLZ noticed that you should return a boolean value to make this function to distinguish whether you have operated successfully (like return Duel.Destroy(g, REASON_MATERIAL + REASON_EFFECT + REASON_FUSION) == #g)
--if you set the parama must_include_card (default = nil), means you must use that card as one of the fusion materials
--if you set the parama must_include_card (default = nil), means you must use that card as one of the fusion materials
...
@@ -2223,7 +2223,7 @@ function s.fusion_summon_operation(ex_op, fus_filter, mat_obj, mat_fun, must_inc
...
@@ -2223,7 +2223,7 @@ function s.fusion_summon_operation(ex_op, fus_filter, mat_obj, mat_fun, must_inc
local mat0 = Duel.SelectFusionMaterial(tp, tc, mat, must_include_card, chkf)
local mat0 = Duel.SelectFusionMaterial(tp, tc, mat, must_include_card, chkf)
return Scl.OperateSelectedObjects(current_sel_object, category_str, reason, 1, e, tp, eg, ep, ev, re, r, rp)()
end
end
end
end
--some functions like Scl.SelectAndOperateCards, you cannot transfer parama "e" and "tp" to s.operate_selected_objects, so you first need to use this function to get the current checking/solving effect "e".
--some functions like Scl.SelectAndOperateCards, you cannot transfer parama "e" and "tp" to Scl.OperateSelectedObjects, so you first need to use this function to get the current checking/solving effect "e".
--//return the current checking/solving effect.
--//return the current checking/solving effect.
function Scl.GetCurrentEffectInfo()
function Scl.GetCurrentEffectInfo()
if not Scl.Token_List[4392470] or not Scl.Token_List[4392470][1] then
if not Scl.Token_List[4392470] or not Scl.Token_List[4392470][1] then
...
@@ -3849,7 +3852,7 @@ end
...
@@ -3849,7 +3852,7 @@ end
--if chk == 0, this function won't do operation, but check whether it can be operated successfully.
--if chk == 0, this function won't do operation, but check whether it can be operated successfully.
-- ... is the parama of the operate function, if you don't set those parama(s), it will use the default parama (see Scl.Category_List)
-- ... is the parama of the operate function, if you don't set those parama(s), it will use the default parama (see Scl.Category_List)