Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 40 41 [42]

Author Topic: [DFHack] Roses' Script Collection Updated 5/4/15  (Read 72638 times)

Boltgun

  • Bay Watcher
  • [UTTERANCES]
    • View Profile
    • Github
Re: [DFHack] Roses' Script Collection Updated 5/4/15
« Reply #615 on: May 19, 2015, 04:52:28 am »

Nice, I was looking for a way to remove the LUA_HOOK scripts but at the same time keep the ability to simulate a canceled reaction.

Also I was posting about how teleport works on 0.24 and I saw the much, much better version you did. Did I tell you how much time you save me each I need to develop something?
« Last Edit: May 19, 2015, 05:03:01 am by Boltgun »
Logged
Succubus civ : Vanilla - Masterwork
Let's plays: Youtube - Piratez - Twitch

Roses

  • Bay Watcher
    • View Profile
Re: [DFHack] Roses' Script Collection Updated 5/4/15
« Reply #616 on: June 29, 2015, 06:50:13 pm »

Ugh, so I am planning for a rather major release (here is a little taste)
Code: [Select]
# SPELLS
# All spells belong to one of 5 Spheres of magic.
# Each Sphere is broken into several different schools.
# Each Sphere has a characteristic trait which improves aspects of the spells
## ARCANE
# Arcane spells are based on Focus (DF FOCUS)
# Arcane spells specialize in manipulation of time, space, and the forces that govern the universe
### AEGIS
# Aegis spells specialize in protection and wards. Duration is increased by associated attribute
# No strengths or weaknesses
# Multiple wards/shields/armors can not be activated at the same time
#### ARCANE SHIELD
modtools/interaction-trigger -onAttackStr "casts Arcane Shield" -suppressAttack -command [ wrapper -unitSource \\ATTACKER_ID -unitTarget \\ATTACKER_ID \
-silence [ SILENCE_ARCANE SILENCE_ALL SILENCE_AEGIS ] -isyndrome [ MAGIC_SHIELD ] -value "300*source.focus/1000" -script \
[ spells/trigger -spell SPELL_ARCANE_AEGIS_ARCANE_SHIELD -source \\SOURCE -target \\TARGET -value [ \\VALUE_1 ] -experience 1 -cast_count 1 -description ] ]
#### ARCANE WEAPON
modtools/interaction-trigger -onAttackStr "casts Arcane Weapon" -suppressAttack -command [ wrapper -unitSource \\ATTACKER_ID -unitTarget \\ATTACKER_ID \
-silence [ SILENCE_ARCANE SILENCE_ALL SILENCE_AEGIS ] -isyndrome [ TRANSMUTE_ITEM ] -value "300*source.focus/1000" -script \
[ spells/trigger -spell SPELL_ARCANE_AEGIS_ARCANE_WEAPON -source \\SOURCE -target \\TARGET -value [ \\VALUE_1 ] -experience 1 -cast_count 1 -description ] ]
#### MAGIC SHELL
modtools/interaction-trigger -onAttackStr "casts Magic Shell" -suppressAttack -command [ wrapper -unitSource \\ATTACKER_ID -unitTarget \\ATTACKER_ID \
-silence [ SILENCE_ARCANE SILENCE_ALL SILENCE_AEGIS ] -isyndrome [ MAGIC_ARMOR ] -value "300*source.focus/1000" -script \
[ spells/trigger -spell SPELL_ARCANE_AEGIS_MAGIC_SHELL -source \\SOURCE -target \\TARGET -value [ \\VALUE_1 ] -experience 1 -cast_count 1 -description ] ]
#### PROTECTION FROM MELEE
modtools/interaction-trigger -onAttackStr "casts Protection from Melee" -suppressAttack -command [ wrapper -unitSource \\ATTACKER_ID -unitTarget \\ATTACKER_ID \
-silence [ SILENCE_ARCANE SILENCE_ALL SILENCE_AEGIS ] -isyndrome [ MAGIC_WARD ] -maxtargets 1 -target civ -radius 20,20,3 -exclude -value "300*source.focus/1000" -script \
[ spells/trigger -spell SPELL_ARCANE_AEGIS_PROTECTION_FROM_MELEE -source \\SOURCE -target \\TARGET -value [ \\VALUE_1 ] -experience 1 -cast_count 1 -description ] ]
#### PROTECTION FROM RANGE
modtools/interaction-trigger -onAttackStr "casts Protection from Range" -suppressAttack -command [ wrapper -unitSource \\ATTACKER_ID -unitTarget \\ATTACKER_ID \
-silence [ SILENCE_ARCANE SILENCE_ALL SILENCE_AEGIS ] -isyndrome [ MAGIC_WARD ] -maxtargets 1 -target civ -radius 20,20,3 -exclude -value "300*source.focus/1000" -script \
[ spells/trigger -spell SPELL_ARCANE_AEGIS_PROTECTION_FROM_RANGE -source \\SOURCE -target \\TARGET -value [ \\VALUE_1 ] -experience 1 -cast_count 1 -description ] ]
#### LEVEL 2
##### AIRWARD
modtools/interaction-trigger -onAttackStr "casts Airward" -suppressAttack -command [ wrapper -unitSource \\ATTACKER_ID -unitTarget \\ATTACKER_ID \
-silence [ SILENCE_ARCANE SILENCE_ALL SILENCE_AEGIS ] -isyndrome [ MAGIC_WARD ] -maxtargets 1 -target civ -radius 20,20,3 -exclude -value "400*source.focus/1000" -script \
[ spells/trigger -spell SPELL_ARCANE_AEGIS_AIRWARD -source \\SOURCE -target \\TARGET -value [ \\VALUE_1 ] -experience 2 -cast_count 2 -description ] ]
##### ARCANE ARMOR
modtools/interaction-trigger -onAttackStr "casts Arcane Armor" -suppressAttack -command [ wrapper -unitSource \\ATTACKER_ID -unitTarget \\ATTACKER_ID \
-silence [ SILENCE_ARCANE SILENCE_ALL SILENCE_AEGIS ] -isyndrome [ MAGIC_ARMOR ] -value "400*source.focus/1000" -script \
[ spells/trigger -spell SPELL_ARCANE_AEGIS_ARCANE_ARMOR -source \\SOURCE -target \\TARGET -value [ \\VALUE_1 ] -experience 2 -cast_count 2 -description ] ]
##### EARTHWARD
modtools/interaction-trigger -onAttackStr "casts Earthward" -suppressAttack -command [ wrapper -unitSource \\ATTACKER_ID -unitTarget \\ATTACKER_ID \
-silence [ SILENCE_ARCANE SILENCE_ALL SILENCE_AEGIS ] -isyndrome [ MAGIC_WARD ] -maxtargets 1 -target civ -radius 20,20,3 -exclude -value "400*source.focus/1000" -script \
[ spells/trigger -spell SPELL_ARCANE_AEGIS_EARTHWARD -source \\SOURCE -target \\TARGET -value [ \\VALUE_1 ] -experience 2 -cast_count 2 -description ] ]
##### FIREWARD
modtools/interaction-trigger -onAttackStr "casts Fireward" -suppressAttack -command [ wrapper -unitSource \\ATTACKER_ID -unitTarget \\ATTACKER_ID \
-silence [ SILENCE_ARCANE SILENCE_ALL SILENCE_AEGIS ] -isyndrome [ MAGIC_WARD ] -maxtargets 1 -target civ -radius 20,20,3 -exclude -value "400*source.focus/1000" -script \
[ spells/trigger -spell SPELL_ARCANE_AEGIS_FIREWARD -source \\SOURCE -target \\TARGET -value [ \\VALUE_1 ] -experience 2 -cast_count 2 -description ] ]
##### ICEWARD
modtools/interaction-trigger -onAttackStr "casts Iceward" -suppressAttack -command [ wrapper -unitSource \\ATTACKER_ID -unitTarget \\ATTACKER_ID \
-silence [ SILENCE_ARCANE SILENCE_ALL SILENCE_AEGIS ] -isyndrome [ MAGIC_WARD ] -maxtargets 1 -target civ -radius 20,20,3 -exclude -value "400*source.focus/1000" -script \
[ spells/trigger -spell SPELL_ARCANE_AEGIS_ICEWARD -source \\SOURCE -target \\TARGET -value [ \\VALUE_1 ] -experience 2 -cast_count 2 -description ] ]
##### METALWARD
modtools/interaction-trigger -onAttackStr "casts Metalward" -suppressAttack -command [ wrapper -unitSource \\ATTACKER_ID -unitTarget \\ATTACKER_ID \
-silence [ SILENCE_ARCANE SILENCE_ALL SILENCE_AEGIS ] -isyndrome [ MAGIC_WARD ] -maxtargets 1 -target civ -radius 20,20,3 -exclude -value "400*source.focus/1000" -script \
[ spells/trigger -spell SPELL_ARCANE_AEGIS_METALWARD -source \\SOURCE -target \\TARGET -value [ \\VALUE_1 ] -experience 2 -cast_count 2 -description ] ]
##### SMOKEWARD
modtools/interaction-trigger -onAttackStr "casts Smokeward" -suppressAttack -command [ wrapper -unitSource \\ATTACKER_ID -unitTarget \\ATTACKER_ID \
-silence [ SILENCE_ARCANE SILENCE_ALL SILENCE_AEGIS ] -isyndrome [ MAGIC_WARD ] -maxtargets 1 -target civ -radius 20,20,3 -exclude -value "400*source.focus/1000" -script \
[ spells/trigger -spell SPELL_ARCANE_AEGIS_SMOKEWARD -source \\SOURCE -target \\TARGET -value [ \\VALUE_1 ] -experience 2 -cast_count 2 -description ] ]
##### STORMWARD
modtools/interaction-trigger -onAttackStr "casts Stormward" -suppressAttack -command [ wrapper -unitSource \\ATTACKER_ID -unitTarget \\ATTACKER_ID \
-silence [ SILENCE_ARCANE SILENCE_ALL SILENCE_AEGIS ] -isyndrome [ MAGIC_WARD ] -maxtargets 1 -target civ -radius 20,20,3 -exclude -value "400*source.focus/1000" -script \
[ spells/trigger -spell SPELL_ARCANE_AEGIS_STORMWARD -source \\SOURCE -target \\TARGET -value [ \\VALUE_1 ] -experience 2 -cast_count 2 -description ] ]
##### WATERWARD
modtools/interaction-trigger -onAttackStr "casts Waterward" -suppressAttack -command [ wrapper -unitSource \\ATTACKER_ID -unitTarget \\ATTACKER_ID \
-silence [ SILENCE_ARCANE SILENCE_ALL SILENCE_AEGIS ] -isyndrome [ MAGIC_WARD ] -maxtargets 1 -target civ -radius 20,20,3 -exclude -value "400*source.focus/1000" -script \
[ spells/trigger -spell SPELL_ARCANE_AEGIS_WATERWARD -source \\SOURCE -target \\TARGET -value [ \\VALUE_1 ] -experience 2 -cast_count 2 -description ] ]
#### LEVEL 3
##### ARCANE FORTIFICATION
modtools/interaction-trigger -onAttackStr "casts Arcane Fortification" -suppressAttack -command [ wrapper -unitSource \\ATTACKER_ID -unitTarget \\ATTACKER_ID \
-silence [ SILENCE_ARCANE SILENCE_ALL SILENCE_AEGIS ] -isyndrome [ MAGIC_ARMOR ] -target civ -radius 5,5,3 -value "500*source.focus/1000" -script \
[ spells/trigger -spell SPELL_ARCANE_AEGIS_ARCANE_FORTIFICATION -source \\SOURCE -target \\TARGET -value [ \\VALUE_1 ] -experience 3 -cast_count 3 -description ] ]
##### ARCANE WALL
##### ARCANEWARD
modtools/interaction-trigger -onAttackStr "casts Arcaneward" -suppressAttack -command [ wrapper -unitSource \\ATTACKER_ID -unitTarget \\ATTACKER_ID \
-silence [ SILENCE_ARCANE SILENCE_ALL SILENCE_AEGIS ] -isyndrome [ MAGIC_WARD ] -maxtargets 1 -target civ -radius 20,20,3 -exclude -value "500*source.focus/1000" -script \
[ spells/trigger -spell SPELL_ARCANE_AEGIS_ARCANEWARD -source \\SOURCE -target \\TARGET -value [ \\VALUE_1 ] -experience 3 -cast_count 3 -description ] ]
##### DIVINEWARD
modtools/interaction-trigger -onAttackStr "casts Divineward" -suppressAttack -command [ wrapper -unitSource \\ATTACKER_ID -unitTarget \\ATTACKER_ID \
-silence [ SILENCE_ARCANE SILENCE_ALL SILENCE_AEGIS ] -isyndrome [ MAGIC_WARD ] -maxtargets 1 -target civ -radius 20,20,3 -exclude -value "500*source.focus/1000" -script \
[ spells/trigger -spell SPELL_ARCANE_AEGIS_DIVINEWARD -source \\SOURCE -target \\TARGET -value [ \\VALUE_1 ] -experience 3 -cast_count 3 -description ] ]
##### ELEMENTALWARD
modtools/interaction-trigger -onAttackStr "casts Elementalward" -suppressAttack -command [ wrapper -unitSource \\ATTACKER_ID -unitTarget \\ATTACKER_ID \
-silence [ SILENCE_ARCANE SILENCE_ALL SILENCE_AEGIS ] -isyndrome [ MAGIC_WARD ] -maxtargets 1 -target civ -radius 20,20,3 -exclude -value "500*source.focus/1000" -script \
[ spells/trigger -spell SPELL_ARCANE_AEGIS_ELEMENTALWARD -source \\SOURCE -target \\TARGET -value [ \\VALUE_1 ] -experience 3 -cast_count 3 -description ] ]
##### MENTALWARD
modtools/interaction-trigger -onAttackStr "casts Mentalward" -suppressAttack -command [ wrapper -unitSource \\ATTACKER_ID -unitTarget \\ATTACKER_ID \
-silence [ SILENCE_ARCANE SILENCE_ALL SILENCE_AEGIS ] -isyndrome [ MAGIC_WARD ] -maxtargets 1 -target civ -radius 20,20,3 -exclude -value "500*source.focus/1000" -script \
[ spells/trigger -spell SPELL_ARCANE_AEGIS_MENTALWARD -source \\SOURCE -target \\TARGET -value [ \\VALUE_1 ] -experience 3 -cast_count 3 -description ] ]
##### NATUREWARD
modtools/interaction-trigger -onAttackStr "casts Natureward" -suppressAttack -command [ wrapper -unitSource \\ATTACKER_ID -unitTarget \\ATTACKER_ID \
-silence [ SILENCE_ARCANE SILENCE_ALL SILENCE_AEGIS ] -isyndrome [ MAGIC_WARD ] -maxtargets 1 -target civ -radius 20,20,3 -exclude -value "500*source.focus/1000" -script \
[ spells/trigger -spell SPELL_ARCANE_AEGIS_NATUREWARD -source \\SOURCE -target \\TARGET -value [ \\VALUE_1 ] -experience 3 -cast_count 3 -description ] ]
##### RESIST MAGIC
modtools/interaction-trigger -onAttackStr "casts Resist Magic" -suppressAttack -command [ wrapper -unitSource \\ATTACKER_ID -unitTarget \\ATTACKER_ID \
-silence [ SILENCE_ARCANE SILENCE_ALL SILENCE_AEGIS ] -isyndrome [ MAGIC_WARD ] -maxtargets 1 -target civ -radius 20,20,3 -exclude -value "500*source.focus/1000" -script \
[ spells/trigger -spell SPELL_ARCANE_AEGIS_RESIST_MAGIC -source \\SOURCE -target \\TARGET -value [ \\VALUE_1 ] -experience 3 -cast_count 3 -description ] ]
##### WEAPON IMMUNITY
modtools/interaction-trigger -onAttackStr "casts Weapon Immunity" -suppressAttack -command [ wrapper -unitSource \\ATTACKER_ID -unitTarget \\ATTACKER_ID \
-silence [ SILENCE_ARCANE SILENCE_ALL SILENCE_AEGIS ] -isyndrome [ MAGIC_WARD ] -maxtargets 1 -target civ -radius 20,20,3 -exclude -value "500*source.focus/1000" -script \
[ spells/trigger -spell SPELL_ARCANE_AEGIS_WEAPON_IMMUNITY -source \\SOURCE -target \\TARGET -value [ \\VALUE_1 ] -experience 3 -cast_count 3 -description ] ]
#### LEVEL 4
##### IMPENETRABLE BARRIER
modtools/interaction-trigger -onAttackStr "casts Impenetrable Barrier" -suppressAttack -command [ wrapper -unitSource \\ATTACKER_ID -unitTarget \\ATTACKER_ID \
-silence [ SILENCE_ARCANE SILENCE_ALL SILENCE_AEGIS ] -isyndrome [ MAGIC_ARMOR ] -target civ -radius 10,10,3 -value "600*source.focus/1000" -script \
[ spells/trigger -spell SPELL_ARCANE_AEGIS_IMPENETRABLE_BARRIER -source \\SOURCE -target \\TARGET -value [ \\VALUE_1 ] -experience 4 -cast_count 4 -description ] ]
##### MAGIC IMMUNITY
modtools/interaction-trigger -onAttackStr "casts Magic Immunity" -suppressAttack -command [ wrapper -unitSource \\ATTACKER_ID -unitTarget \\ATTACKER_ID \
-silence [ SILENCE_ARCANE SILENCE_ALL SILENCE_AEGIS ] -isyndrome [ MAGIC_WARD ] -maxtargets 1 -target civ -radius 20,20,3 -exclude -value "600*source.focus/1000" -script \
[ spells/trigger -spell SPELL_ARCANE_AEGIS_MAGIC_IMMUNITY -source \\SOURCE -target \\TARGET -value [ \\VALUE_1 ] -experience 4 -cast_count 4 -description ] ]
### FORCE
# Force spells specialize in projectiles and moving things around. Strength is increased with associated attribute
# Weak against other arcane creatures
# Spells that propel units are affected by the units weight
#### LEVEL 1
##### ARCANE MISSILE
modtools/interaction-trigger -onAttackStr "casts Arcane Missile" -suppressAttack -command [ wrapper -unitSource \\ATTACKER_ID -unitTarget \\DEFENDER_ID \
-silence [ SILENCE_ARCANE SILENCE_ALL SILENCE_FORCE ] -reflect [ REFLECT_ARCANE REFLECT_FORCE REFLECT_ALL ] -value "1+source.focus/1000,(10+10*source.focus/500-10*target.willpower/1000)*(100-target.resistance.arcane)/100" -script \
[ spells/trigger -spell SPELL_ARCANE_FORCE_ARCANE_MISSLE -source \\SOURCE -target \\TARGET -value [ \\VALUE_1 \\VALUE_2 ] -experience 1 -cast_count 1 -description ] ]
##### ARCANE SURGE
modtools/interaction-trigger -onAttackStr "casts Arcane Surge" -suppressAttack -command [ wrapper -unitSource \\ATTACKER_ID -unitTarget \\DEFENDER_ID \
-silence [ SILENCE_ARCANE SILENCE_ALL SILENCE_FORCE ] -reflect [ REFLECT_ARCANE REFLECT_FORCE REFLECT_ALL ] -value "(10+10*source.focus/500-10*target.willpower/1000)*(100-target.resistance.arcane)/100" -script \
[ spells/trigger -spell SPELL_ARCANE_FORCE_ARCANE_SURGE -source \\SOURCE -target \\TARGET -value [ \\VALUE_1 ] -experience 1 -cast_count 1 -description ] ]
##### ATTRACT
modtools/interaction-trigger -onAttackStr "casts Attract" -suppressAttack -command [ wrapper -unitSource \\ATTACKER_ID -unitTarget \\DEFENDER_ID \
-silence [ SILENCE_ARCANE SILENCE_ALL SILENCE_FORCE ] -reflect [ REFLECT_ARCANE REFLECT_FORCE REFLECT_ALL ] -value "-4*source.focus/target.willpower*6000/target.weight*(100-target.resistance.arcane)/100" -script \
[ spells/trigger -spell SPELL_ARCANE_FORCE_ATTRACT -source \\SOURCE -target \\TARGET -value [ \\VALUE_1 ] -experience 1 -cast_count 1 -description ] ]
##### HOLD
modtools/interaction-trigger -onAttackStr "casts Hold" -suppressAttack -command [ wrapper -unitSource \\ATTACKER_ID -unitTarget \\DEFENDER_ID \
-silence [ SILENCE_ARCANE SILENCE_ALL SILENCE_FORCE ] -reflect [ REFLECT_ARCANE REFLECT_FORCE REFLECT_ALL ] -value "300*source.focus/target.willpower*(100-target.resistance.arcane)/100" -script \
[ spells/trigger -spell SPELL_ARCANE_FORCE_HOLD -source \\SOURCE -target \\TARGET -value [ \\VALUE_1 ] -experience 1 -cast_count 1 -description ] ]
##### REPEL
modtools/interaction-trigger -onAttackStr "casts Repel" -suppressAttack -command [ wrapper -unitSource \\ATTACKER_ID -unitTarget \\DEFENDER_ID \
-silence [ SILENCE_ARCANE SILENCE_ALL SILENCE_FORCE ] -reflect [ REFLECT_ARCANE REFLECT_FORCE REFLECT_ALL ] -value "4*source.focus/target.willpower*6000/target.weight*(100-target.resistance.arcane)/100" -script \
[ spells/trigger -spell SPELL_ARCANE_FORCE_REPEL -source \\SOURCE -target \\TARGET -value [ \\VALUE_1 ] -experience 1 -cast_count 1 -description ] ]
#### LEVEL 2
##### ARCANE BLAST
modtools/interaction-trigger -onAttackStr "casts Arcane Blast" -suppressAttack -command [ wrapper -unitSource \\ATTACKER_ID -unitTarget \\DEFENDER_ID \
-silence [ SILENCE_ARCANE SILENCE_ALL SILENCE_FORCE ] -reflect [ REFLECT_ARCANE REFLECT_FORCE REFLECT_ALL ] -value "(20+10*source.focus/500-5*target.willpower/1000)*(100-target.resistance.arcane)/100" -script \
[ spells/trigger -spell SPELL_ARCANE_FORCE_ARCANE_BLAST -source \\SOURCE -target \\TARGET -value [ \\VALUE_1 ] -experience 2 -cast_count 2 -description ] ]
##### ARCANE BURST
modtools/interaction-trigger -onAttackStr "casts Arcane Burst" -suppressAttack -command [ wrapper -unitSource \\ATTACKER_ID -unitTarget \\ATTACKER_ID \
-silence [ SILENCE_ARCANE SILENCE_ALL SILENCE_FORCE ] -reflect [ REFLECT_ARCANE REFLECT_FORCE REFLECT_ALL ] -radius 6,6,3 -target enemy -value "(100+10*source.focus/1000-5*target.willpower/1000)*(100-target.resistance.arcane)/100" -script \
[ spells/trigger -spell SPELL_ARCANE_FORCE_ARCANE_BURST -source \\SOURCE -target \\TARGET -value [ \\VALUE_1 ] -experience 2 -cast_count 2 -description ] ]
##### ARCANE EXPLOSION
modtools/interaction-trigger -onAttackStr "casts Arcane Explosion" -suppressAttack -command [ wrapper -unitSource \\ATTACKER_ID -unitTarget \\DEFENDER_ID \
-silence [ SILENCE_ARCANE SILENCE_ALL SILENCE_FORCE ] -reflect [ REFLECT_ARCANE REFLECT_FORCE REFLECT_ALL ] -value "2+source.focus/1000,(20+10*source.focus/500-5*target.willpower/1000)*(100-target.resistance.arcane)/100" -script \
[ spells/trigger -spell SPELL_ARCANE_FORCE_ARCANE_EXPLOSION -source \\SOURCE -target \\TARGET -value [ \\VALUE_1 \\VALUE_2 ] -experience 2 -cast_count 2 -description ] ]
##### ARCANE FURY
modtools/interaction-trigger -onAttackStr "casts Arcane Fury" -suppressAttack -command [ wrapper -unitSource \\ATTACKER_ID -unitTarget \\ATTACKER_ID \
-silence [ SILENCE_ARCANE SILENCE_ALL SILENCE_FORCE ] -value "400*source.focus/1000" -script \
[ spells/trigger -spell SPELL_ARCANE_FORCE_ARCANE_FURY -source \\SOURCE -target \\TARGET -value [ \\VALUE_1 ] -experience 2 -cast_count 2 -description ] ]
##### ARCANE SPEAR
modtools/interaction-trigger -onAttackStr "casts Arcane Spear" -suppressAttack -command [ wrapper -unitSource \\ATTACKER_ID -unitTarget \\DEFENDER_ID \
-silence [ SILENCE_ARCANE SILENCE_ALL SILENCE_FORCE ] -reflect [ REFLECT_ARCANE REFLECT_FORCE REFLECT_ALL ] -value "100*source.focus/1000,(20+10*source.focus/500-5*target.willpower/1000)*(100-target.resistance.arcane)/100" -script \
[ spells/trigger -spell SPELL_ARCANE_FORCE_ARCANE_SPEAR -source \\SOURCE -target \\TARGET -value [ \\VALUE_1 \\VALUE_2 ] -experience 2 -cast_count 2 -description ] ]
##### ARCANE VOLLEY
modtools/interaction-trigger -onAttackStr "casts Arcane Volley" -suppressAttack -command [ wrapper -unitSource \\ATTACKER_ID -unitTarget \\DEFENDER_ID \
-silence [ SILENCE_ARCANE SILENCE_ALL SILENCE_FORCE ] -reflect [ REFLECT_ARCANE REFLECT_FORCE REFLECT_ALL ] -value "5+source.focus/500,(20+10*source.focus/500-5*target.willpower/1000)*(100-target.resistance.arcane)/100" -script \
[ spells/trigger -spell SPELL_ARCANE_FORCE_ARCANE_VOLLEY -source \\SOURCE -target \\TARGET -value [ \\VALUE_1 \\VALUE_2 ] -experience 2 -cast_count 2 -description ] ]
##### BEND LIGHT
modtools/interaction-trigger -onAttackStr "casts Bend Light" -suppressAttack -command [ wrapper -unitSource \\ATTACKER_ID -unitTarget \\ATTACKER_ID \
-silence [ SILENCE_ARCANE SILENCE_ALL SILENCE_FORCE ] -reflect [ REFLECT_ARCANE REFLECT_FORCE REFLECT_ALL ] -radius 10,10,3 -target enemy -value "300*source.focus/target.willpower*(100-target.resistance.arcane)/100" -script \
[ spells/trigger -spell SPELL_ARCANE_FORCE_BEND_LIGHT -source \\SOURCE -target \\TARGET -value [ \\VALUE_1 ] -experience 2 -cast_count 2 -description ] ]
##### FLIP GRAVITY
modtools/interaction-trigger -onAttackStr "casts Flip Gravity" -suppressAttack -command [ wrapper -unitSource \\ATTACKER_ID -unitTarget \\ATTACKER_ID \
-silence [ SILENCE_ARCANE SILENCE_ALL SILENCE_FORCE ] -reflect [ REFLECT_ARCANE REFLECT_FORCE REFLECT_ALL ] -radius 10,10,3 -target enemy -value "-8*source.focus/target.willpower*6000/target.weight*(100-target.resistance.arcane)/100" -script \
[ spells/trigger -spell SPELL_ARCANE_FORCE_FLIP_GRAVITY -source \\SOURCE -target \\TARGET -value [ \\VALUE_1 ] -experience 2 -cast_count 2 -description ] ]
##### GRAVITY
modtools/interaction-trigger -onAttackStr "casts Gravity" -suppressAttack -command [ wrapper -unitSource \\ATTACKER_ID -unitTarget \\ATTACKER_ID \
-silence [ SILENCE_ARCANE SILENCE_ALL SILENCE_FORCE ] -reflect [ REFLECT_ARCANE REFLECT_FORCE REFLECT_ALL ] -radius 10,10,3 -target enemy -value "400*source.focus/target.willpower*(100-target.resistance.arcane)/100" -script \
[ spells/trigger -spell SPELL_ARCANE_FORCE_GRAVITY -source \\SOURCE -target \\TARGET -value [ \\VALUE_1 ] -experience 2 -cast_count 2 -description ] ]
##### LEVITATE
##### REPULSE
modtools/interaction-trigger -onAttackStr "casts Repulse" -suppressAttack -command [ wrapper -unitSource \\ATTACKER_ID -unitTarget \\ATTACKER_ID \
-silence [ SILENCE_ARCANE SILENCE_ALL SILENCE_FORCE ] -reflect [ REFLECT_ARCANE REFLECT_FORCE REFLECT_ALL ] -radius 4,4,1 -target enemy -value "8*source.focus/target.willpower*6000/target.weight*(100-target.resistance.arcane)/100" -script \
[ spells/trigger -spell SPELL_ARCANE_FORCE_REPULSE -source \\SOURCE -target \\TARGET -value [ \\VALUE_1 ] -experience 2 -cast_count 2 -description ] ]
#### LEVEL 3
##### ARCANE ERUPTION
modtools/interaction-trigger -onAttackStr "casts Arcane Eruption" -suppressAttack -command [ wrapper -unitSource \\ATTACKER_ID -unitTarget \\DEFENDER_ID \
-silence [ SILENCE_ARCANE SILENCE_ALL SILENCE_FORCE ] -reflect [ REFLECT_ARCANE REFLECT_FORCE REFLECT_ALL ] -plan 5x5_O_filled -value "100*source.focus/1000,(20+15*source.focus/500-5*target.willpower/1500)*(100-target.resistance.arcane)/100" -script \
[ spells/trigger -spell SPELL_ARCANE_FORCE_ARCANE_SPEAR -source \\SOURCE -target \\LOCATION -value [ \\VALUE_1 \\VALUE_2 ] -experience 3 -cast_count 3 -description ] ]
##### ARCANE ORB
modtools/interaction-trigger -onAttackStr "casts Arcane Orb" -suppressAttack -command [ wrapper -unitSource \\ATTACKER_ID -unitTarget \\ATTACKER_ID \
-silence [ SILENCE_ARCANE SILENCE_ALL SILENCE_FORCE SILENCE_SUMMON ] -value "50*source.focus/500" -script \
[ spells/trigger -spell SPELL_ARCANE_FORCE_ARCANE_ORB -source \\SOURCE -target \\LOCATION -value [ \\VALUE_1 ] -experience 3 -cast_count 3 -description ] ]
##### CRUSH
modtools/interaction-trigger -onAttackStr "casts Flip Gravity" -suppressAttack -command [ wrapper -unitSource \\ATTACKER_ID -unitTarget \\DEFENDER_ID \
-silence [ SILENCE_ARCANE SILENCE_ALL SILENCE_FORCE ] -reflect [ REFLECT_ARCANE REFLECT_FORCE REFLECT_ALL ] -value "10*source.focus/target.willpower*(100-target.resistance.arcane)/100" -script \
[ spells/trigger -spell SPELL_ARCANE_FORCE_FLIP_GRAVITY -source \\SOURCE -target \\TARGET -value [ \\VALUE_1 ] -experience 3 -cast_count 3 -description ] ]
##### ELEMENT
modtools/interaction-trigger -onAttackStr "casts Element" -suppressAttack -command [ wrapper -unitSource \\ATTACKER_ID -unitTarget \\DEFENDER_ID \
-silence [ SILENCE_ARCANE SILENCE_ALL SILENCE_FORCE ] -reflect [ REFLECT_ARCANE REFLECT_FORCE REFLECT_ALL ] -value "200*source.focus/1000,(20+15*source.focus/500-5*target.willpower/1500)*(100-target.resistance.arcane)/100" -script \
[ spells/trigger -spell SPELL_ARCANE_FORCE_ELEMENT -source \\SOURCE -target \\TARGET -value [ \\VALUE_1 \\VALUE_2 ] -experience 2 -cast_count 2 -description ] ]
##### PULSAR
modtools/interaction-trigger -onAttackStr "casts Pulsar" -suppressAttack -command [ wrapper -unitSource \\ATTACKER_ID -unitTarget \\ATTACKER_ID \
-silence [ SILENCE_ARCANE SILENCE_ALL SILENCE_FORCE SILENCE_SUMMON ] -value "50*source.focus/500" -script \
[ spells/trigger -spell SPELL_ARCANE_FORCE_PULSAR -source \\SOURCE -target \\LOCATION -value [ \\VALUE_1 ] -experience 3 -cast_count 3 -description ] ]
##### QUASAR
modtools/interaction-trigger -onAttackStr "casts Quasar" -suppressAttack -command [ wrapper -unitSource \\ATTACKER_ID -unitTarget \\ATTACKER_ID \
-silence [ SILENCE_ARCANE SILENCE_ALL SILENCE_FORCE SILENCE_SUMMON ] -value "50*source.focus/500" -script \
[ spells/trigger -spell SPELL_ARCANE_FORCE_QUASAR -source \\SOURCE -target \\LOCATION -value [ \\VALUE_1 ] -experience 3 -cast_count 3 -description ] ]
##### SHOCK WAVE
modtools/interaction-trigger -onAttackStr "casts Shock Wave" -suppressAttack -command [ wrapper -unitSource \\ATTACKER_ID -unitTarget \\DEFENDER_ID \
-silence [ SILENCE_ARCANE SILENCE_ALL SILENCE_FORCE ] -reflect [ REFLECT_ARCANE REFLECT_FORCE REFLECT_ALL ] -plan 3x8_I -target enemy -value "10*source.focus/target.willpower*6000/target.weight*(100-target.resistance.arcane)/100" -script \
[ spells/trigger -spell SPELL_ARCANE_FORCE_SHOCK_WAVE -source \\SOURCE -target \\TARGET -value [ \\VALUE_1 ] -experience 2 -cast_count 2 -description ] ]
#### LEVEL 4
##### BLACKHOLE
modtools/interaction-trigger -onAttackStr "casts Blackhole" -suppressAttack -command [ wrapper -unitSource \\ATTACKER_ID -unitTarget \\ATTACKER_ID \
-silence [ SILENCE_ARCANE SILENCE_ALL SILENCE_FORCE SILENCE_SUMMON ] -value "10*source.focus/100" -script \
[ spells/trigger -spell SPELL_ARCANE_FORCE_BLACKHOLE -source \\SOURCE -target \\LOCATION -value [ \\VALUE_1 ] -experience 4 -cast_count 4 -description ] ]

