Difference between revisions of "Scripting Tutorial: Summoned Creatures"

m
Minor change in the script(Make it more like an Oblivion Style Summon) and changed aggression from zero to five(reasoning mentioned next to the change)
imported>Qazaaq
m (added internal links, and standardized formatting)
imported>Chaptmc
m (Minor change in the script(Make it more like an Oblivion Style Summon) and changed aggression from zero to five(reasoning mentioned next to the change))
Line 56: Line 56:
[[Image:AIMenu01.jpg|568px|AIMenu01.jpg]]
[[Image:AIMenu01.jpg|568px|AIMenu01.jpg]]


* Set the “'''Aggression'''” to zero and delete any existing packages by selecting them in the list and pressing delete.
* Set the “'''Aggression'''” to five(so if a friend of the creature or the creature itself is attacked, it will attack the posing threat) and delete any existing packages by selecting them in the list and pressing delete.
* Open the '''Character->Packages''' menu and drag either the “'''''FollowPlayer'''''” package, or a custom one made in step 2 into the AI menu.
* Open the '''Character->Packages''' menu and drag either the “'''''FollowPlayer'''''” package, or a custom one made in step 2 into the AI menu.
* Click '''Save''' to close the menu. You can also close the '''Packages''' menu.
* Click '''Save''' to close the menu. You can also close the '''Packages''' menu.
Line 102: Line 102:
     if timer > 30    ;Creature is dead and fade timer passed
     if timer > 30    ;Creature is dead and fade timer passed
         ;Move our creature back to it's holding cell
         ;Move our creature back to it's holding cell
        SUMN.kill
         SUMN.moveto CreatureCageREF 0 0 10  
         SUMN.moveto CreatureCageREF 0 0 10  
         ;Reset our creature if dead
         ;Reset our creature if dead
Line 125: Line 126:
     if timer > 28 && playonce == 1
     if timer > 28 && playonce == 1
         ;Play effect for creature exit/death
         ;Play effect for creature exit/death
         SUMN.pms effectSummonMythicDawn 2            
         SUMN.kill            
         set playonce to 2
         set playonce to 2
     endif
     endif
Anonymous user