Jump to content

Papyrus Get formlist value with strings


Swe-DivX

Recommended Posts

Posted

Trying to get if form value exist from strings, is it possible?

a_value = "479416"
b_value = "Skyrim.esm"


int PageFileValuesInt = jsonutil.FormListFind(path, "Factions", XXX)
 

{
	"formList" : 
	{
		"factions" : 
		[
			"479416|Skyrim.esm"
		]
	}
}

 

 

Scriptname AExist extends Quest
Import JsonUtil
Bool Function Exist(string a_value, string b_value)
	if a_value == ""
		return -1
	endif
	string path = "xxx.json"
	jsonutil.Load(path)
	int PageFileValuesInt = jsonutil.FormListFind(path, "Factions", XXX)
	jsonutil.UnLoad(path, true, false)
	return PageFileValuesInt != -1
EndFunction

 

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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