Ah yes! I think that does the trick.
Thank you for your help, and for a great template.
Thank you for your help, and for a great template.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menu//=================================================================== // PROCESS VERBCOIN BUTTON CLICKS - INVENTORY //------------------------------------------------------------------- // // Note: for each action the inventory item that is below the verbcoin should be used // since the x- and y-coördinates are no longer valid, we use the saved mousex and mousey coördinates // We can only avoid nullpointer errors by doing this check for each button. else{ if (guixy == gui[verbc_id]) { if (control == look_button){ gui[verbc_id].Visible = false; Wait(1); item2 = InventoryItem.GetAtScreenXY(mousex, mousey); item2.RunInteraction(eModeLookat); //look at item } if (control == talk_button){ gui[verbc_id].Visible = false; Wait(1); item2 = InventoryItem.GetAtScreenXY(mousex, mousey); item2.RunInteraction(eModeTalkto); //talk to item } if (control == interact_button){ gui[verbc_id].Visible = false; Wait(1); item2 = InventoryItem.GetAtScreenXY(mousex, mousey); item2.RunInteraction(eModeInteract); //interact with item
function room_Load() { onewmotley.SetView(7, 0, 0); } function room_RepExec() { if (Object.GetAtScreenXY(mouse.x,mouse.y) == onewmotley){ onewmotley.Animate(0, 5, eOnce, eBlock);} else { if (onewmotley.Animating) { onewmotley.StopAnimating();}} }
function bOk_OnClick(GUIControl *control, MouseButton button) { playerName = tbName.Text; gName.Visible = false; { if (playerName == "merchandise") { { cVasta.Say("SHHHSSH! Not so loud! You dont know who is listening"); cVasta.Say("Thats right the merchandise, so what you into? Vanilla or chocolate ice cream?"); gName.Visible = true;} // my goal is to make this word chocolate to not mean anything to the npc until he has asked about the "merchandise" if (playerName == "chocolate") { cVasta.Say("Oh we got a gentleman with a great taste here"); cVasta.Say("There you go my good fellow"); } } if (playerName == "yes") { cVasta.Say("Yup, thats some heavy stuff I got here for you"); cVasta.Say("so.. The big question is, which do you like better; chocolate or vanilla ice cream?"); cVasta.Say("'Couse I got plenty of both"); } else cVasta.Say("Hey man, I'm here only to sell my merchandise"); } }
By continuing to use this site you agree to the use of cookies. Please visit this page to see exactly how we use these.
Page created in 0.056 seconds with 13 queries.