Difference between revisions of "Scripting AddItem Holotape Using OnMenuOpenCloseEvent"

m
minor corrections and formatting
imported>0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
(scripting guide/tutorial for adding a holotape to the player inventory using OnMenuOpenCloseEvent)
 
imported>0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
m (minor corrections and formatting)
Line 8: Line 8:
The quest will need to be enabled at start, will have two stages, and will contain a reference alias with a Specific Reference Fill Type.
The quest will need to be enabled at start, will have two stages, and will contain a reference alias with a Specific Reference Fill Type.


[[File:Ck_4.PNG|thumb|Fig. 1: Reference Alias]]
'''Creation:'''
* Create a quest that is Start Enabled, Run Once. For easy reference later, fill in Object Window Filter with your NameSpace. You'll be able to easily go to Character > Quests > YourNameSpace to find your new quest.
* Create a quest that is Start Enabled, Run Once. For easy reference later, fill in Object Window Filter with your NameSpace. You'll be able to easily go to Character > Quests > YourNameSpace to find your new quest.
[[File:Ck_1.PNG]]
[[File:Ck_1.PNG]]
* Create a Reference Alias under the Quests tab. For purposes of this example, the name of the alias is <code>SettingsHolotape</code>. Fill type: Specific Reference (none). Optional, Quest Object, Reserves Reference, Allow Reuse in Quest, Allow Disabled
* Create two stages - 10 and 20.
* Create two stages - 10 and 20.




Line 47: Line 45:
</source>
</source>
This will complete the quest once the Quest script has run its functions.
This will complete the quest once the Quest script has run its functions.
== Reference Alias ==
[[File:Ck_4.PNG|thumb|Fig. 1: Reference Alias]]
* Quests tab: Create a Reference Alias. For purposes of this example, the name of the alias is <code>SettingsHolotape</code>.
* Fill type: Specific Reference (none).
* Check: Optional, Quest Object, Reserves Reference, Allow Reuse in Quest, Allow Disabled




Line 133: Line 138:
*[[Quest]]
*[[Quest]]
*[[Holotape]]
*[[Holotape]]
*[[ReferenceAlias]]


[[Category:Scripting_Guides]]
[[Category:Scripting_Guides]]
[[Category:Tutorials]]
[[Category:Tutorials]]