Summon spell for a custom horse actor not working

Post » Mon Jun 18, 2012 10:50 pm

I made a custom horse and a summon spell for it. For some reason, nothing happens when I use the spell, though.
Anyone got any idea?
User avatar
ladyflames
 
Posts: 3355
Joined: Sat Nov 25, 2006 9:45 am

Post » Mon Jun 18, 2012 12:49 pm

Bump!
Anyone got any luck on summoning horses?
I'm suspecting it might need Papyrus help, but I'm absolutely illiterate in coding :(
User avatar
Catharine Krupinski
 
Posts: 3377
Joined: Sun Aug 12, 2007 3:39 pm

Post » Mon Jun 18, 2012 11:59 pm

Perhaps if you described the procedure you used, we could see where it's going wrong?
User avatar
Tracy Byworth
 
Posts: 3403
Joined: Sun Jul 02, 2006 10:09 pm

Post » Tue Jun 19, 2012 4:23 am

What if I uploaded the ESP?
User avatar
Skivs
 
Posts: 3550
Joined: Sat Dec 01, 2007 10:06 pm

Post » Mon Jun 18, 2012 9:20 pm

Uhmm, the code should be sufficient
User avatar
Manuela Ribeiro Pereira
 
Posts: 3423
Joined: Fri Nov 17, 2006 10:24 pm

Post » Mon Jun 18, 2012 10:58 pm

What code? I don't know how to code anything, including Papyrus.
I've done all this just with regular CK.
User avatar
Marine x
 
Posts: 3327
Joined: Thu Mar 29, 2007 4:54 am

Post » Tue Jun 19, 2012 3:05 am

Make a copy of any spell, then make a copy of any MagicEffect. Get rid of the parts of your spell copy you don't want (LIke if it's a fireball, the big boom), add a script to the Magic Effect copy with these lines in it (in addition to the automatically generated header):

Event OnEffectStart (Actor Target,Actor Caster)
player.placeatme(Game.Getform(0x00068D07),1,false,false)
EndEvent

Place the effect in the effect list of the spell, and replace the " 0x00068D07" with "0x" and it should work.

Works best if the spell is a "Self cast" like a buff, since OnEffectStart requires a caster and a target
User avatar
Jessica Colville
 
Posts: 3349
Joined: Wed Oct 18, 2006 6:53 pm

Post » Mon Jun 18, 2012 1:22 pm

You shouldn't use http://www.creationkit.com/GetForm_-_Game like that. In fact, I don't think you should ever need to use that function.

Instead, set up a property (its type should be derived from http://www.creationkit.com/Form_Script, but not an http://www.creationkit.com/ObjectReference_Script or http://www.creationkit.com/Actor_Script and assign the appropriate value to it through the Creation Kit, then pass your property to http://www.creationkit.com/PlaceAtMe_-_ObjectReference:
Game.GetPlayer().PlaceAtMe(MyProperty)

Cipscis
User avatar
Andres Lechuga
 
Posts: 3406
Joined: Sun Aug 12, 2007 8:47 pm

Post » Mon Jun 18, 2012 7:24 pm

You shouldn't use http://www.creationkit.com/GetForm_-_Game like that. In fact, I don't think you should ever need to use that function.

Instead, set up a property (its type should be derived from http://www.creationkit.com/Form_Script, but not an http://www.creationkit.com/ObjectReference_Script or http://www.creationkit.com/Actor_Script and assign the appropriate value to it through the Creation Kit, then pass your property to http://www.creationkit.com/PlaceAtMe_-_ObjectReference:
Game.GetPlayer().PlaceAtMe(MyProperty)

Cipscis

Meh, It's the easiest way I could think of to get it to work without digging deep into coding with a total coding noob.

Even I, as a full fledged programmer, have been having trouble, as you no doubt have seen with my various problems with "WTF? Variables don't store values between calls?"
User avatar
aisha jamil
 
Posts: 3436
Joined: Sun Jul 02, 2006 11:54 am

Post » Mon Jun 18, 2012 2:25 pm

Redwood Elf, it didn't work. :(
I'm so frustrated with this I'm about to give up.
User avatar
Angus Poole
 
Posts: 3594
Joined: Fri Aug 03, 2007 9:04 pm

Post » Tue Jun 19, 2012 12:30 am

Oops...replace "player" in the above example with "Caster", sorry.
User avatar
Laura-Jayne Lee
 
Posts: 3474
Joined: Sun Jul 02, 2006 4:35 pm


Return to V - Skyrim