Hello Everyone
I found a mechanic that I did not see used anywhere (I could be blind, please correct me), and would like to broadcast it / ask what neat spells you can think of using that.
The point is to have the leggings / loopback spell node fire less often, but with more potency / higher PSI cost (without using all the PSI ofc)
It is quite easy: you just need to use two spell (two regular spell node in the leggings or two loopcast spell node spells in the wand), with the Positive one inserted just before the Negative one.
In the Positive one, use loopcast index / caster psi energy / success count / ..., and manage to output 0 when you do not want to cast, and positive when you want to cast, then:
Make it so that a Trick: spin chamber with that as input, followed by a Trick: delay (10 tick delay work well on loopcast), followed by a Trick: spin chamber with the negated input are run in that order.
In the negative one, put the spell you want to be cast.
That way, the spell cost is effectively used only whenever you cast the spell.
Here is an example spell which explode the nearest enemy whenever your psi energy is at or above 4950 (and there is an enemy to explode)
Postive:
{modsRequired:[{modName:"psi",modVersion:"2.0.0"}],spellList:[{data:{constantValue:"7",key:"psi:constant_number"},x:1,y:6},{data:{key:"psi:trick_spin_chamber",params:{_number:4}},x:2,y:4},{data:{constantValue:"-1",key:"psi:constant_number"},x:2,y:5},{data:{key:"psi:trick_delay",params:{_time:3}},x:2,y:6},{data:{key:"psi:operator_list_size",params:{_list:4}},x:3,y:3},{data:{key:"psi:operator_multiply",params:{_number1:4,_number2:1,_number3:0}},x:3,y:4},{data:{key:"psi:operator_multiply",params:{_number1:1,_number2:3,_number3:0}},x:3,y:5},{data:{key:"psi:trick_spin_chamber",params:{_number:1}},x:3,y:6},{data:{constantValue:"35",key:"psi:constant_number"},x:4,y:2},{data:{key:"psi:selector_nearby_enemies",params:{_position:4,_radius:1}},x:4,y:3},{data:{key:"psi:operator_integer_divide",params:{_number1:4,_number2:2,_number3:0}},x:4,y:4},{data:{constantValue:"4950",key:"psi:constant_number"},x:4,y:5},{data:{key:"psi:selector_caster"},x:5,y:2},{data:{key:"psi:operator_entity_position",params:{_target:1}},x:5,y:3},{data:{key:"psi:selector_caster_energy"},x:5,y:4}],spellName:"Positive",uuidLeast:-8767363029853377476L,uuidMost:8836785677722079014L,validSpell:1b}
Negative:
{modsRequired:[{modName:"psi",modVersion:"2.0.0"}],spellList:[{data:{key:"psi:error_suppressor"},x:4,y:7},{data:{key:"psi:selector_caster"},x:5,y:4},{data:{key:"psi:operator_entity_position",params:{_target:1}},x:5,y:5},{data:{key:"psi:operator_closest_to_point",params:{_position:1,_target:4}},x:5,y:6},{data:{key:"psi:operator_entity_position",params:{_target:1}},x:5,y:7},{data:{constantValue:"35",key:"psi:constant_number"},x:6,y:4},{data:{key:"psi:selector_nearby_enemies",params:{_position:3,_radius:1}},x:6,y:5},{data:{key:"psi:connector",params:{_target:1}},x:6,y:6},{data:{key:"psi:trick_explode",params:{_position:3,_power:4}},x:6,y:7},{data:{constantValue:"2",key:"psi:constant_number"},x:7,y:7}],spellName:"Negative",uuidLeast:-5057161078575564642L,uuidMost:346343437088803126L,validSpell:1b}
I believe it could make for some quite powerful combination, please let me know!