ID:150235
 
How would you make it where when you click someone he says "Learn blah blah" and then it says yes or no and if you click yes it gives you a verb? I know this is a dumb question but I am a newbie :-[. If you could help with this please respond. Thanks in advance!


~PyRoMaNiAc~
PyRoMaNiAc wrote:
<font color = "blue">How would you make it where when you click someone he says "Learn blah blah" and then it says yes or no and if you click yes it gives you a verb? I know this is a dumb question but I am a newbie :-[. If you could help with this please respond. <font color = "green">Thanks in advance!


<font color = "red">~PyRoMaNiAc~


Well to do this you would have to do something of the following:


mob/ShopOwner
icon = 'shopguy.dmi'
name = "Pyro"
density = 1
Click()
var/shop = input("What would you like to buy?")in list("Bag of potatoes","Aerosol Can")
if(shop == "Bag of potatoes")
if(usr.money <= 99)
usr << "Pyro: You don't have enough money!"
else
new/obj/Bag of potatoes(usr)
usr.money -= 100
if(shop == "Aerosol Can")
if(usr.money <= 149)
usr << "Pyro: You don't have enough money!"
else
new/obj/Aerosol Can(usr)
usr.money -= 100
</DM>

Dont forget to add the money var, otherwise you will have errors.

Lee

<FONT COLOR="C0C0C0">Please try to close your HTML tags next time ok.</FONT COLOR>
In response to Mellifluous
Ok, I will. But I dont need a shop keeper, I need someone that gives you a verb. Like kami and king kai on most dbz games, exept it wont give the person an attack.


<~<~PyRoMaNiAc~>~>
In response to PyRoMaNiAc
PyRoMaNiAc wrote:
Ok, I will. But I dont need a shop keeper, I need someone that gives you a verb. Like kami and king kai on most dbz games, exept it wont give the person an attack.


<~<~PyRoMaNiAc~>~>

Why dont you just edit that, its very simple to implement so why not do it?

Its very very easy to edit it, and many of the BYOND community would agree.

As I am not going to give you a straight out code for a DragonBall Z game, sorry,

Lee
In response to Mellifluous
Mellifluous wrote:
Its very very easy to edit it, and many of the BYOND community would agree.

Did you ever think that he asked because he didn't know how to add verbs?
In response to Vortezz
Vortezz wrote:
Mellifluous wrote:
Its very very easy to edit it, and many of the BYOND community would agree.

Did you ever think that he asked because he didn't know how to add verbs?

Its in A Library!!!
In response to Vortezz
Vortezz wrote:
Mellifluous wrote:
Its very very easy to edit it, and many of the BYOND community would agree.

Did you ever think that he asked because he didn't know how to add verbs?

Yes I do know, but why are you on my back about it?
In response to Air _King
Oh, that helps me alot, tellin me its in a libary. Hmm, you know how many libraries there are? Alot. How would I know which one to pick hmm?
~PyRoMaNiAc~
In response to PyRoMaNiAc
PyRoMaNiAc wrote:
Oh, that helps me alot, tellin me its in a libary. Hmm, you know how many libraries there are? Alot. How would I know which one to pick hmm?

You don't "pick" one. You go through them all 'til you see something that you want.
In response to Vortezz
I dont see one that has click mob and add verb.
In response to PyRoMaNiAc
If you dont want help continue being an ass
In response to JordanUl
I am taking this to a diffrent board.