Jump to content

GECK Open Note Upon Activation in Script


APNxRPG24

Recommended Posts

I wanted to know how to make a note pop-up when you press "e" on (activate) something. An example would be Old World Blues, when you activate the crashed satellite and the message comes up and tells you about the DLC and asks if you want to start it.

 

In order to do this I would guess that you would place an activator where you want, and edit the activator to add a script. And in that script, it would tell the game when it is activated to open up a note (make a new note, notes located under items in the GECK object window).

 

I believe I have the basics down in scripting, but if I get an answer I would like the script to be explained on how it works.

 

Now in the GECK I loaded Old World Blues and got the script on the satellite right here.

 

scn NVDLC03CrashedSatelliteTriggerSCRIPT

 

 

; Bumps the player off to a safe spot if he's standing in the crashed satellite location when DLC03 is first loaded.

; JSH 03/04/11

 

 

BEGIN OnTrigger Player

 

If ( GetStageDone NVDLC03MQ00 10 == 0 )

Player.MoveTo MojaveDriveInMarkerHeadingREF;

Disable;

Else

Disable;

EndIf

 

END

 

So where it says "GetStageDone NVDLC03MQ00" I would guess that is saying to open the note and the notes name is "NVDLC03MQ00"? And below that, is it saying to move the player to the inside of the DLC (MojaveDriveInMarkerHeadingREF), if they answer yes to the on screen note? And where it says "10 == 0" I don't know what that means, but I am sure it must be important to the script.

 

I know this was a long read, but help would be much appreciated. Thank you.

Edited by APNxRPG24
Link to comment
Share on other sites

You should look up any functions you don't understand at the GECK site.

GetStageDone NVDLC03MQ00 10 == 0 simply means this... return TRUE if the player has NOT completed stage 10 of the NVDLC03MQ00 quest.

That code is basically checking to see if you've already used the satellite to travel to OWB before and if you haven't move you to the marker in OWB

named MojaveDriveInHeadingMarkerREF and then it disables the satellite trigger.

 

As for showing a note to players, you should look at the functions like AddNote and ShowMessage on the GECK site.

 

p.s. You should use code tags around script code instead of using quote. Highlight your code and click the format symbol that looks like this: <>

Edited by Astymma
Link to comment
Share on other sites

You should look up any functions you don't understand at the GECK site.

GetStageDone NVDLC03MQ00 10 == 0 simply means this... return TRUE if the player has NOT completed stage 10 of the NVDLC03MQ00 quest.

That code is basically checking to see if you've already used the satellite to travel to OWB before and if you haven't move you to the marker in OWB

named MojaveDriveInHeadingMarkerREF and then it disables the satellite trigger.

 

p.s. You should use code tags around script code instead of using quote. Highlight your code and click the format symbol that looks like this: <>

 

Yeah, I was checking out their website and I think I know what to do now. But I am having a problem where my script will not save. I made a post about it it here: http://forums.nexusmods.com/index.php?/topic/802877-cant-save-script/

Link to comment
Share on other sites

  • Recently Browsing   0 members

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