Register to post in forums, or Log in to your existing account
 
:
Search found 15 matches for:
Page 1 of 1
Author Message
  Topic: Lua functions can't return functions as values
Valkenar

Replies: 5
Views: 8516

PostForum: CMUD General Discussion   Posted: Tue Aug 09, 2011 1:29 pm   Subject: Lua functions can't return functions as values
Well both of those functions were lua, not zscript. In lua functions are first-class objects. That means you can do this:

function ReturnAFunction(ExtraString)
return (function&# ...
  Topic: Lua functions can't return functions as values
Valkenar

Replies: 5
Views: 8516

PostForum: CMUD General Discussion   Posted: Mon Aug 08, 2011 10:59 pm   Subject: Lua functions can't return functions as values
Given these settings:


<class name="Test" id="737">
<func name="test1" language="Lua" id="738">
<value>a = zs.execfunc&# ...
  Topic: Cmud 3.34 Hangs when using pick from Lua via function
Valkenar

Replies: 0
Views: 2756

PostForum: CMUD General Discussion   Posted: Mon Aug 08, 2011 10:51 pm   Subject: Cmud 3.34 Hangs when using pick from Lua via function
I have this:

<class name="Test" id="738">
<func name="TestFunc" language="Lua" id="725">
<value>zs.func.pick("p& ...
  Topic: Window Layout bugs (3.34 Pro)
Valkenar

Replies: 3
Views: 12988

PostForum: CMUD Beta Forum   Posted: Fri Apr 22, 2011 8:35 am   Subject: Window Layout bugs (3.34 Pro)
I've had this problem for quite a while, through several versions but have never reported it because I'm really not sure how to describe it in such a way that you'll be able to track it down. But it's ...
  Topic: [3.20] Access violation while setting alias from trigger
Valkenar

Replies: 2
Views: 4186

PostForum: CMUD Beta Forum   Posted: Thu Jun 24, 2010 3:10 pm   Subject: [3.20] Access violation while setting alias from trigger
<trigger priority="1420" id="142">
<pattern>You don't have enough mana.</pattern>
<value>sl
#alias wakeup {st}
#alias backtosleep {sl ...
  Topic: [3.20] Variables in class with lua
Valkenar

Replies: 1
Views: 3647

PostForum: CMUD Beta Forum   Posted: Fri Jun 18, 2010 11:12 pm   Subject: [3.20] Variables in class with lua
My expectation is that if I have a class with the "set as default when executing" box checked, then variables created by aliases in that class should also be inside that class. If that's not true then ...
  Topic: Changing state for disabled triggers
Valkenar

Replies: 1
Views: 3366

PostForum: CMUD Beta Forum   Posted: Thu May 13, 2010 4:11 pm   Subject: Changing state for disabled triggers
It seems like it's not possible to change the state of a trigger while it is disabled. Is this intentional? It seems like you would want to set the state of a multistate trigger before enabling it so ...
  Topic: Storing Lua tables with embedded pipes [CMud Pro 3.16b]
Valkenar

Replies: 1
Views: 3793

PostForum: CMUD Beta Forum   Posted: Fri Apr 30, 2010 7:13 pm   Subject: Storing Lua tables with embedded pipes [CMud Pro 3.16b]
CMud seems get confused if you have pipes in strings inside lua tables that you try to store in cmud variables

A lua table like
{"a|b","b|c"}

gets translated into
{{"a", "b"}, {"b", "c"}}

H ...
  Topic: Something like Reparse Loop trigger?
Valkenar

Replies: 3
Views: 5307

PostForum: CMUD Beta Forum   Posted: Fri Apr 30, 2010 4:38 pm   Subject: Something like Reparse Loop trigger?
Well I've resolved this problem mostly satisfactorily (along the lines of what Matt suggested)

by having something like this:
State 0: PatternThatInitiatesTheSequence
State 1: (StuffI'mLookingFo ...
  Topic: Something like Reparse Loop trigger?
Valkenar

Replies: 3
Views: 5307

PostForum: CMUD Beta Forum   Posted: Wed Apr 28, 2010 8:20 pm   Subject: Something like Reparse Loop trigger?
I'm trying to figure out what the right way to use a multistate trigger to collect some stuff. What I want the trigger state to do is to fire the script as long as the line matches and then move on wi ...
  Topic: Window interaction
Valkenar

Replies: 1
Views: 3507

PostForum: CMUD Beta Forum   Posted: Tue Jan 19, 2010 5:27 pm   Subject: Window interaction
I'm working on something involving tieing two mud windows together. What I'm having trouble with is directing commands received in the command line to another window. Usually they seem to do nothing ...
  Topic: [3.12] Lua functions and execfunc
Valkenar

Replies: 1
Views: 3711

PostForum: CMUD Beta Forum   Posted: Wed Nov 04, 2009 5:38 pm   Subject: [3.12] Lua functions and execfunc
When an alias or function written in lua attempts to call a function written in a lua using execfunc, the arguments are lost.

For example:

Function1:
zs.say("Function called")
zs.say(zs.param ...
  Topic: [CMUDPRO 3.10a] Command line causes crash
Valkenar

Replies: 2
Views: 4353

PostForum: CMUD Beta Forum   Posted: Tue Aug 25, 2009 6:47 pm   Subject: [CMUDPRO 3.10a] Command line causes crash
I searched for similar bugs and couldn't find any, so apologies if this has been reported.

The command line pretty quickly breaks such that any keystroke causes the application to pop the crash dia ...
  Topic: Database module
Valkenar

Replies: 3
Views: 6004

PostForum: CMUD Beta Forum   Posted: Fri Aug 14, 2009 12:13 am   Subject: Database module

At least CMUD is one of the few clients that has the Lua and COM scripting interface to allow you to use an external database system like that.

Thanks for the info, Zugg. Sounds like the lua sql ...
  Topic: Database module
Valkenar

Replies: 3
Views: 6004

PostForum: CMUD Beta Forum   Posted: Wed Aug 12, 2009 8:31 pm   Subject: Database module
I'm looking for a mud client that will allow me to create item and room databases that I can easily share between computers and people (emailing discrete files is sufficiently easy). After looking ove ...
 
Page 1 of 1
All times are GMT
© 2009 Zugg Software. Hosted on Wolfpaw.net