Jump to content

Recommended Posts

Posted (edited)

Hello

I'm trying to create a little mod but I need a little help with scripting

 

What I want for the script to do is:

 

1.Run on entering any city street

2.Check if it is between 12am and 4am

3.Have a couple of 2-man teams of actors bash eachother if time condition is met

4.Have winner initiate a conversation which, depending on player lvl, either ends at that or starts a quest

5.Make survivors leave (after the conversation) through the nearest city gate and don't show up on the other side (just disappear)

 

I think that's it

Ok, maybe it's not that little help

 

As I suspect such a script would be kinda long and it'd be too much to hope that someone would write the whole thing and just hand it to me, I'd be happy with just the commands I'll need and some guidelines on how to use them (although writing the whole thing and handing it to me would be nice too :))

 

Thanks in advance

Edited by AJCrowley
Posted

Well, it's not going to be simple, that's for sure. But you are going to have to do some research on:

 

 

 

If GetStage yourquest >=xx

 

If ( player.getincell Leyawiin == 1 ) || ( player.getincell Chorrol == 1 ) || ( player.getincell ...etc

 

If ( GameHour >0 && GameHour <4 )

 

On each team member:

startcombat enemyRef

 

winnerRef.SayTo player HELLO (or whatever)

 

Set up a package to Travel to a location, then have them move to a dummy cell and disable them.

 

 

 

 

Edit:

 

Also, take a look at An introduction to Oblivion Scripting.

Posted

Thank you

 

I have a problem with the startcombat command though

 

When I try to compile my script, I get an error message saying that I have an invalid object reference for an actor parameter

I have valid actor's ID on that line, so what am I missing?

Posted
When I said: "On each team member", that meant the script has to be attached to the protagonists, so that the startcombat command assumes the reference of said protagonist. In other words, don't use it in your quest script -- this is not going to be achieved with one single script.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...