summaryrefslogtreecommitdiff
path: root/npc/017-8
diff options
context:
space:
mode:
Diffstat (limited to 'npc/017-8')
-rw-r--r--npc/017-8/doorbell.txt10
1 files changed, 5 insertions, 5 deletions
diff --git a/npc/017-8/doorbell.txt b/npc/017-8/doorbell.txt
index 9b1095b38..b7b8f7dd4 100644
--- a/npc/017-8/doorbell.txt
+++ b/npc/017-8/doorbell.txt
@@ -27,7 +27,7 @@
017-8,32,34,0 script Doorbell#RES_0178 NPC_NO_SPRITE,{
// Name, Layer, Price, ID, x1, y1, x2, y2,
function create_object {
- array_push(.name$, getarg(0));
+ array_push(.nams$, getarg(0));
array_push(.layer, getarg(1));
array_push(.price, getarg(2));
array_push(.objid, getarg(3));
@@ -165,7 +165,7 @@ L_ContinuousLoop:
// Create a second array (@valid_ids) with the ID of objects within @re_col group
for (.@i=0; .@i < getarraysize(.layer); .@i++) {
- //debugmes "Found object ID %d named %s on layer %s coords (%d,%d) - Looking for layer %d", .@i, .name$[.@i], .layer[.@i], .x1[.@i], .y1[.@i], @re_col;
+ //debugmes "Found object ID %d named %s on layer %s coords (%d,%d) - Looking for layer %d", .@i, .nams$[.@i], .layer[.@i], .x1[.@i], .y1[.@i], @re_col;
if (.layer[.@i] == @re_col)
array_push(@valid_ids, .@i);
}
@@ -176,9 +176,9 @@ L_ContinuousLoop:
for (.@j=0; .@j < getarraysize(@valid_ids); .@j++) {
.@i=@valid_ids[.@j];
if (realestate_hasmobilia(.id, .layer[.@i], .objid[.@i]))
- @menuentries$+=l("Sell ")+.name$[.@i]+l(" for ") + format_number( realestate_sellprice(.id,.price[.@i]) ) +":";
+ @menuentries$+=l("Sell ")+.nams$[.@i]+l(" for ") + format_number( realestate_sellprice(.id,.price[.@i]) ) +":";
else
- @menuentries$+=l("Purchase ")+.name$[.@i]+(" for ") + format_number( .price[.@i] )+":";
+ @menuentries$+=l("Purchase ")+.nams$[.@i]+(" for ") + format_number( .price[.@i] )+":";
}
select (@menuentries$);
mes "";
@@ -232,7 +232,7 @@ OnInit:
// Arrays
// We go element by element on the array building the menu
- .name$="";
+ .nams$="";
.layer=0;
.price=0;
.objid=0;