Author Topic: Well then..  (Read 756 times)

Legacy_ChaosInTwilight

  • Full Member
  • ***
  • Posts: 126
  • Karma: +0/-0
Well then..
« on: July 13, 2010, 11:31:43 pm »


               Do I get to plant a flag with my Login on it or something?

If so..   "CiT Was Here"
               
               

               
            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
Well then..
« Reply #1 on: July 13, 2010, 11:49:58 pm »


               

ChaosInTwilight wrote...

Do I get to plant a flag with my Login on it or something?

If so..   "CiT Was Here"

 


Ahh,  Guess Im in second place. *grumbles*


Guess we will just have to hold our breath and see how this works out.


Im off to do some searching on what kind of BBC/ code blocks we can post here.
               
               

               
            

Legacy_Pattycake1

  • Jr. Member
  • **
  • Posts: 98
  • Karma: +0/-0
Well then..
« Reply #2 on: July 14, 2010, 12:17:21 am »


               Wonder if we can still post scripts here??
               
               

               
            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
Well then..
« Reply #3 on: July 14, 2010, 12:33:35 am »


               I was wondering the same. Here goes a copple tests.


First a code block



int AreaGetIsPlayerInArea(object oArea )
{
object oPC= GetFirstPC();
while (GetIsObjectValid(oPC))
{
if (GetArea(oPC)==oArea) return TRUE;
}
return FALSE;
}



and now a nwscript block.

[nwscript]


int AreaGetIsPlayerInArea(object oArea )
{
object oPC= GetFirstPC();
while (GetIsObjectValid(oPC))
{
if (GetArea(oPC)==oArea) return TRUE;
}
return FALSE;
}


[/nwscript]

Keeping fingers crossed and Submitting.


EDIT: the results from both blocks do not look encouraging. With out the script Blocks I am not sure how much use this site will get from the NWN1 scripters.
               
               

               


                     Modifié par Lightfoot8, 13 juillet 2010 - 11:41 .
                     
                  


            

Legacy_Selene Moonsong

  • Jr. Member
  • **
  • Posts: 86
  • Karma: +0/-0
Well then..
« Reply #4 on: July 14, 2010, 12:50:26 am »


               I think it is workable, just not as elegant as the BioBoards system.
               
               

               
            

Legacy_ollebroc

  • Newbie
  • *
  • Posts: 6
  • Karma: +0/-0
Well then..
« Reply #5 on: July 14, 2010, 12:56:01 am »


               So this is where you'll are hidin?
               
               

               
            

Legacy_Blasco-Yang

  • Newbie
  • *
  • Posts: 16
  • Karma: +0/-0
Well then..
« Reply #6 on: July 14, 2010, 02:21:44 am »


               Well, I sure am going to miss the old way of doing things.Eight years with the old forums and all the old gang.
I hope we don't lose too many in the transition. I've never met any of you in the real world, but after all these years I feel I've gotten a pretty good handle on nearly everyone's personalities and consider the vast majority of you freinds.
Here's hoping for the best.

::
 
               
               

               


                     Modifié par Blasco-Yang, 14 juillet 2010 - 01:22 .
                     
                  


            

Legacy_ChaosInTwilight

  • Full Member
  • ***
  • Posts: 126
  • Karma: +0/-0
Well then..
« Reply #7 on: July 14, 2010, 03:21:23 am »


               Presently, I like the code blocks better(Of the two evils presented in this thread) as its different font style.  Still not eloquent though.  I'm keeping fingers crossed for some love in that regard.
               
               

               
            

Legacy_Chris Lefforge

  • Newbie
  • *
  • Posts: 14
  • Karma: +0/-0
Well then..
« Reply #8 on: July 14, 2010, 05:15:45 am »


               This is lame. The old forums were much better. I will still be here anyway '<img'>
               
               

               
            

Legacy_Snowbug

  • Newbie
  • *
  • Posts: 34
  • Karma: +0/-0
Well then..
« Reply #9 on: July 14, 2010, 12:10:34 pm »


               Now imagine posting a really long script.
               
               

               
            

