New to scripting

Post » Tue Mar 15, 2011 12:41 am

Hey guys,

Well I'm a newb. Simple. I've only been working with the CS for the last week or so and I've mastered the basics such as NPC creation and creating doors etc... All the usual stuff. However my first mod, which is going to be a companion set for CM Partners, is going to require me to script for the first time. You see I want to add a short quest. One that merely completes when all four of the companions have been recruited. Also, I wanted to give these companions semi-personalities. For example (I have no idea if this is possible) I would like one of them to have a certain dislike to Imperial Legion faction members, not so much so that they start killing each other on sight but just enough so that there is the chance they might start fighting (Something like 5% would be good) and another to have the effect of civilians etc not wanting to be near him. So yeah, I need help. I don't want to sound like I'm begging and I don't want to cause hassle to anyone but the GameBryo engine is so much different from others I've worked with such as CryEngine 2. So ANY help big or small would be appreciated. I'm more looking for a partner to help me out and do the scripting side of things while I focus on the stuff I've just got used to like aesthetics so I'll elaborate more if someone does have the time and patience to help me.

Thanks,

Spec Kay
User avatar
CRuzIta LUVz grlz
 
Posts: 3388
Joined: Fri Aug 24, 2007 11:44 am

Post » Mon Mar 14, 2011 7:22 pm

As for the personalities you mentioned, you can add that single actor to their own faction, and give that faction a small negative mulitplier against all legion factions, and vice versa. Then, depending on their agression, there is a chance they will attack them on sight

As for the quest scripting, I suggest you read the tutorial on the CS Wiki or TES Alliance. Personally, I'd do something like

Add a topic to the specific followers, when a certian option is selected ("Yes, I want you to follow me, ect"), SetStage to a certian quest stage (for example, 10). Then, that actor would have a follow AI package with a condition that a quest stage would have to be completed for that package to run. So the condition would be GetStageDone QuestNameHere 10 == 1

You do this four times, (for example, stages 10, 20, 30 and 40 activate the seperate AI packages that cause them to follow you)

Then you could create stage 100, which completes the quest script. Finally, create a quest script that looks like this

scn ScriptNameHereBegin GameModeif [ GetStageDone QuestNameHere 10 == 1 ] && [ GetStageDone QuestNameHere 20 == 1 ] && [ GetStageDone QuestNameHere 30 == 1 ] && [ GetStageDone QuestNameHere 40 == 1 ]    SetStage QuestNameHere 100EndIfEnd

User avatar
Nicole Mark
 
Posts: 3384
Joined: Wed Apr 25, 2007 7:33 pm

Post » Tue Mar 15, 2011 2:01 am

I'll definitely take a look at those tutorials you mentioned, thanks. Also, what a major coincidence that one of the four companions has a similar name to you (Mishaxi, just missing the H lol). I'll go try the faction thing first as the quest was just something I wanted to try my hand at.

Thanks,

Spec Kay

EDIT - The companion that dislikes the Legion has a fairly high aggression of 30, would you say a modifier of -5 or -10 will create a small enough chance?
User avatar
Laura Samson
 
Posts: 3337
Joined: Wed Aug 29, 2007 6:36 pm


Return to IV - Oblivion