obj
transcircle
icon = 'objects.dmi'
icon_state = "trans1"
name="Transmutation Circle"
verb
Transmute(var/obj/Items/O)
set name = "Transmute"
set desc="Transmutate an object in your inventory"
set src in view(0)
switch(input("What would you do wish to Transmute","Transmutation")in list("[O]","Back"))
if("Iron")
if(usr.level<=5)
usr.contents+=new/obj/Items/sword
if(usr.level>=5)
usr.contents+=new/obj/Items/better_sword
else
usr<<"You do not enough skill to do this!"
if("Gold")
usr<<"Sorry, that has not been implemented yet."
if("Sodium")
usr<<"Sorry, that has not been implemented yet."
if("Back")
return
Problem description:
Well, many of you know, [src/usr.contents] isn't the best thing to use, and I'm sure it isn't but It is the worst to see a list of all the material's you can use to Transmutate, rather than just seeing what you have in your inventory, so I was wondering if there is a proper way of doing this, the furthest I've gotten is seeing the /list in the Input box.
What will happen is that a person under to L5 will get the sword item AND will get get the message saying you do not have enough skill for this:
Fix: Change "if(usr.level>=5)" to "else if(usr.level>=5)"
Also, another problem is that you used "if(usr.level>=5)" and "if(usr.level<=5)"... that means that a person L5 WILL get both swords.... for one of them, take away the = sign
For your original question, you may want something like this:
- GhostAnime