Aller au contenu

Photo

Well then..


  • Veuillez vous connecter pour répondre
27 réponses à ce sujet

#1
ChaosInTwilight

ChaosInTwilight
  • Members
  • 89 messages
Do I get to plant a flag with my Login on it or something?

If so..   "CiT Was Here"

#2
Lightfoot8

Lightfoot8
  • Members
  • 2 535 messages

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.

#3
Pattycake1

Pattycake1
  • Members
  • 49 messages
Wonder if we can still post scripts here??

#4
Lightfoot8

Lightfoot8
  • Members
  • 2 535 messages
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 .


#5
Selene Moonsong

Selene Moonsong
  • Members
  • 3 390 messages
I think it is workable, just not as elegant as the BioBoards system.

#6
ollebroc

ollebroc
  • Members
  • 3 messages
So this is where you'll are hidin?

#7
Blasco-Yang

Blasco-Yang
  • Members
  • 8 messages
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 .


#8
ChaosInTwilight

ChaosInTwilight
  • Members
  • 89 messages
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.

#9
Chris Lefforge

Chris Lefforge
  • Members
  • 7 messages
This is lame. The old forums were much better. I will still be here anyway :)

#10
Snowbug

Snowbug
  • Members
  • 148 messages
Now imagine posting a really long script.

#11
Baragg

Baragg
  • Members
  • 271 messages
I made it in. Yay me, and yall.

#12
QNecron

QNecron
  • Members
  • 24 messages
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 .


#13
SuperFly_2000

SuperFly_2000
  • Members
  • 1 004 messages

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 .


#14
ChaosInTwilight

ChaosInTwilight
  • Members
  • 89 messages
..had there been a real emergency, instructions would follow.



Sorry, I had to.

#15
Chris Lefforge

Chris Lefforge
  • Members
  • 7 messages
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 .


#16
Knight_Shield

Knight_Shield
  • Members
  • 444 messages
Is there going to be a place to post working scripts ??? I know I browse that section alot!

#17
Chris Lefforge

Chris Lefforge
  • Members
  • 7 messages
what section are you talking about?


#18
archer4217

archer4217
  • Members
  • 105 messages
Hi all,

I'm not a scripter but I am a frequent script question asker and I couldn't let all my friends go someplace new and not come along, so here I am. Can't get rid of me. *snickers*

*hugs to all*

#19
ChaosInTwilight

ChaosInTwilight
  • Members
  • 89 messages
Knight is (I believe) asking if we're gonna put together a homebrew sticky or the like.

#20
Khuzadrepa

Khuzadrepa
  • Members
  • 188 messages
If there was just one thing they did for these forums, it should be the code blocking. It is so much easier to read and didn't take up as much page space in a post.

#21
Knight_Shield

Knight_Shield
  • Members
  • 444 messages
Homebrew section...that would be the best.I even like that word brew lol.

#22
DM_Vecna

DM_Vecna
  • Members
  • 280 messages
*waves* I made it over as well.

#23
DM_Vecna

DM_Vecna
  • Members
  • 280 messages
Second note: I think it would be great if we started a wiki for all the scripting knowledge and working scripts. It is better if you can reference it by subject and add notes to it over time. There is also a wiki reference link on the left, maybe we could add that wiki in there.

#24
Genisys

Genisys
  • Members
  • 525 messages

Knight_Shield wrote...

Homebrew section...that would be the best.I even like that word brew lol.


LM__O!

#25
GhostOfGod

GhostOfGod
  • Members
  • 863 messages
This is going to take some gett'n used to.