Es.keygetvalue

From EventScripts Community Encyclopedia
This article is a stub. Please help by adding to it.



Method: keygetvalue

Module: es
Class: (no class)
EventScripts version: 2.0

Method Overview

Table of Contents

Contents


Description

Retrieve the value from the specified valuename.

This is the Python equivalent of: http://www.eventscripts.com/pages/es_keygetvalue

Arguments

  • Keygroup - What Keygroup is the variable being loaded from
  • Key - What Key is the variable being loaded from
  • Value - The value to be loaded


Examples

es.keygroupcreate("MyKeyGroup")
es.keycreate("MyKeyGroup", "MyKey")
es.keysetvalue("MyKeyGroup", "MyKey", "MyValue", "Python is GREAT!")
myVar = es.keygetvalue("MyKeyGroup", "MyKey", "MyValue")

"myVar" will now equal "Python is GREAT!" and could be used as such

if myVar == "Python is GREAT!":
    es.msg("#green", "You're 100% correct!"

Notes


See Also

blog comments powered by Disqus