New to forums, and modding. Would appreciate guidance.

Post » Sat Jun 23, 2012 7:03 am

Sorry for the long post.
(Skip most if you want.)
Hello all. I joined these forums just tonight, and am pretty excited to be apart of a community that loves the same great games I do. (Morrowind for the win) I would like to get to know you all, and share information about the game, mostly the Construction Set. I am very new to modding, as I have just in the last few days learned very little about scripting and NPC making/making. I have big BIG plans, and ideas for the construction set, but am just toying with it to get a feel for everything.

To begin, I have little desire to make mods for the masses at the moment. I have some idea of how the CS works, and have tweaked mods that I love to play here and there, for example: Changing Playable Scamp race to nonbeast race (Big whoop) and heighth to match Scamp Lord mod's Scamp companion, and adding a vampire head to the scamp race (Just regular scamp head) I've moved some of Dave Humphry's furniture mod's houses around do to clipping in coexistence with Morrowind Rebirth. Just to name a little.

Most of my interest lies with vampire related mods. I love Vampire Embrace, and all of Carnithus' equipment mods, and I loved the idea of Bloodlines, although I can't really get it to work (Missing dialog) but I digress. I love the furniture mods, and I have a few, so I decided to make an empty tomb for my vampire scamp. I did so, and it's pretty nice if I do say so myself. Now to the questions.

I have looked through a few Scripting tutorials online, and have downloaded Morrowind Scripting for Dummies, I believe v.9. As well as The Script Library (Not sure by who) all which has helped.

I did the "My first script" tutorial with the riddle chest from Scripting for dummies and decided to go a step farther and create a companion (Just for experience)

What I've managed to do is create the NPC called Blood Runner and created a class for him (Also called Blood Runner, whodda thunk it?) and have placed him in my empty tomb, and created a short script for him that I am pretty proud of. I couldn't find any examples that were laid out for me like the riddle chest, so I used the bits of info that I gathered from each tutorial, and then things started to click.

The script basically does this. When you enter the tomb, and walk down the stairs, he's walking around. When you get close enough, and he detects you it causes a ForceGreeting saying that you don't belong there, closes interaction and begins a fight. After you get him below <=30 health he stops the fight and a message box opens with Blood Runner apologizing and asking to join you, if you say no fight continues if you say yes, message box opens with "The vampire pledges his devotion" and companion is set to True.

All of that works perfect. The only problem is with the greeting. I linked the greeting to Blood_Runner (My NPC's ID) and so it works right. The issue is when you talk to him after he joins you. It gives me the same "Get out of my tomb, you bastard!" greeting and then combat starts again. I can't for the life of me understand the dialog section of Scripting for Dummies and am having an issue figuring out how to make him use a different greeting. On the bright side, even though dialog is closed due to the "Goodbye" script command, the Companion Share button is present. So my script does work!!

Although I haven't added a follow script yet, so he kind of walks around and stands there and walks around still. So everything I did with my script works great! I will include it at the end for any tips, or advice on revising, shortening it or just short cuts.

So my real question is about dialog. Does anyone know of a tutorial out there on dialog that focuses on dialog, or dumbs things down a bit for newbies like me? Or if anyone would be willing to be bothered, and have their brain picked by me that would be helpful as well. :)

Here's my Blood Runner Companion Script.


Begin Blood_Runnerscript
If ( MenuMode= 1)
return
endif
Short DoOnce
Short companion
Short MakeFriends
Short Button

if ( GetDistance Player <= 1002)
if (GetDetected Player ==1 )
if (DoOnce ==0)
ForceGreeting
set DoOnce to 1
endif
endif
endif

