Re: Adding numbers in game states
Status: Alpha
Brought to you by:
cwalther
From: James W. <jfc...@ya...> - 2009-09-08 23:37:42
|
Ah. Thanks a lot. Thanks James --- On Tue, 9/8/09, Christian Walther <cwa...@gm...> wrote: From: Christian Walther <cwa...@gm...> Subject: Re: Adding numbers in game states To: pip...@li... Date: Tuesday, September 8, 2009, 4:22 PM James Wilson wrote: > How does one add a number to a variable? > For example, here's a state, as defined in Main.lua: > state.blahhumblah=1 > > Now, in a node.lua, I want to do something to this effect: > > state.blahhumblah=+1 > > So that whenever a function is run it'll increase the state's value by > 1. Or subtract it, etc. state.blahhumblah = state.blahhumblah + 1 -Christian ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Pipmak-Users mailing list Pip...@li... news://news.gmane.org/gmane.games.devel.pipmak.user https://lists.sourceforge.net/lists/listinfo/pipmak-users |