burb Posted December 15, 2008 Share Posted December 15, 2008 :wallbash: :wallbash: :wallbash: Hi, i've nearly finsished making my first mod. I've put a lot of effort into it and it's looking not to shabby if i do say so myself.Here's the crack; It's a deathmatch arena where you can challenge one of a number of NPCs and depending on your conversation, battle in a different area. I want the NPC and the player to fight atop an unaccessible platform so i've put: player.moveto XXXXXX (on top of the platform)startcombat playerXXXXXX (on top of the platform) So now i'm up there but all alone. To get the NPC there with me, i've tried every single script i can find on the topic and its not working.I've tried: RefID moveto playerprid refid moveto playerrefid moveto XXXXXX (on top of the platform)but none of them are working. i wouldn't be bugging you guys for help but i've looked everyhere and tried everything. I think it might be a case of me putting in the wrong format for the RefId (i've never found an actual example of one typed out that works for me). Thanks for reading. : ) Link to comment Share on other sites More sharing options...
Vagrant0 Posted December 15, 2008 Share Posted December 15, 2008 :wallbash: :wallbash: :wallbash: Hi, i've nearly finsished making my first mod. I've put a lot of effort into it and it's looking not to shabby if i do say so myself.Here's the crack; It's a deathmatch arena where you can challenge one of a number of NPCs and depending on your conversation, battle in a different area. I want the NPC and the player to fight atop an unaccessible platform so i've put: player.moveto XXXXXX (on top of the platform)startcombat playerXXXXXX (on top of the platform) So now i'm up there but all alone. To get the NPC there with me, i've tried every single script i can find on the topic and its not working.I've tried: RefID moveto playerprid refid moveto playerrefid moveto XXXXXX (on top of the platform)but none of them are working. i wouldn't be bugging you guys for help but i've looked everyhere and tried everything. I think it might be a case of me putting in the wrong format for the RefId (i've never found an actual example of one typed out that works for me). Thanks for reading. : )Generally, whenever you are moving things around to a specific location, it is best to use movetomarker, using a placed marker as the location. As for moving the actor, if the actor is a placed, persistant, named reference, you can just use the named reference in the script with the movetomarker function. For instance, if you have placed the NPC defined in the CS as joebob01 within a cell, double clicked on the placed reference, given it a name joebob01ref and checked "persistant reference". Then in the script you would use joebob01ref.movetomarker xxxxx. If you do not have a named, persistant reference, you would need scripting to capture the reference ID of the actor in game, and then use that ID in a similar manner, like in a script on the NPC. ref self short doneonce begin gamemode if doneonce == 0 if activatorref.triggered == 1;;or whatever you are using to cause the game to teleport the player set self to getself self.movetomarker xxxx setdoneonce to 1 elseif endif end Link to comment Share on other sites More sharing options...
AzirAphale001 Posted December 15, 2008 Share Posted December 15, 2008 Have you given your NPC a specific referance ID? If not then that's probably your problem. You might also want to make a seprate copy of the NPC, place them is a new cell, give them a new RefID and fight them instead.Something like; FightNPC01Ref.MoveTo FightLocationMarker01 Actualy, now that I think about it that could be it. You have spaces instead of dot's. Just make sure you have an Marker for the player and a Marker for the NPC. This sounds like a good mod, I'll look forward to it. Link to comment Share on other sites More sharing options...
burb Posted December 16, 2008 Author Share Posted December 16, 2008 Thanks very much for the help vagrant0 and AzirApahle001. You know, I think it might be something as simple as my NPCs not being clicked as persistent refences. I don't have Oblivion on this PC so i'll have to get back, try what you've told me, then tell you how I got on. Thanks again, you're awesome! : ) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.