Putting the 'role' back in role-playing games since 2002.
Donate to Codex
Good Old Games
  • Welcome to rpgcodex.net, a site dedicated to discussing computer based role-playing games in a free and open fashion. We're less strict than other forums, but please refer to the rules.

    "This message is awaiting moderator approval": All new users must pass through our moderation queue before they will be able to post normally. Until your account has "passed" your posts will only be visible to yourself (and moderators) until they are approved. Give us a week to get around to approving / deleting / ignoring your mundane opinion on crap before hassling us about it. Once you have passed the moderation period (think of it as a test), you will be able to post normally, just like all the other retards.

Aurora Toolset, A Dance with Codex

Gahbreeil

Scholar
Joined
Feb 9, 2021
Messages
1,086
Location
Asarlaíocht
Code:
void main()
{
    object oPC = GetFirstPC();
    object oBrigcounter = GetModule();
    int iSlayedBrigs = GetLocalInt(oBrigcounter, "iSlayedBrigs");
    if (iSlayedBrigs == 0)
        {
        AddJournalQuestEntry("ctf_soul", 2, oPC, TRUE, TRUE, TRUE);
        GiveXPToCreature(oPC, 1000);
        iSlayedBrigs = iSlayedBrigs+1;
        }
    else
    if (iSlayedBrigs == 1 || iSlayedBrigs >= 1)
        {
        iSlayedBrigs = iSlayedBrigs++;
        }
    if (iSlayedBrigs == 3)
        {
        AddJournalQuestEntry("ctf_thebeast", 1, oPC, FALSE);
        }
    if (iSlayedBrigs == 10)
        {
        AddJournalQuestEntry("ctf_thebeast", 2, oPC, FALSE);
        GiveXPToCreature(oPC, 500);
        }
}
What did I do wrong this time? Anyone?
 
Last edited:

Kruyurk

Learned
Joined
Nov 16, 2021
Messages
514
What did I do wrong this time? Anyone?

Code:
void main() {
    object oPC = GetFirstPC();
    object oBrigcounter = GetModule();
    int iSlayedBrigs = GetLocalInt(oBrigcounter, "iSlayedBrigs");
    if (iSlayedBrigs == 0) {
        AddJournalQuestEntry("ctf_soul", 2, oPC, TRUE, TRUE, TRUE, des ptis trous, des ptits trous, encore des ptits trous :) );
        GiveXPToCreature(oPC, 1000);
        iSlayedBrigs = iSlayedBrigs+1;
    } else
    if (iSlayedBrigs == 1 || iSlayedBrigs >= 1) {
        iSlayedBrigs = iSlayedBrigs++;
    }
    if (iSlayedBrigs == 3) {
        AddJournalQuestEntry("ctf_thebeast", 1, oPC, FALSE);
    }
    if (iSlayedBrigs == 10) {
        AddJournalQuestEntry("ctf_thebeast", 2, oPC, FALSE);
        GiveXPToCreature(oPC, 500);
    }
}

I don't know what is wrong with you but your code looks better like this. Also, the else statement is redundant, maybe that is one of your problems.
 

rogueknight333

Arbiter
Joined
Jul 31, 2017
Messages
370
... What did I do wrong this time? Anyone?

What object is running this script? What event triggers it? What is it supposed to do and what is it actually doing instead?

It is a bit difficult to figure out why it is not working as intended without knowing what it is intended to do in the first place, but one possible issue is that "iSlayedBrigs++" only increments the value of that variable for purposes of that particular script. It will not alter the value of the "iSlayedBrigs++" variable set on the module (if that was what you were expecting). You would need something like SetLocalInt(oBrigcounter, "iSlayedBrigs",iSlayedBrigs++) to do that.
 

Gahbreeil

Scholar
Joined
Feb 9, 2021
Messages
1,086
Location
Asarlaíocht
What object is running this script? What event triggers it? What is it supposed to do and what is it actually doing instead?

