Author Topic: OnPlayerChat based crafting system?  (Read 2337 times)

Legacy_TheSpiritedLass

  • Hero Member
  • *****
  • Posts: 1118
  • Karma: +0/-0
OnPlayerChat based crafting system?
« on: July 22, 2010, 06:07:27 pm »


               Howdy All,

Does anyone one know of a crafting system (both gear and the player themselves) that uses OnPlayerChat instead of being convo based (and thus has 1.4 billion scripts)?  I did a quick search on the vault and did not find any.

-- Mistress, no sense writing one from scratch if it already out there.
               
               

               
            

Legacy_Genisys

  • Hero Member
  • *****
  • Posts: 961
  • Karma: +0/-0
OnPlayerChat based crafting system?
« Reply #1 on: July 22, 2010, 06:18:50 pm »


               I'm not aware of any, that would be a monsterous scripting task. (*Woosh!)

When you say crafting, I'm gonna assume you mean changing items appearance, or are you talking about actually applying properties to items?

If it's properties, then let me direct you to the enchanting gem system, which is located in my new Crafting / Treasure Module... here:  >>    http://www.mediafire...zd6z8x76vbd287b

If it's just changing appearance of items, Mils Tailoring system is just TOO good to ignore mate..
(That system is now standard in CEP Modules)

If you just want a better conversational script for crafting item's appearance, again I'd have to direct you to my module's conversations (under the name "nw_"  conversations =  bioware base crafting conversation which I edited)

I sure hope you use one of the systems, because I can't even see myself wanting to take on a conversation based script routine for Chat for ANY crafting system, even then you would STILL need at least a TagBased Item which fired on the item you targeted for crafting... 

Now, making a tag based item script that allowed you to target one item for crafting, then like um an object in your inventory to use as a crafting component, now that would be another story indeed, (You could use the enchanting gems as a base system!)

Let me know what you want to do, I'll TRY to help where I can, if I haven't answered this call before..


Here is the Enchanting Gem System By itself:

http://www.mediafire...cgdht01ngzs8ii8
               
               

               


                     Modifié par Genisys, 22 juillet 2010 - 05:45 .
                     
                  


            

Legacy_TSMDude

  • Hero Member
  • *****
  • Posts: 1515
  • Karma: +0/-0
OnPlayerChat based crafting system?
« Reply #2 on: July 22, 2010, 06:38:42 pm »


               

TheSpiritedLass wrote...

Howdy All,

Does anyone one know of a crafting system (both gear and the player themselves) that uses OnPlayerChat instead of being convo based (and thus has 1.4 billion scripts)?  I did a quick search on the vault and did not find any.

-- Mistress, no sense writing one from scratch if it already out there.


In short, there is not one.

But both Mad Rabbits and FunkySwerves make use of some good ideas that I think you could easily adapt. I have been combining them and the DMFI over the last three days and am ready to slam my head against a wall, lol, but both of these chat command systems lay the groundwork for some good systems I would say that you would not have a problem tailoring to your needs.

And in thinking about Mad Rabbits would probally be the better one though I make sure you comb through it pretty good or like I did you will acciendelty miss a script and next thing you know your 11th level barbarian bad arse is on his knees like he is doing time in Shawshank...ahem...
               
               

               
            

Legacy_TheSpiritedLass

  • Hero Member
  • *****
  • Posts: 1118
  • Karma: +0/-0
OnPlayerChat based crafting system?
« Reply #3 on: July 22, 2010, 06:47:07 pm »


               Heya Genisys,



Basically I mean *all* types of crafting in one system.  Item appearance, name, description, properties, etc etc.  As well as player body tailoring of description, head, phenotype, etc.  



I want to add this functionality for the players but I am *totally* unwilling to add a ton of scripts in order to do so.  The crafting system I currently have installed works to adjust an item’s appearance, but… wow… the script load is insane (50+ scripts).   Bleck!!



