Jump to content

Adding the player's name to a note.


Recommended Posts

In my mod, the Gunners, a mercenary group, have been hired to track down and eliminate the player character. The Gunner squad will appear at random places. If the player loots the Gunner commander, they will see a note that says something like:



Client: CLASSIFIED
Target: [PLAYER'S NAME]
Sex: [PLAYER'S GENDER]
Age: [PLAYER'S AGE]


Target Overview:
Some more descriptive text.

How can I add the player's name and gender to the note? And I assume the player's age is around 28-30. But if you guys know the exact age, please let me know.



Link to comment
Share on other sites

If you need to dinamically spawn single/multiple notes with the player name you can do it this way :

 

Create a Quest, Uncheck everything in quest data. Create an Alias Reference . In Alias tab check : "Optional", "StoresText" and "Uses Stored Text". Make this Alias use Specific Ref , but don`t select any reference, just leave it empty.

In your note type <Alias=Player> anywhere , where you need the player`s name.

 

In some script that spawns your notes ( should be spawed by "placeatme" so it has a reference to apply alias to)

you type :

MyQuest.Start()

MyAlias.Clear()

MyAlias.ForceRefTo(MyNote)

MyQuest.Stop()

 

 

Can be done with start quest enabled and alias can be filled in another way . The point is to force the alias to the note. The alias can be cleared immediatelly after this. Being in this alias saves the text replacement and the player name stays in the note even when alias is cleared or quest is stopped.

 

 

Can`t be sure about gender. But there are only 2 genders in game. You can create 2 types of notes, check player gender and spawn the one that fits.

Edited by kitcat81
Link to comment
Share on other sites

  • Recently Browsing   0 members

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