If ( GetHealth <=30 )
If ( DoOnce==1 )
StopCombat
MessageBox "Stop! Wait, you're strong and cunning. Maybe I've misjudged you. Please, allow me to join you.", "Yes.", "No."
Set DoOnce to 2
StopCombat
endif
endif
If ( DoOnce==2 )
Set Button to GetButtonPressed
if ( Button==-1 )
Return
elseif ( Button==0 )
Set companion to 1
MessageBox "Thank you. You will not regret this, Master.", "I hope not."
Set DoOnce to 3
Else
MessageBox "Then die!"
StartCombat Player
endif
endif
If ( DoOnce==3 )
Set Button to GetButtonPressed
if ( Button==-1 )
Return
else
MessageBox "The vampire pledges his undaying devotion to you."
Set DoOnce to 4
endif
endif

End
User avatar
Makenna Nomad
 
Posts: 3391
Joined: Tue Aug 29, 2006 10:05 pm

Post » Fri Jun 22, 2012 11:35 pm

OH! Forgot to ask. I can't figure out how to make Blood Runner the NPC himself, a vampire. Do I have to add disease? Or with a script add vamparism?
User avatar
Lynne Hinton
 
Posts: 3388
Joined: Wed Nov 15, 2006 4:24 am

Post » Sat Jun 23, 2012 9:36 am

For dialog, I suggest a http://www.wolflore.net/viewtopic.php?f=22&t=1394 I wrote. It's very indepth, covering just about every aspect of dialog (I didn't touch the voice or admire tabs because I never delved into them). I wrote it because I wasn't happy with the incompleteness I found in other tutorials. When I started writing dialog, I had to ask a lot of questions and figure stuff out on my own.

As for the vampire NPC, you need to add certain spells to him via his script. The done == 0 tells the script to only add these spells once. You can put this at the very bottom, but make sure you declare done first. Click on the spellmaking tab to see what the different vampire spells do. You can also make your own if you don't want your NPC associated with a particular clan.

if ( done == 0 )     AddSpell, "Vampire Blood Aundae" ;this is the blood disease     AddSpell, "Vampire Attributes"     AddSpell, "Vampire Skills"     AddSpell, "Vampire Immunities"     AddSpell, "Vampire Sun Damage"     AddSpell, "Vampire Touch"     AddSpell, "Vampire Aundae Specials"     ModRestoration 75     set done to 1endif

Also, in regards to your script, I would put the declaration statements at the very top underneath your Begin statement. Declarations are the short, long, and float statements. Also, I would get into the habit of using indents between if/endif statements. That way it's easier to see what's happening in an if block at a glance. To post those indents here, use the [ code ][ /code ] BBCode without the spaces around your scripts.

If you have any questions about my tutorial, feel free to ask. I'm usually one various times during the day and will answer when I can. Good luck.
User avatar
Angelina Mayo
 
Posts: 3427
Joined: Wed Jan 24, 2007 4:58 am

Post » Sat Jun 23, 2012 5:27 am

Thank you for your help, I appreciate it! I'm checking out you tutorial now.

I just copied and pasted the script from my CS, I guess I should review the post next time. I found out fast that indents can make your life easier.

Again, I thank you for your help.
User avatar
Melis Hristina
 
Posts: 3509
Joined: Sat Jun 17, 2006 10:36 pm

Post » Sat Jun 23, 2012 9:01 am

Anytime. I was thinking about the vampire spells, and you *might* be able to just drag them onto your NPC without needing to add them via a script. The vampire scripts add them, so don't quote me on that. As for the different clans, not assigning your NPC a vampire faction(clan) should prevent any issues with a player of a different clan interacting with it.
User avatar
zoe
 
Posts: 3298
Joined: Sun Nov 12, 2006 1:09 pm

Post » Sat Jun 23, 2012 8:58 am

Yeah, this is just for practice, and testing my scripting/dialog skills. The clan thing is important though, I can make up my own clan? How would I go about that?
User avatar
adam holden
 
Posts: 3339
Joined: Tue Jun 19, 2007 9:34 pm

Post » Sat Jun 23, 2012 7:32 am

create a faction, then an event that usescertain people to make youhead of your faction, along with random characters that have been multi scripted to where you can ask them to join your clan...
User avatar
Hannah Barnard
 
Posts: 3421
Joined: Fri Feb 09, 2007 9:42 am


Return to III - Morrowind