, and I am going through all my old scripts and think it might be time for some of them to get an overhaul. The problem is they were all just my own personal testing grounds that I kept adding to and now pretty much look awful. Not to mention, I feel like a lot of what they can do can be done in a better and ultimately faster way. So I'm not dead, but I am going to take a little longer and, instead of just polishing these turds I am going to start from scratch (relatively speaking)
Logged

Max™

  • Bay Watcher
  • [CULL:SQUARE]
    • View Profile
Re: [DFHack] Roses' Script Collection Updated 5/4/15
« Reply #617 on: June 29, 2015, 08:32:10 pm »

I get the feeling that a lot of those spell effects are going to be making use of your new wound/attack/momentum manipulation toys huh... that should be fun. :D
Logged
Engraved here is a rendition of an image of the Dwarf Fortress learning curve. All craftsdwarfship is of the highest quality. It depicts an obsidian overhang which menaces with spikes of obsidian and tears. Carved on the overhang is an image of Toady One and the players. The players are curled up in a fetal position. Toady One is laughing. The players are burning.
The VectorCurses+1 tileset strikes the square set and the severed part sails off in an arc!

Roses

  • Bay Watcher
    • View Profile
Re: [DFHack] Roses' Script Collection Updated 5/4/15
« Reply #618 on: June 29, 2015, 09:45:04 pm »