It is a bit difficult to figure out why it is not working as intended without knowing what it is intended to do in the first place, but one possible issue is that "iSlayedBrigs++" only increments the value of that variable for purposes of that particular script. It will not alter the value of the "iSlayedBrigs++" variable set on the module (if that was what you were expecting). You would need something like SetLocalInt(oBrigcounter, "iSlayedBrigs",iSlayedBrigs++) to do that.
An OnDeath script. It wasn't doing squat. I fixed it on my own.

Code:
void main()
{
    object oPC = GetFirstPC();
    if (GetLocalInt(oPC, "iSlayedBrigs") == 0)
        {
        SetLocalInt(oPC, "iSlayedBrigs", 1);
        AddJournalQuestEntry("ctf_soul", 2, oPC, FALSE, FALSE, TRUE);
        GiveXPToCreature(oPC, 1000);
        }
    else
        {
        SetLocalInt(oPC, "iSlayedBrigs", GetLocalInt(oPC, "iSlayedBrigs")+1);
        if (GetLocalInt(oPC, "iSlayedBrigs") == 3)
            {
            AddJournalQuestEntry("ctf_thebeast", 1, oPC, FALSE, FALSE, TRUE);
            SetLocalInt(GetFirstPC(), "arnahconv", 1);
            }
        else
        if (GetLocalInt(oPC, "iSlayedBrigs") == 10)
            {
            AddJournalQuestEntry("ctf_thebeast", 2, oPC, FALSE, FALSE, TRUE);
            GiveXPToCreature(oPC, 500);
            }
        }
}
 

Gahbreeil

Scholar
Joined
Feb 9, 2021
Messages
1,086
Location
Asarlaíocht
https://neverwintervault.org/project/nwn1/module/caitiff

I'm done, guys. I've read the License for creating modules. The cretins on the NwVault are breaching the law, get what I'm sayin'? I'm not interested in creating high fantasy for a bunch of perverts who don't even know that they're criminals as of the Toolbar -> Help -> About in the Aurora Toolset. The demo is finished, Gargaune, you're the best for helping me to learn scripting. I'll be making my modules for myself from now on, maybe I'll mention it to the Codex if it's playable.
 

ERYFKRAD

Barbarian
Patron
Joined
Sep 25, 2012
Messages
30,104
Strap Yourselves In Serpent in the Staglands Shadorwun: Hong Kong Pillars of Eternity 2: Deadfire Steve gets a Kidney but I don't even get a tag. Pathfinder: Wrath I'm very into cock and ball torture I helped put crap in Monomyth
The cretins on the NwVault are breaching the law, get what I'm sayin'? I'm not interested in creating high fantasy for a bunch of perverts who don't even know that they're criminals as of the Toolbar -> Help -> About in the Aurora Toolset.
I'm sure your local constabulary will be interested in hearing about this.
 

MarathonGuy1337

Educated
Joined
Aug 27, 2022
Messages
160
https://neverwintervault.org/project/nwn1/module/caitiff

I'm done, guys. I've read the License for creating modules. The cretins on the NwVault are breaching the law, get what I'm sayin'? I'm not interested in creating high fantasy for a bunch of perverts who don't even know that they're criminals as of the Toolbar -> Help -> About in the Aurora Toolset. The demo is finished, Gargaune, you're the best for helping me to learn scripting. I'll be making my modules for myself from now on, maybe I'll mention it to the Codex if it's playable.
What your done already here I thought we'd team up and make a home-brew interactive DND campaign that would steal... sorry wrong word borrow heavily from Lord of the Rings and Frieren Beyond Journey's End
smug-frieren.gif

Truly tragic
 

Gahbreeil

Scholar
Joined
Feb 9, 2021
Messages
1,086
Location
Asarlaíocht
https://neverwintervault.org/project/nwn1/module/caitiff

I'm done, guys. I've read the License for creating modules. The cretins on the NwVault are breaching the law, get what I'm sayin'? I'm not interested in creating high fantasy for a bunch of perverts who don't even know that they're criminals as of the Toolbar -> Help -> About in the Aurora Toolset. The demo is finished, Gargaune, you're the best for helping me to learn scripting. I'll be making my modules for myself from now on, maybe I'll mention it to the Codex if it's playable.
What your done already here I thought we'd team up and make a home-brew interactive DND campaign that would steal... sorry wrong word borrow heavily from Lord of the Rings and Frieren Beyond Journey's End
smug-frieren.gif

Truly tragic
I did not say that I'm out of creating a module with the Codex. Read with understanding.
 

Poseidon00

Arcane
Joined
Dec 11, 2018
Messages
2,270
Dang, I was just about to offer my help before I learned you gave up on the idea. I know my way around the toolset rather way but I never felt inspired enough to make a full adventure for myself.
 

Gahbreeil

Scholar
Joined
Feb 9, 2021
Messages
1,086
Location
Asarlaíocht
Dang, I was just about to offer my help before I learned you gave up on the idea. I know my way around the toolset rather way but I never felt inspired enough to make a full adventure for myself.
Hey, read the thread, dude. I don't even know whether you're serious. I'm really about to be up to my nostrils in the Codex's hatespeech.
 
Last edited:

MarathonGuy1337

Educated
Joined
Aug 27, 2022
Messages
160
https://neverwintervault.org/project/nwn1/module/caitiff

I'm done, guys. I've read the License for creating modules. The cretins on the NwVault are breaching the law, get what I'm sayin'? I'm not interested in creating high fantasy for a bunch of perverts who don't even know that they're criminals as of the Toolbar -> Help -> About in the Aurora Toolset. The demo is finished, Gargaune, you're the best for helping me to learn scripting. I'll be making my modules for myself from now on, maybe I'll mention it to the Codex if it's playable.
What your done already here I thought we'd team up and make a home-brew interactive DND campaign that would steal... sorry wrong word borrow heavily from Lord of the Rings and Frieren Beyond Journey's End
smug-frieren.gif

Truly tragic
I did not say that I'm out of creating a module with the Codex. Read with understanding.
I'll be making my modules for myself from now on, maybe I'll mention it to the Codex if it's playable.
????

So team project or solo dev?
 

Gahbreeil

Scholar
Joined
Feb 9, 2021
Messages
1,086
Location
Asarlaíocht
https://neverwintervault.org/project/nwn1/module/caitiff

I'm done, guys. I've read the License for creating modules. The cretins on the NwVault are breaching the law, get what I'm sayin'? I'm not interested in creating high fantasy for a bunch of perverts who don't even know that they're criminals as of the Toolbar -> Help -> About in the Aurora Toolset. The demo is finished, Gargaune, you're the best for helping me to learn scripting. I'll be making my modules for myself from now on, maybe I'll mention it to the Codex if it's playable.
What your done already here I thought we'd team up and make a home-brew interactive DND campaign that would steal... sorry wrong word borrow heavily from Lord of the Rings and Frieren Beyond Journey's End
smug-frieren.gif

Truly tragic
I did not say that I'm out of creating a module with the Codex. Read with understanding.
I'll be making my modules for myself from now on, maybe I'll mention it to the Codex if it's playable.
????

So team project or solo dev?
No one said anything note worthy except for Hag so why would I name my solo devving a team project?
 

MarathonGuy1337

Educated
Joined
Aug 27, 2022
Messages
160
https://neverwintervault.org/project/nwn1/module/caitiff

I'm done, guys. I've read the License for creating modules. The cretins on the NwVault are breaching the law, get what I'm sayin'? I'm not interested in creating high fantasy for a bunch of perverts who don't even know that they're criminals as of the Toolbar -> Help -> About in the Aurora Toolset. The demo is finished, Gargaune, you're the best for helping me to learn scripting. I'll be making my modules for myself from now on, maybe I'll mention it to the Codex if it's playable.
What your done already here I thought we'd team up and make a home-brew interactive DND campaign that would steal... sorry wrong word borrow heavily from Lord of the Rings and Frieren Beyond Journey's End
smug-frieren.gif

Truly tragic
I did not say that I'm out of creating a module with the Codex. Read with understanding.
I'll be making my modules for myself from now on, maybe I'll mention it to the Codex if it's playable.
????

So team project or solo dev?
No one said anything note worthy except for Hag so why would I name my solo devving a team project?
No one really???
shocked.gif

I'm shocked for words
 

Gahbreeil

Scholar
Joined
Feb 9, 2021
Messages
1,086
Location
Asarlaíocht
https://neverwintervault.org/project/nwn1/hakpak/aurora-toolset-portrait-pack

Hi, all. I've, since, understood how to make .haks. This .hak above adds over a hundred portraits into the Aurora Toolset! How cool is that?

Also, can someone help me ask Valine for rights to use her ACAG .hak? I was planning to edit male nudity out and remove most of it. Why? (Elven breasts, hush) IDK whether he/she is still online but the module has taken a massive decline downwards for the worse from what I saw.
 

Gahbreeil

Scholar
Joined
Feb 9, 2021
Messages
1,086
Location
Asarlaíocht
Is there any point in restarting the project? I've let my mind stew and I find that I'd like to return to modding NwN.

I don't have a team which is a massive decline but still. Amidst all the griandose dreams of glory, I have to admit I also have a plea for anyone who's been here.

Cutscene tutorial?
 

Pikoman

Novice
Joined
Dec 30, 2023
Messages
43
In light of the current discussion in the main NwN thread, veering into the ancient conundrum about control of your henchmen, a question has resurfaced in my mind regarding how customizable exactly is the process of choosing how your henchmen levels up. I understand that you wouldn't be able to make a module where it's possible to have fully direct freedom to choose what feats, spells and ability increases your henchmen would choose, but can you make them at least select what class package they use upon levelling up while playing, provided the SoU functionality of telling them what class to take a level in is added to a module?
 

Poseidon00

Arcane
Joined
Dec 11, 2018
Messages
2,270
In light of the current discussion in the main NwN thread, veering into the ancient conundrum about control of your henchmen, a question has resurfaced in my mind regarding how customizable exactly is the process of choosing how your henchmen levels up. I understand that you wouldn't be able to make a module where it's possible to have fully direct freedom to choose what feats, spells and ability increases your henchmen would choose, but can you make them at least select what class package they use upon levelling up while playing, provided the SoU functionality of telling them what class to take a level in is added to a module?

I haven't fully explored the potential of this but I believe it's possible to give them fully customizable leveling paths. You can also give them whatever skills or feats you want at the start.
 

Poseidon00

Arcane
Joined
Dec 11, 2018
Messages
2,270
Is there any point in restarting the project? I've let my mind stew and I find that I'd like to return to modding NwN.

I don't have a team which is a massive decline but still. Amidst all the griandose dreams of glory, I have to admit I also have a plea for anyone who's been here.

Cutscene tutorial?

Yes, there is a point to restarting the project. More NWN content is always good.

Since I lasted posted here I began working on my own thing, I will share my work so far if you want to see what I can do. Happy to collaborate on whatever you're working with. It's about a dozen or so areas, basic quest and faction outlines, stuff like that.
 

Gahbreeil

Scholar
Joined
Feb 9, 2021
Messages
1,086
Location
Asarlaíocht
Since I lasted posted here I began working on my own thing, I will share my work so far if you want to see what I can do. Happy to collaborate on whatever you're working with. It's about a dozen or so areas, basic quest and faction outlines, stuff like that.
Yes, I'm interested. I agree that more NwN content is always good.
In light of the current discussion in the main NwN thread, veering into the ancient conundrum about control of your henchmen, a question has resurfaced in my mind regarding how customizable exactly is the process of choosing how your henchmen levels up. I understand that you wouldn't be able to make a module where it's possible to have fully direct freedom to choose what feats, spells and ability increases your henchmen would choose, but can you make them at least select what class package they use upon levelling up while playing, provided the SoU functionality of telling them what class to take a level in is added to a module?
I believe that you can have control over henchmen in the Toolset where you create them. Here's a link, you're looking for Step 4 if you want to confirm.
 

As an Amazon Associate, rpgcodex.net earns from qualifying purchases.
Back
Top Bottom