I need a code for a shopkeeper that will be activated by a talk verb(need help with that too!)
ID:179899
Oct 11 2001, 2:28 pm
|
|
Oct 12 2001, 11:43 am
|
|
I mean NPC that can sell you stuff.
|
In response to Talsma
|
|
Talsma wrote:
I mean NPC that can sell you stuff. Here is one, change it to fit your game ok. -------- mob/Shop icon = 'shop.dmi' name = "Shop Guy" density = 1 Click() var/shop = input("What would you like?")in list("Sword","Dagger") if(shop == "Sword") if(usr.money <= 299) usr << "Shop Guy: You don't have enough money!" else new/obj/Sword(usr) usr.money -= 300 if(shop == "Dagger") if(usr.zenni <= 99) usr << "Shop Guy: You don't have enough money!" else new/obj/Dagger(usr) usr.zenni -= 100 --------------------------- Evil_SSJ4Vegeta |
In response to Evil_SSJ4Vegeta
|
|
Ok.... I'm an EXTREME newb... I want an Item that heals you and one that transports you (with a select) and finally.... How do you get it so that a NPC(activated by talk command) will give you a move. Feel free to flame.
|
In response to Talsma
|
|
Talsma wrote:
Ok.... I'm an EXTREME newb... I want an Item that heals you and one that transports you (with a select) and finally.... How do you get it so that a NPC(activated by talk command) will give you a move. Feel free to flame. Explain alittle more, the exact name of the more and what you want the NPC to do |
In response to Evil_SSJ4Vegeta
|
|
Ok. I want a NPC to teach you a move only once activated by a talk verb. For the items, I want a...uh...scroll to teleport me somewhere. I also want an item to heal me COMPLETELY. Thanks!
|
In response to Evil_SSJ4Vegeta
|
|
anyone?
|
In response to Talsma
|
|
Talsma wrote:
anyone? I'm slightly perturbed now, but not about your topic... rather, about your forum posting. Please visit this link. |
In response to Talsma
|
|
obj
potion icon = 'potion' verb drink() if(usr.hp == usr.hpmax) usr << "Don't waste potion!" else usr.hp = usr.hpmax usr << "You drink the potion" del(src) of course to use that, you need hp and max hp vars. That's just an example, i could also give you the answers to the others, but i'm lazy. |