Indeed they are, pretty much everything is going to revolve around units having, not only attributes, like strength and agility, but also resistances against all sorts of attacks, both physical and magical (if possible I will also include a save based system like D&D has, so a spell like DEATH will kill the unit if they don't pass their save, but if they do pass their save it will just do damage instead). So that you can have a unit that is virtually imprevious to physical attacks, but is weak against magic, and vice-versa. For example
Code: [Select]
##### ARCANE MISSILE
modtools/interaction-trigger -onAttackStr "casts Arcane Missile" -suppressAttack -command [ wrapper -unitSource \\ATTACKER_ID -unitTarget \\DEFENDER_ID \
-silence [ SILENCE_ARCANE SILENCE_ALL SILENCE_FORCE ] -reflect [ REFLECT_ARCANE REFLECT_FORCE REFLECT_ALL ] -value "1+source.focus/1000,(10+10*source.focus/500-10*target.willpower/1000)*(100-target.resistance.arcane)/100" -script \
[ spells/trigger -spell SPELL_ARCANE_FORCE_ARCANE_MISSLE -source \\SOURCE -target \\TARGET -value [ \\VALUE_1 \\VALUE_2 ] -experience 1 -cast_count 1 -description ] ]
Arcane spells use focus as their main attribute. The higher the focus of the caster the more missiles are fired, and the higher their chance to hit. But the targets willpower and arcane resistance subtracts from the chance to hit. Meaning with a high enough arcane resistance you are completely safe from the spell. Similarly each sphere of magic has a corresponding mental attribute, and each physical skill has a corresponding physical attribute. All of which play in to how powerful their attacks are. And each armor piece gives a set resistance (for example a mail armor piece might give good slashing resistance but poor piercing resistance) so that the choices you make for your army is more important than just if SHEAR_YIELD is greater it is better.
Logged

Max™

  • Bay Watcher
  • [CULL:SQUARE]
    • View Profile
Re: [DFHack] Roses' Script Collection Updated 5/4/15
« Reply #619 on: June 30, 2015, 12:38:18 am »

Neat concept tying it in with the armor like that.

Does weaponry influence it too?
Logged
Engraved here is a rendition of an image of the Dwarf Fortress learning curve. All craftsdwarfship is of the highest quality. It depicts an obsidian overhang which menaces with spikes of obsidian and tears. Carved on the overhang is an image of Toady One and the players. The players are curled up in a fetal position. Toady One is laughing. The players are burning.
The VectorCurses+1 tileset strikes the square set and the severed part sails off in an arc!

vjmdhzgr

  • Bay Watcher
  • Hehehe
    • View Profile
Re: [DFHack] Roses' Script Collection Updated 5/4/15
« Reply #620 on: June 30, 2015, 06:41:24 am »

I think that this mod sounds amazing and have been waiting for it since you announced it in this thread a while ago. I don't have any meaningful questions to ask though.
Logged
Its a feature. Impregnating booze is a planned tech tree for dwarves and this is a sneak peek at it.
Unless you're past reproductive age. Then you're pretty much an extension of your kids' genitalia

Roses

  • Bay Watcher
    • View Profile
Re: [DFHack] Roses' Script Collection Updated 5/4/15
« Reply #621 on: June 30, 2015, 12:37:51 pm »

Neat concept tying it in with the armor like that.

Does weaponry influence it too?

Yep, weaponry will have a couple different effects. For instance, if you are a spell caster you are going to want to use a staff/wand/spell caster weapon for stronger spells. And if you are using an axe you will have different abilities than if you are using a sword or a hammer (you can't cleave with a hammer etc...).
Logged

Max™

  • Bay Watcher
  • [CULL:SQUARE]
    • View Profile
Re: [DFHack] Roses' Script Collection Updated 5/4/15
« Reply #622 on: June 30, 2015, 07:03:28 pm »

Nice.
Logged
Engraved here is a rendition of an image of the Dwarf Fortress learning curve. All craftsdwarfship is of the highest quality. It depicts an obsidian overhang which menaces with spikes of obsidian and tears. Carved on the overhang is an image of Toady One and the players. The players are curled up in a fetal position. Toady One is laughing. The players are burning.
The VectorCurses+1 tileset strikes the square set and the severed part sails off in an arc!

jaw2233

  • Bay Watcher
  • forgetting which switch does what since *BLAM* ow!
    • View Profile
Re: [DFHack] Roses' Script Collection Updated 5/4/15
« Reply #623 on: August 13, 2015, 09:29:09 am »

i'm sorry but i don't quite understand how to use these commands. could someone explain?
Logged
I sincerely apologize for whatever happened above this.
Pages: 1 ... 40 41 [42]