verb
Trade()
set src in oview(1)
var/mob/Boats/A = new/mob/Boats()
TradeShipChoose(src,usr,A)
if(A)
var/B
world<<"[A]"
world<<"[A.Storage.len]"
SpaceCheck(A,usr,B)
world<<"[B] = B"
if(B)
usr<<"You have [B] spaces left on your ship."
switch(input(usr, "Do you want to buy goods, or sell them?","Trading Post") in list("Buy Goods","Sell Goods"))
if("Buy Goods")
BuyProc(src,usr,B,A)
The error is coming from TradeShipChoose. I have tried putting tests after it, to tell me the name of the ship, and they always give "Boats" even when that isn't the name of the ship! Here is my TradeShipChoose Proc:
TradeShipChoose(turf/PORTS/TradingPosts/A,mob/B,mob/Boats/C)
var/list/L = new/list()
var/turf/PORTS/D
for(var/turf/PORTS/Z in world)
if(Z.island == A.island)
D = Z
if(D.Spaces)
for(C in D.Spaces)
if(C.Owner == B)
L.Add(C)
if(L)
if(L.len == 1)
C = L[1]
B << "We will be using your ship [C] for trading to and from."
else
C = input(B,"Which boat to you wish to use?","Boats") in L
B << "We will be using your ship [C] for trading to and from."
else
B<<"You have no boats!"
del(C)
Can anyone explain why the verb is ignoring what the proc should be doing? For the record, it still says "We will be using your ship [C] for trading to and from." anyway!
~Ease~
Lummox JR