AJCrowley Posted February 1, 2011 Share Posted February 1, 2011 (edited) HelloI'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 street2.Check if it is between 12am and 4am3.Have a couple of 2-man teams of actors bash eachother if time condition is met4.Have winner initiate a conversation which, depending on player lvl, either ends at that or starts a quest5.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 itOk, 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 February 1, 2011 by AJCrowley Link to comment Share on other sites More sharing options...
Hickory Posted February 1, 2011 Share Posted February 1, 2011 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. Link to comment Share on other sites More sharing options...
AJCrowley Posted February 2, 2011 Author Share Posted February 2, 2011 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 parameterI have valid actor's ID on that line, so what am I missing? Link to comment Share on other sites More sharing options...
Hickory Posted February 2, 2011 Share Posted February 2, 2011 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. Link to comment Share on other sites More sharing options...
AJCrowley Posted February 2, 2011 Author Share Posted February 2, 2011 Oh, right Thanks again Link to comment Share on other sites More sharing options...
Recommended Posts