ID:161313
 
The example given in the DM Guide has:

params["player"] = "James Bond"


Is there anyway to get 'player = James Bond = 20'? As in, to have each index (I don't know a better word =P) associated with two other values?

It's just that I want to make a list of turfs, where each is associated with how much damage can be taken at said-turf, and how much could be dealt out from said-turf.

I can't quite get my head around associated lists - they're mean!

~Ease~
Ease wrote:
The example given in the DM Guide has:

params["player"] = "James Bond"


Is there anyway to get 'player = James Bond = 20'? As in, to have each index (I don't know a better word =P) associated with two other values?

It's just that I want to make a list of turfs, where each is associated with how much damage can be taken at said-turf, and how much could be dealt out from said-turf.

This would be best accomplished with two lists. Otherwise, you're stuck using a datum or something to hold the multiple pieces of data. In this case two lists should suffice.

Lummox JR
A multiple dimension list would accomplish this.

var params[][] = list()
params["players"] = list("James Bond")
params["players"]["James Bond"] = 20
world << params["players"]["James Bond"]
// 20