Es.copy

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



Method: copy

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

Method Overview

Table of Contents

Contents


Description

Copies the value of one variable to another. This is the Python equivalent of: http://www.eventscripts.com/pages/es_copy

Arguments

  • Variable1 - Variable you would like to have a value copied to
  • Variable2 - Variable that will have its value copied to Variable1


Examples

es.ServerVar("var1").set("Hello, How are you?")
es.ServerVar("var2").set("I'm doing great!")
var1 = es.ServerVar("var1")
es.msg(var1)
es.copy("var1","var2")
var1 = es.ServerVar("var1")
es.msg(var1)

Notes

  • Useless in python as you can just do var1 = var2

See Also

blog comments powered by Disqus