Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 [module idea] random effect item
Zeta Offline
Bored and experimenting
**
Posts: 9
Joined: Feb 2008
Post: #1
[module idea] random effect item
This is just one of those "random" thoughts I had that got pushed a bit further after looking at the demo function.

I have an idea for an item that would produce a random effect, such as decreasing or increasing the consumer's post count, decreasing or increasing a target user's post count or money, or removing all of the consumer's money (rare case, but this would also include the bank if enabled)

and also while it's fresh on my mind, ZiNgA, I think you left a trivial typo in your "simple demo module" comments:

Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
// add your items in the _activate() function
function simpledemo_activate() {
	myplaza_add_item(array(
		"name"			=> 'Add 1000 to post count',
		"description"	=> 'Adds 1000 to your post count.',
		"cost"			=> 10.00,
	));
}

// remove all items we added earlier in the _deactivate() function <--shouldn't that be "_activate()", or am I completely misreading it? ~Zeta
function simpledemo_deactivate() {
	myplaza_remove_module_items();
}


(personally, I would rephrase the line in question as "remove all items we added using _activate() with the _deactivate() function")

02-23-2008 08:52 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
[module idea] random effect item - Zeta - 02-23-2008 08:52 AM

 Standard Tools
Forum Jump: