Do I get to plant a flag with my Login on it or something?
If so.. "CiT Was Here"
Well then..
Débuté par
ChaosInTwilight
, juil. 13 2010 10:31
#1
Posté 13 juillet 2010 - 10:31
#2
Posté 13 juillet 2010 - 10:49
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
Posté 13 juillet 2010 - 11:17
Wonder if we can still post scripts here??
#4
Posté 13 juillet 2010 - 11:33
I was wondering the same. Here goes a copple tests.
First a code block
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.
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
Posté 13 juillet 2010 - 11:50
I think it is workable, just not as elegant as the BioBoards system.
#6
Posté 13 juillet 2010 - 11:56
So this is where you'll are hidin?
#7
Posté 14 juillet 2010 - 01:21
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.
::
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
Posté 14 juillet 2010 - 02:21
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
Posté 14 juillet 2010 - 04:15
This is lame. The old forums were much better. I will still be here anyway
#10
Posté 14 juillet 2010 - 11:10
Now imagine posting a really long script.
#11
Posté 14 juillet 2010 - 01:32
I made it in. Yay me, and yall.
#12
Posté 14 juillet 2010 - 03:05
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
Posté 14 juillet 2010 - 09:05
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
Posté 14 juillet 2010 - 09:07
..had there been a real emergency, instructions would follow.
Sorry, I had to.
Sorry, I had to.
#15
Posté 15 juillet 2010 - 12:00
test in code block
edit: it double spaced my code.
edit 2: now it's single spaced again, lol
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
Posté 15 juillet 2010 - 12:52
Is there going to be a place to post working scripts ??? I know I browse that section alot!
#17
Posté 15 juillet 2010 - 11:32
what section are you talking about?
#18
Posté 17 juillet 2010 - 07:02
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*
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
Posté 17 juillet 2010 - 09:23
Knight is (I believe) asking if we're gonna put together a homebrew sticky or the like.
#20
Posté 19 juillet 2010 - 12:27
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
Posté 19 juillet 2010 - 05:00
Homebrew section...that would be the best.I even like that word brew lol.
#22
Posté 19 juillet 2010 - 07:29
*waves* I made it over as well.
#23
Posté 19 juillet 2010 - 07:32
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
Posté 19 juillet 2010 - 10:00
Knight_Shield wrote...
Homebrew section...that would be the best.I even like that word brew lol.
LM__O!
#25
Posté 20 juillet 2010 - 08:19
This is going to take some gett'n used to.





Retour en haut






