Code:
Problem description:
Whats does error:loc:cannot change constant value mean please tell me
?
ID:269664
Aug 29 2005, 3:55 am
|
|
Aug 29 2005, 3:59 am
|
|
You are trying to change the loc of something that can't change it's loc. For example: Turfs. You can't move them.
|
Akros Productions wrote:
Whats does error:loc:cannot change constant value mean You're probably trying to set an atom's loc. You can't - it's a constant value. To change the location of a player, you'll want to alter their loc var with the locate() procedure. usr.loc = locate(1,1,1) ~Sinyc. |
In response to Sinyc
|
|
Sinyc wrote:
Akros Productions wrote: Not exactly correct. You can change an /atom/movable's loc, just not a regular atom's. That means turfs and areas can't have their locs changed. Lummox JR |
In response to N1ghtW1ng
|
|
N1ghtW1ng wrote:
You are trying to change the loc of something that can't change it's loc. For example: Turfs. You can't move them. It's kind of a shame this works that way, because turf locs actually can be changed, but only one way. To move a turf you basically have to add it directly to an area's contents list. It would be more intuitive, and indeed consistent, for turfs to allow their loc to be set to a new area. Lummox JR |