Psychic_Llamas
Wizard in the Making
Hi,
im working on the WH mod (a mod based on FfH script) to make new spells. and i have this idea that will require a new python script. i expect it shouldnt be too difficult to do for some of you more experienced code writers, but it is currently beyond me
this is what i want to do:
SPELL: SUMMON SPITE SWARM:
---Buff Spells
---AddPromotionType1-'Spite Swarm'. uses mechanism that FfH 'mutation' does in that it gives each unit in the stack a random promotion (all permanent) selected from the list below:
-A Blight of terrors (unit causes Fear)
-A befuddlement of Mischiefs (can cast "Mischiefs" spell which adds the 'stupidity' promotion to the nearest enemy unit.)
-A Murder of Spites (+1 poison attack bonus and +1 first strike)
-A Muster of malevolents (+1 magic and 1 +poison attack bonus)
-An Annoyance of Netlings (counters opponents first strike bonuses)
-A Resplendence of Luminescents (+2 magical attack damage)
-A Lamentation of Despairs (one use only, can cast "Despairs" spell. target unit takes leadership test, or lose 75% strength permanently. dosnt effect heroes.)
-A Cluster of Radiants (unit is more resistant to magic)
-A Pageant of Shrikes (unit can cast "shrikes' on target unit (selected from stack like assassins) which deals 30% poison damage.)
this means that the unit who casts this spell causes 1 of those promotions to be added to each unit in the casters stack (the promotion differes for each unit.)
so can someoene supply me with some python code that does this in the correct format?
im working on the WH mod (a mod based on FfH script) to make new spells. and i have this idea that will require a new python script. i expect it shouldnt be too difficult to do for some of you more experienced code writers, but it is currently beyond me

this is what i want to do:
SPELL: SUMMON SPITE SWARM:
---Buff Spells
---AddPromotionType1-'Spite Swarm'. uses mechanism that FfH 'mutation' does in that it gives each unit in the stack a random promotion (all permanent) selected from the list below:
-A Blight of terrors (unit causes Fear)
-A befuddlement of Mischiefs (can cast "Mischiefs" spell which adds the 'stupidity' promotion to the nearest enemy unit.)
-A Murder of Spites (+1 poison attack bonus and +1 first strike)
-A Muster of malevolents (+1 magic and 1 +poison attack bonus)
-An Annoyance of Netlings (counters opponents first strike bonuses)
-A Resplendence of Luminescents (+2 magical attack damage)
-A Lamentation of Despairs (one use only, can cast "Despairs" spell. target unit takes leadership test, or lose 75% strength permanently. dosnt effect heroes.)
-A Cluster of Radiants (unit is more resistant to magic)
-A Pageant of Shrikes (unit can cast "shrikes' on target unit (selected from stack like assassins) which deals 30% poison damage.)
this means that the unit who casts this spell causes 1 of those promotions to be added to each unit in the casters stack (the promotion differes for each unit.)
so can someoene supply me with some python code that does this in the correct format?