Echo Icehand Posted September 9, 2009 Share Posted September 9, 2009 I want to make a script to activate on player an 'cast on self' spell, which is not in player spell list. The objective is to have the effect activate during dailogue. Link to comment Share on other sites More sharing options...
thePhilanthropy Posted September 9, 2009 Share Posted September 9, 2009 I want to make a script to activate on player an 'cast on self' spell, which is not in player spell list. The objective is to have the effect activate during dailogue.just make the spell an ability with script effect. It's the safest method, even though it will be seen in your spell-list. In dialogue? What exactly do you need? Please elaborate. Link to comment Share on other sites More sharing options...
Echo Icehand Posted September 9, 2009 Author Share Posted September 9, 2009 what i mean is; Player talks to NPC, activates a dailogue option, e.g.: "heal me" and buff effect activates on player, eg: healing all the scripts that are, exit conversation to activate spell, i dont want to do that, i just want to activate effect. Link to comment Share on other sites More sharing options...
LoginToDownload Posted September 9, 2009 Share Posted September 9, 2009 The simplest method would be to make the heal spell On Self and make sure it's Immune to Silence and has no Casting Cost. Then, in the "Heal me" dialogue's script, you write player.cast MyHealingSpell player. The downside to that method is that the player would be performing the "Cast on self" animation. To get aroudn that, you could make the heal spell On Target, and create a Persistent, invisible, otherwise useless Activator somewhere to cast the spell. Then the dialogue's script would go:MyActivator.MoveTo player 0, 0, 20 MyActivator.cast MyHealingSpell player Link to comment Share on other sites More sharing options...
ipegot Posted September 9, 2009 Share Posted September 9, 2009 I find activators don't always cast. Link to comment Share on other sites More sharing options...
LoginToDownload Posted September 10, 2009 Share Posted September 10, 2009 In what situations? I've never had any problems, and have abused the system since I started modding. Link to comment Share on other sites More sharing options...
ipegot Posted September 10, 2009 Share Posted September 10, 2009 I'm not sure why, in open areas or more closed areas, like a sewer for instance, I've had activators cast sometimes and not others. For instance I have some scripted percentage (proc) based enchants and the activator wouldn't always cast when it was supposed to, which is that sometimes it would and other times it wouldn't and for no particular reason either way. Script was fine as an aside, I ended up just going with player.casting and sucking it up that the player casts the proc buff on themselves but it breaks immersion in my opinion. Link to comment Share on other sites More sharing options...
Pronam Posted September 10, 2009 Share Posted September 10, 2009 It could've been a huge number of possibilities. Like when you load a game when a script has run in it.Or you're in the same worldspace, or you've loaded any version with scripts at all.I find that particularly annoying when I'm testing something with different phases.The 2nd phase doesn't work, so when I reload after I've fixed it..it works..but at the final test with a total clean save, it refuses to work again. That will force you in the end to go through all phases every time, something you'd not prefer to. Link to comment Share on other sites More sharing options...
ipegot Posted September 10, 2009 Share Posted September 10, 2009 I kept it simple, it was one phase. I have yet to use the other 2 blocks for spell scripts. Either way, after many hours of trying to figure it out I just went with what worked every time. Link to comment Share on other sites More sharing options...
Echo Icehand Posted September 14, 2009 Author Share Posted September 14, 2009 Thank you, How would I modify this for potions instead because i dont want the any animations to activate. Please tell me exactly what i would write in the dailogue script window, because I have never scripted before. Link to comment Share on other sites More sharing options...
Recommended Posts