reelo2228 Posted February 11, 2012 Share Posted February 11, 2012 Hey! i really suck at scripting, so i need ur helps!I want to make a summon spell that summons.. lets say a cabbage, on the targeted location, so i set a spell that runs script and tried to write one...I read the tutorials and saw some commands like "PlaceAtMe" and stuff. but how do i write it in the papyrus script? :( Link to comment Share on other sites More sharing options...
Valor958 Posted February 11, 2012 Share Posted February 11, 2012 BUMP as this is something that could benefit a mod idea I have for a new destruction type spell. I've been trying to think how to make it work and this would actually be great, but I suck at this scripting too for now. Not trying to hijack the thread, just didn't want to make a new one when i share the request. Any help is greatly appreciated and I have Vent and TS for anyone willing to do a verbal walkthrough.Anything I get info on i'll convey as well to anyone interested if i get the info first. Link to comment Share on other sites More sharing options...
reelo2228 Posted February 11, 2012 Author Share Posted February 11, 2012 (edited) I'll thank u in advance then! ActorBase Property NPC Auto Event OnEffectFinish(Actor Target, Actor Caster) target.PlaceAtMe (NPC) EndEvent here is a script i wrote, it got compiled successfully but when tried ingame, nothing happened :(I think the main problem i have is not knowing how to list or specify the specific Actor that i wish to spawn... if i get that part ryt, then i think the rest would be solved... Also, in the Spell menu by "Effect Archetype" there is a "Spawn scripted Ref".But i don't know how to specify that Ref and how do i write it in the Papyrus... Edited February 11, 2012 by reelo2228 Link to comment Share on other sites More sharing options...
reelo2228 Posted February 12, 2012 Author Share Posted February 12, 2012 no one? Link to comment Share on other sites More sharing options...
Elec0 Posted February 12, 2012 Share Posted February 12, 2012 On 2/11/2012 at 6:07 PM, reelo2228 said: I'll thank u in advance then! ActorBase Property NPC Auto Event OnEffectFinish(Actor Target, Actor Caster) target.PlaceAtMe (NPC) EndEvent here is a script i wrote, it got compiled successfully but when tried ingame, nothing happened :(I think the main problem i have is not knowing how to list or specify the specific Actor that i wish to spawn... if i get that part ryt, then i think the rest would be solved... Also, in the Spell menu by "Effect Archetype" there is a "Spawn scripted Ref".But i don't know how to specify that Ref and how do i write it in the Papyrus... Have you made sure you defined NPC to an NPC base, and not a reference? Also, be careful when spawning new NPCs, make sure they're generic and not specific, as bad things could happen.I'm not sure how case-sensitive Papyrus is, but you define Actor Target in the OnEffectFinish line, and use target.PlaceAtMe.If that still doesn't work, you might try making a dummy cell and placing all the NPCs you want to put into your script there, then using an ObjectReference and PlaceAtMe to make a copy of them from the dummy cell. That should work, I think. Link to comment Share on other sites More sharing options...
reelo2228 Posted February 12, 2012 Author Share Posted February 12, 2012 On 2/12/2012 at 8:26 AM, Elec0 said: On 2/11/2012 at 6:07 PM, reelo2228 said: I'll thank u in advance then! ActorBase Property NPC Auto Event OnEffectFinish(Actor Target, Actor Caster) target.PlaceAtMe (NPC) EndEvent here is a script i wrote, it got compiled successfully but when tried ingame, nothing happened :(I think the main problem i have is not knowing how to list or specify the specific Actor that i wish to spawn... if i get that part ryt, then i think the rest would be solved... Also, in the Spell menu by "Effect Archetype" there is a "Spawn scripted Ref".But i don't know how to specify that Ref and how do i write it in the Papyrus... Have you made sure you defined NPC to an NPC base, and not a reference? Also, be careful when spawning new NPCs, make sure they're generic and not specific, as bad things could happen.I'm not sure how case-sensitive Papyrus is, but you define Actor Target in the OnEffectFinish line, and use target.PlaceAtMe.If that still doesn't work, you might try making a dummy cell and placing all the NPCs you want to put into your script there, then using an ObjectReference and PlaceAtMe to make a copy of them from the dummy cell. That should work, I think. That's the point, i don't know how to define something to a base or otherwise anything else... i tried to copy paste scripts in the Ckit i find that "might" seem like wht it does, so i'm uttely cluelss as to wht to type in the script.. Link to comment Share on other sites More sharing options...
Recommended Posts