public override bool OnInteraction(List <DynamicObj> vecDynobs, DynamicObj target, NATURE nature) { if (target.Name == "sarah") { //g_script.AddCommand(new CommandShowDialog(new List<string>() //{ // "Sarah" //})); //X(ShowDialog({ "[Sarah]", "You have no additional", "quests!" })); //if (g_engine.HasItem(Assets.Instance.GetItem("Health Boost"))) if (g_engine.HasItem(Assets.Instance.GetItem("healthboost"))) // healthboost { //X(ShowDialog({ "[Sarah]", "Woooooow! You have a health", "boost!" })); g_script.AddCommand(new CommandShowDialog(new List <string>() { "Woooooow! You have a health boost!" })); } else { //X(ShowDialog({ "[Sarah]", "Boooooo! You dont have a health", "boost!" })); g_script.AddCommand(new CommandShowDialog(new List <string>() { "Boooooo! You dont have a health boost!" })); } } if (target.Name == "bob") { //X(ShowDialog({ "[Bob]", "I need you to do", "something for me!" })); //X(ShowDialog({ "[Bob]", "Predictably, there are", "rats in my basement!"})); g_script.AddCommand(new CommandShowDialog(new List <string>() { "I need you to do", "something for me!" })); //X(AddQuest(new cQuest_BobsQuest())); //g_script.AddQuest(new cQuest_BobsQuest()); g_engine.AddQuest(new cQuest_BobsQuest()); } return(false); }
public virtual bool OnInteraction(List <DynamicObj> vecDynobs, DynamicObj target, NATURE nature) { return(true); }
public override bool OnInteraction(List <DynamicObj> vecDynobs, DynamicObj target, NATURE nature) { if (target.Name == "sarah") { //X(ShowDialog({ "[Sarah]", "You are doing Bob's", "quest!" })); g_script.AddCommand(new CommandShowDialog(new List <string>() { "bobs quest " })); return(true); } return(false); }
// vector<cDynamic*> &vecDynobs, cDynamic* target, NATURE nature public virtual bool OnInteraction(List <DynamicObj> listDynamicObjs, DynamicObj target, NATURE nature) { return(false); }
public override bool OnInteraction(List <DynamicObj> ListDynamicObjs, DynamicObj target, NATURE nature) { if (target.Name == "Teleport") { g_script.AddCommand(new CommandChangeMap((target as Teleport).sMApName, (target as Teleport).fMapPosX, (target as Teleport).fMapPosY)); } // flyttad till quest //if (target.Name == "bob") //{ // // då vill man att nåt ska hända, typ rita dialog // //var listLines = new List<string>() // //{ // // "bob säger hallo" // //}; // //Command.g_engine.ShowDialog(listLines); // // Typ funkar, spagetti som fan. I för att aktivera och space för att lämna så som hantera knappar ser ut. // g_script.AddCommand(new CommandShowDialog(new List<string>() // { // "bob säger hallo" // })); //} return(false); }
public override bool OnInteraction(List <DynamicObj> ListDynamicObjs, DynamicObj target, NATURE nature) { if (target.Name == "Teleport") { g_script.AddCommand(new CommandChangeMap((target as Teleport).sMApName, (target as Teleport).fMapPosX, (target as Teleport).fMapPosY)); } return(false); }