Legacy_Baragg

  • Sr. Member
  • ****
  • Posts: 496
  • Karma: +0/-0
Well then..
« Reply #10 on: July 14, 2010, 02:32:53 pm »


               I made it in. Yay me, and yall.
               
               

               
            

Legacy_QNecron

  • Newbie
  • *
  • Posts: 42
  • Karma: +0/-0
Well then..
« Reply #11 on: July 14, 2010, 04:05:05 pm »


               Well that code block does not bode well for scripting at all, I wonder if there is anything the admins could do to incorporate something like the old NWN forums?
               
               

               


                     Modifié par QNecron, 14 juillet 2010 - 03:43 .
                     
                  


            

Legacy_SuperFly_2000

  • Hero Member
  • *****
  • Posts: 1292
  • Karma: +0/-0
Well then..
« Reply #12 on: July 14, 2010, 10:05:09 pm »


               


I'm writing this now within code brackets. Well...its not in a box...but at least I can see all of the text...hmm...not that bad? Or everyone miss the boxes?



Maybe they can be done somehow...or something similar...like a table in BBCode...


               
               

               


                     Modifié par SuperFly_2000, 14 juillet 2010 - 09:08 .
                     
                  


            

Legacy_ChaosInTwilight

  • Full Member
  • ***
  • Posts: 126
  • Karma: +0/-0
Well then..
« Reply #13 on: July 14, 2010, 10:07:10 pm »


               ..had there been a real emergency, instructions would follow.



Sorry, I had to.
               
               

               
            

Legacy_Chris Lefforge

  • Newbie
  • *
  • Posts: 14
  • Karma: +0/-0
Well then..
« Reply #14 on: July 15, 2010, 01:00:52 am »


               test in code block
edit: it double spaced my code.
edit 2: now it's single spaced again, lol

