Deleted82199053User Posted March 16, 2021 Share Posted March 16, 2021 (edited) Scriptname DarkPortalQuestScript extends ReferenceAlias GlobalVariable Property MapMarkerDestination Auto Location Property Whiterunorigin Auto Location Property WindhelmOrigin Auto Location Property MarkarthOrigin Auto Location Property RiftenOrigin Auto Location Property SolitudeOrigin Auto Location Property MorthalExterior01 Auto Location Property DawnstarExterior01 Auto Location Property FalkreathExterior01 Auto Location Property WinterholdExterior01 Auto Event OnLocationChange(Location akOldLoc, Location akNewLoc) if akNewLoc == Whiterunorigin MapMarkerDestination.setvalue(1) elseif akNewLoc == WindhelmOrigin MapMarkerDestination.setvalue(2) elseif akNewLoc == MarkarthOrigin MapMarkerDestination.setvalue(3) elseif akNewLoc == RiftenOrigin MapMarkerDestination.setvalue(4) elseif akNewLoc == SolitudeOrigin MapMarkerDestination.setvalue(5) elseif akNewLoc == MorthalExterior01 MapMarkerDestination.setvalue(6) elseif akNewLoc == DawnstarExterior01 MapMarkerDestination.setvalue(7) elseif akNewLoc == FalkreathExterior01 MapMarkerDestination.setvalue(8) elseif akNewLoc == WinterholdExterior01 MapMarkerDestination.setvalue(9) else endif EndEventMy Script has not compile error but It doesn't change Globalvalue. I want to make GlobalValue changes when I enter a city. What should I do? Edited March 16, 2021 by Guest Link to comment Share on other sites More sharing options...
IsharaMeradin Posted March 16, 2021 Share Posted March 16, 2021 Did you assign the appropriate data to the property variables? If not, papyrus has no clue what to do as all those variables will be null or empty of data. To confirm and / or assign as needed, load up the CK, locate the record(s) with the script attached, highlight the script name in the script section, click on the properties button. At this point a new window appears, click auto-fill all at the bottom, then highlight any property that did not fill and use the data fields that appear on the right hand side to find the correct record(s) to assign to each property. When done, click OK to close the property window and OK to close the record with the attached script, save the plugin. If the properties are filled, it is possible that the game is not updating the script on the reference alias. You may need to restart the associated quest, revert to a save made before adding the mod in question, or start a new game. Link to comment Share on other sites More sharing options...
Recommended Posts