ID:148155
 
mob
verb
Trade(mob/M in oview (6))
set category = "Communication"
var/obj/O = input("Which item do you want to trade?")in usr.contents
if(O in "ssj")
usr <<"You cannot trade that"
return
switch(input(M,"[usr] wants to trade his [O]!","Trade","No") in list("Yes","No"))
if("Yes")
switch(input(M,"What will you trade for [usr]'s [O]?","Zenni","Item") in list("Zenni","Item"))
if("Zenni")
var/obj/Z = input(M,"How much zennie do you wish to trade for [O]?") as num|null
if(Z < 0||Z>M.zenni)
M << "You cheapskate! You need to put more than 0"
return
if(Z > 0&&Z<M.zenni)
switch(input(usr,"[M] has offered you [Z] Zenni, Do you accept?","Yes","No") in list("Yes","No"))
if("Yes")
O.loc = M
M.zenni -= Z//M looses the Cash he bought the item with
usr.zenni += Z//usr gains the Cash that M lost
if("No")
usr << "[M] decided not to."
if("Item")
var/obj/O2 = input(M,"Which item do you want to trade?")in M.contents
switch(input(usr,"[M] wants to trade his [O2]for your [O]!","Trade","No") in list("Yes","No"))
if("Yes")
O.loc = M
O2.loc = usr
usr << "Trade finished"
M << "Trade finished"
if("No")
usr << "[M] doesnt want to trade at all."

Alright basicly in var/obj/O = input("Which item do you want to trade?")in usr.contents
if(O in "ssj")
usr <<"You cannot trade that"

I want to be able to have it do 1 of 2 things.

One would be to not show any of the certain items at all on the list, or, when they select one of the items and press ok, it tells them they cannot trade that and returns back to what they want to trade. The problem is in if(O in "ssj") it acts like it doesnt even go through this at all. All help would be appriciated.

James</0>
Please, don't make another ripoff DBZ game! Use your skills for something better, and this code looks bought...
In response to Dragon of Ice
No, the code isn't "Bought" I made it myself. Just because I can code better than you dont have a spaz, im here asking for help, and if you dont have help to offer please dont. BTW for anyone else who wants to flame me yes my game is a rip, and nowhere do I take 100% credit for making something i did NOT do by myself. Thanks for your input anyhow.


James
In response to SSJ2GohanDBGT
I appologize...it's just that DBZ games tick me off so bad! It looks like all the other DBZ code people ask help on, but I guess people just think alike when they code. You probably can code better than me, and I'll read over this again and see if I can try and help you, though I still feel that making yet another DBZ game is a waste of time, as very few people will play it (most likely), and you could use your skills to create something much better.
In response to Dragon of Ice
It's ok, I can understand how people get mad at rips as i look at games such as "DBZ RAMPAGE" and wonder how the kid even figured out how to publicize the game..


James
I'm not sure of this, since I seem to have lost my internet on my other computer, and I can't download BYOND on this one, so my skills are a little rusty.. but maybe it shoud be:
if(O in ssj)

or maybe
if(O in [ssj])
In response to Dragon of Ice
Hmm... That's odd. This comes up with an error I have never encountered before.

It expected 1 arg ... :/

Looked up [] , looks to me like they are for arrays and declaring list sizes..