NecrosFione Posted May 26, 2012 Share Posted May 26, 2012 Hi modders out there, is it at all possible to skript an event to happen only if the player character has a specific name? Like, say, an NPC called Romeo will only offer to marry the pc if th pc's name is Juliet (stupid example, but you get the idea). If the pc's name is, like, Mary, he'll say something different or not talk at all. I'd be grateful for any advice, I'm an absolute noob when it comes to modding.Thanks! Link to comment Share on other sites More sharing options...
David Brasher Posted May 26, 2012 Share Posted May 26, 2012 (edited) If there is only ever one Romeo NPC and one Juliet NPC in the game, then it should be easy to do. Like with your dialog info conditions you could have something like: RUN ON TARGET If GetIsID Romeo == 1 AND (Where Romeo = the FormID of the actor the line is to be said to.) This tutorial series introduces you to the basics of adding dialog to the game: Quest Tutorial Series EDIT: Oops. I read your post wrong wrong. In my mind I was thinking about NPCs. Not the player character. Edited May 26, 2012 by David Brasher Link to comment Share on other sites More sharing options...
gasti89 Posted May 26, 2012 Share Posted May 26, 2012 The player can't have the ID "Romeo" or whatever. His ID is "player" Link to comment Share on other sites More sharing options...
fg109 Posted May 26, 2012 Share Posted May 26, 2012 SKSE has a GetName function. You can have a script check that, then set a global which would condition the NPC's dialogue. No real way to do it with the vanilla functions though. The only place text replacement is used are messages, books, and topic titles. There's no way to run a comparison on them. Link to comment Share on other sites More sharing options...
Recommended Posts