What I’m looking for is something along the lines of what I did with DM commands via an NPC listener (http://nwvault.ign.c...d=20023&id=3477).  Loads of functionality added in just 2 scripts.  Granted, the main control script is pretty long. '<img'>  I did that script before OnPlayerChat was officially released in 1.69.  



Ultimately, I’d like to see the players be able to type in a series of commands do the crafting and alterations.  For instance to change the head model, using Tink (the DM thing mentioned above) I type in “head # playername” and it changes the player’s head to the new number.  It isn’t … idiot proof.  Like if I type in a number that is beyond the range of heads for that race.  *grins*  But that is the general idea.  The player would type in “head”.  Then “n” (for next), “p” (for previous) or a specific number if they know it.



If such a system already exists, great.  That is less work for me.  If not… I know what my next community project is. '<img'>



I’ll take a look at the Mils one.  Guessing that you mean this one:  http://nwvault.ign.c....Detail&id=2919



*pounces on your gem link*  I’ll take a look at this as well.



Thanks for the quick response,

-- Mistress
               
               

               
            

Legacy_Genisys

  • Hero Member
  • *****
  • Posts: 961
  • Karma: +0/-0
OnPlayerChat based crafting system?
« Reply #4 on: July 22, 2010, 06:58:26 pm »


               Insane, lol, my Forge which works off the conversation includes like 500 scripts by itself. :/



Ok, basicallly this is what you would do, to make it work...



Set an Interger on the PC, so when the PC speaks ANYTHING< it checks to see if they have decided to craft by typing a special command like "!craft"



However, the problem is, it's gonna have to search their whole inventory EVERYTIME they say any word, to find the item they are crafting, and then of course with "!craft" you need  "itemname" checked in the "!craft" speech, like so:   "!craft Long Sword of Death +5" or "!cia Armor of Thorn"  whicih (CIA) standsd for Craft Item's Appearance



Now the CIA would loop through the speaker's items worn, find the item named "Armor of Thorn" and allow them to changed the item's appearance by typing "!torso next" which basically would tell the chat scripot to change the Torso to the next appearance...



Still, like I said, it's going to be an ENORMOUS amount of scripting, and secondly your going to give your players a memory headache!! (Something HG needs to be aware of)  Because memorizing chat commands is not something A LOT of people like to do...



Therefore, and you should read why it's here for, the tailoring system Mil created (Body Tailors & his Item Tailors) is second to none (trust me on this), The Rest Conversation I have & The Crafting Conversation I have are also second to none (Because of the numerous systems & functions available), because they allow complete crafting or forging ANYWHERE in the module without the need to type much, just click click click done!  I can't say enough about the rest system I have created, it's truly something I miss when I visit any module, because I was a player & DM before I became a scripter, I realize that the player is more important than the module, not everyone does..



So before you embark on a rather silly journey down a path that will lead to multiple people's frustration, why not just use the great systems that are already available eh?  I'm not telling you have to, but why make all that work for you or anyone else, especially your players, which are your first and foremost reason for building & why you build or host a server or hand out your module, so they can have fun without the headache of learning 100 commands, bleh!



Now, I like lazy, I don't know about anyone else...
               
               

               
            

Legacy_TheSpiritedLass

  • Hero Member
  • *****
  • Posts: 1118
  • Karma: +0/-0
OnPlayerChat based crafting system?
« Reply #5 on: July 22, 2010, 07:07:14 pm »


               Heya TSMDude,



*Inserts a pillow between your head and the wall.*



Now why in the world didn’t that system by MadRabbit (http://nwvault.ign.c....Detail&id=3599) show up in my vault search?!  Harmphs!  You are correct. It is a very good start to what I am looking for.  Plus some.  *grins*  Thanks for the heads up this could save me quite a bit of time.  *beaming*



I'm guessing you meant Funky's Sim tools for NWNx?  Man... I need a whole LINE of drool buckets when looking at that.  Alas, I don't have NWNx installed on my server.  It is most certainly on my wish list for the admin to do.



-- Mistress
               
               

               
            

Legacy_TheSpiritedLass

  • Hero Member
  • *****
  • Posts: 1118
  • Karma: +0/-0
OnPlayerChat based crafting system?
« Reply #6 on: July 22, 2010, 07:13:44 pm »


               *blinks at Genisys*



Wow… okay…



I’m certainly not afraid of scripting, it is what I do.  I’ll be leaving the bulk of your kindly worded advice alone.  *eyes dancing*  Thanks for your time.



-- Mistress, don't mind me, I'll just be off in this corner plotting silly things.
               
               

               
            

Legacy_Knight_Shield

  • Hero Member
  • *****
  • Posts: 812
  • Karma: +0/-0
OnPlayerChat based crafting system?
« Reply #7 on: July 22, 2010, 07:18:41 pm »


               Hey I see there is some forge talk here. I have a question ..I put Omega Forge in my mod..works great except cant get it to recognize tokens so I have set it to just money.Has anyone here looked at this system?
               
               

               
            

Legacy_TheSpiritedLass

  • Hero Member
  • *****
  • Posts: 1118
  • Karma: +0/-0
OnPlayerChat based crafting system?
« Reply #8 on: July 22, 2010, 07:21:28 pm »


               I am not familiar with that system, Knight_Shield, sorry.  Axe and Proleric did a great tutorial in the 1.69 version of the Lexicon dealing with custom tokens.  That might help you trouble shoot the issue if no one else answers with help.
               
               

               
            

Legacy_Genisys

  • Hero Member
  • *****
  • Posts: 961
  • Karma: +0/-0
OnPlayerChat based crafting system?
« Reply #9 on: July 22, 2010, 07:55:52 pm »


               There is a switch in the Omega forge which checks to see what you are using, so you have to open the script and set it to accept tokens, etc... Unless you altered the system, it should worked correctly if you set the switch.


He's talking about the tokens you use to forge with, not Custom Tokens for setting special colors, parmeters, or values in tokens. 

I didn't mean to offend ya, seriously, I just said, it's a monsterous task without a good ending, that's all, sorry..
               
               

               


                     Modifié par Genisys, 22 juillet 2010 - 06:57 .
                     
                  


            

Legacy_TheSpiritedLass

  • Hero Member
  • *****
  • Posts: 1118
  • Karma: +0/-0
OnPlayerChat based crafting system?
« Reply #10 on: July 22, 2010, 08:10:24 pm »


               Heya Genisys,



Yeah... your tone is... hmm...  I'll just be leaving that alone too. '<img'>



I agree it is a monsterous task. Which is why I was checking for some existing system first.  I'm not totally nuts, just mostly.  *sassy grin*



-- Mistress
               
               

               
            

Legacy_Genisys

  • Hero Member
  • *****
  • Posts: 961
  • Karma: +0/-0
OnPlayerChat based crafting system?
« Reply #11 on: July 22, 2010, 08:21:16 pm »


               *snickers*
               
               

               


                     Modifié par Genisys, 22 juillet 2010 - 07:21 .
                     
                  


            

Legacy_GhostOfGod

  • Hero Member
  • *****
  • Posts: 1490
  • Karma: +0/-0
OnPlayerChat based crafting system?
« Reply #12 on: July 22, 2010, 08:56:26 pm »


               

Knight_Shield wrote...

Hey I see there is some forge talk here. I have a question ..I put Omega Forge in my mod..works great except cant get it to recognize tokens so I have set it to just money.Has anyone here looked at this system?


I believe the option to change whether to accept tokens is also in an include script. If you already made changes to that, also make sure you "build" your mod or compile all associated scripts afterward or the change won't take effect.

Just a thought. Good luck.
               
               

               


                     Modifié par GhostOfGod, 22 juillet 2010 - 08:01 .
                     
                  


            

Legacy_Ondaderthad

  • Newbie
  • *
  • Posts: 10
  • Karma: +0/-0
OnPlayerChat based crafting system?
« Reply #13 on: July 23, 2010, 03:50:17 am »


               

GhostOfGod wrote...

Knight_Shield wrote...

Hey I see there is some forge talk here. I have a question ..I put Omega Forge in my mod..works great except cant get it to recognize tokens so I have set it to just money.Has anyone here looked at this system?


I believe the option to change whether to accept tokens is also in an include script. If you already made changes to that, also make sure you "build" your mod or compile all associated scripts afterward or the change won't take effect.

Just a thought. Good luck.

The token in Omega Forge are custom items that are given by a DM or obtained from quests etc.. to limit the amount of crafting a PC can do. Nothing to do with the Custom Token used in conversations.
Even after editing the script AND also rebuilding the module, it is very difficult to get the forge to ask for the tokens.
At best I managed to get it to use one (1) token per forged item even after changing the token costs and any other variable combinations.
Time to have a serious look at the scripts again and check for the bug. (probably just a spelling mistake somewhere in one of the variables)
               
               

               
            

Legacy_GhostOfGod

  • Hero Member
  • *****
  • Posts: 1490
  • Karma: +0/-0
OnPlayerChat based crafting system?
« Reply #14 on: July 23, 2010, 08:43:10 am »


               We used the Omega forge for a long time, till we made our own, and it worked tokens and all. I wasn't the one who set it up or what not but there wasn't anything in particular wrong with the scripts. It's been awhile since I looked at the includes so all I can think is that it is just one of those settings. Unless of course any of the scripts were altered in some other way. ~shrugs~ Sorry I couldn't be more helpful.