int bhCheck(object oNPC, int nOption);
#include "pqj_inc"
#include "nw_i0_plot"
void main()
{
  object oPC           = GetPCSpeaker();
  SetLocalInt(oPC, "CheckResult", bhCheck(OBJECT_SELF, GetLocalInt(oPC, "DialogOption")));
}
int bhCheck(object oNPC, int nOption)
{
  object oPC           = GetPCSpeaker();
  string sNPC          = GetTag(oNPC);
  string sArea         = GetTag(GetArea(oNPC));
  int    nGold         = GetGold(oPC);
  object oMod = GetModule();
// Surface NPCs
// Juno
  if (sNPC == "StanFetter")
    {
      if (nOption ==  1)return TRUE;
    }
  if (sNPC == "HighPriestBannen")
    {
      if (nOption ==  2)return TRUE;
    }
  if (sNPC == "PathelaJard")
    {
      if (nOption ==  3)return TRUE;
    }
  if (sNPC == "JunoGaurd1")
    {
      if (nOption ==  4)return TRUE;
    }
  if (sNPC == "JunoGaurd2")
    {
      if (nOption ==  4)return TRUE;
    }
  if (sNPC == "JunoGaurd3")
    {
      if (nOption ==  4)return TRUE;
    }
  if (sNPC == "JunoGaurd4")
    {
      if (nOption ==  4)return TRUE;
    }
  if (sNPC == "JunoGaurd5")
    {
      if (nOption ==  4)return TRUE;
    }
  if (sNPC == "JunoGaurd6")
    {
      if (nOption ==  4)return TRUE;
    }
  if (sNPC == "JunoGaurd7")
    {
      if (nOption ==  4)return TRUE;
    }
  if (sNPC == "JunoGaurd8")
    {
      if (nOption ==  4)return TRUE;
    }
  if (sNPC == "MerlinWebster")
    {
      if (nOption ==  5)return TRUE;
    }
  if (sNPC == "KingGoodman")
    {
      if (nOption ==  6)if(RetrieveQuestState("TheLichQueen", GetPCSpeaker()) != 3)return TRUE;
      if (nOption ==  7)if(RetrieveQuestState("TheLichQueen", GetPCSpeaker()) == 2)return TRUE;
      if (nOption ==  8)if(RetrieveQuestState("TheLichQueen", GetPCSpeaker()) == 3)return TRUE;
      if (nOption ==  10)return TRUE;
    }
  if (sNPC == "CaptainNorris")
    {
      if (nOption ==  9)return TRUE;
    }
  if (sNPC == "CaptainBlake")
    {
      if (nOption ==  11)return TRUE;
    }
  if (sNPC == "CeldorTheShopkeep")
    {
      if (nOption ==  12)return TRUE;
    }
  if (sNPC == "BigDaveTheBarkeep")
    {
      if (nOption ==  13)return TRUE;
    }
  if (sNPC == "Ashane")
    {

      if (nOption ==  14)return TRUE;
      if (nOption ==  15)if(RetrieveQuestState("HuntingForHides", GetPCSpeaker()) == 0)return TRUE;
      if (nOption ==  16)
        {
        string sItemNeeded = "CougarPelt";
        int nNumberNeeded = 10;
        int nHowManyDoesPCHave = GetNumItems(oPC,sItemNeeded);
        if(RetrieveQuestState("HuntingForHides", oPC) == 1 && nHowManyDoesPCHave >= nNumberNeeded)
        return TRUE;
        }
      if (nOption ==  17)
        {
        string sItemNeeded = "CragCatPelt";
        int nNumberNeeded = 15;
        int nHowManyDoesPCHave = GetNumItems(oPC,sItemNeeded);
        if(RetrieveQuestState("HuntingForHides", oPC) == 2 && nHowManyDoesPCHave >= nNumberNeeded)
        return TRUE;
        }
      if (nOption ==  18)
        {
        string sItemNeeded = "BearPelt";
        int nNumberNeeded = 20;
        int nHowManyDoesPCHave = GetNumItems(oPC,sItemNeeded);
        if(RetrieveQuestState("HuntingForHides", oPC) == 3 && nHowManyDoesPCHave >= nNumberNeeded)
        return TRUE;
        }
      if (nOption ==  19)
        {
        string sItemNeeded = "NW_IT_MSMLMISC10";
        int nNumberNeeded = 25;
        int nHowManyDoesPCHave = GetNumItems(oPC,sItemNeeded);
        if(RetrieveQuestState("HuntingForHides", oPC) == 4 && nHowManyDoesPCHave >= nNumberNeeded)
        return TRUE;
        }
    }
  if (sNPC == "PerodoSveffinkdser")
    {
      if (nOption ==  20)return TRUE;
      if (nOption ==  21)if(GetItemPossessedBy(oPC, "NW_IT_MSMLMISC13")!= OBJECT_INVALID)return TRUE;
      if (nOption ==  22)
      {
        string sItemNeeded = "NW_IT_MSMLMISC13";
        int nNumberNeeded = 2;
        int nHowManyDoesPCHave = GetNumItems(oPC,sItemNeeded);
        if(nHowManyDoesPCHave >= nNumberNeeded)
        return TRUE;
      }
      if (nOption ==  23)
      {
        string sItemNeeded = "NW_IT_MSMLMISC13";
        int nNumberNeeded = 3;
        int nHowManyDoesPCHave = GetNumItems(oPC,sItemNeeded);
        if(nHowManyDoesPCHave >= nNumberNeeded)
        return TRUE;
      }
      if (nOption ==  24)
      {
        string sItemNeeded = "NW_IT_MSMLMISC13";
        int nNumberNeeded = 4;
        int nHowManyDoesPCHave = GetNumItems(oPC,sItemNeeded);
        if(nHowManyDoesPCHave >= nNumberNeeded)
        return TRUE;
      }
      if (nOption ==  25)
      {
        string sItemNeeded = "NW_IT_MSMLMISC13";
        int nNumberNeeded = 5;
        int nHowManyDoesPCHave = GetNumItems(oPC,sItemNeeded);
        if(nHowManyDoesPCHave >= nNumberNeeded)
        return TRUE;
      }
    }
return FALSE;
}




               
               

               


                     Modifié par Chris Lefforge, 15 juillet 2010 - 12:03 .