lfnetwork.com mark read register faq members calendar

Thread: Qui-Gon's Script Shack
Thread Tools Display Modes
Post a new thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Prev Previous Post   Next Post Next
Old 09-21-2011, 05:11 AM   #1
Qui-Gon Glenn
Necessary Roughneck
 
Qui-Gon Glenn's Avatar
 
Join Date: May 2007
Location: Thessia
Posts: 1,465
Current Game: ME3MP, Arkham Origins
Folder extraordinaire Helpful! Forum Veteran Veteran Modder 
Qui-Gon's Script Shack

Well, this has been a long time in coming, and this is not really how I thought I would get it started, but oh well here we go. This first post will be heavily edited, so for today we will just start with the basic idea of the thread.

The Premise
-------------------------------------------------------------

I like to dabble in things, modding wise. I am not especially talented in any of them, but I guess I like the challenge of scripting, so that is where I find myself most of the time when involving myself in Holowan-style activities.

There are some tutorials on scripting that are quite excellent, and I have some example oriented add-on tutorials half-written for some of the superb work of tk102 and stoffe. However, scripting can be a very dry or confusing subject, and so I have always wanted to have an area where I could work out loud on the scripts I am working on, and also share smart scripts that I find or make that might be helpful. It is hopefully also a place where I can learn a few things, from the masters as well as the rooks.

Also, this is a place to ask for help with a script! Please though, do me a little courtesy and don't just turn this into a script request thread - I am not that skilled, and I have better things to do. However, if you are confused by something, or are having a hard time working something out, or are just stuck - share what you have, and we can try to work through it together. If I can't get it, I will bother some of my scripting mentors enough that maybe they will post a clue!

As I said, this post will be edited a great deal. I am starting it right now because I feel guilty to be hijacking j7's tinkering's thread

That said, the first post for now shall contain the recent little script I am working on for Force Fashion K1. I think it is a useful template for giving specific items according to class, and anyone can use it - I don't expect a credit in your ReadMe (unless I actually make new scripts for ya ) so feel free to use and alter and *improve* at will!

Quote:
Originally Posted by Myself the Hijacker View Post
Just thought I would share this in this thread, since it is active and it does pertain to part of FFK1...
or I was just trying to be a shiny object. ooooooh

This might be a handy script for many folks, so I am sharing it here as a generic script that you can cut & paste, with simple variable name substitution. This will spawn specific items in a container according to a PC's class.

Code:
// qg - to spawn class-specific clothing to a container
//       9/20/2011

/* int CLASS_TYPE_SOLDIER       = 0;
   int CLASS_TYPE_SCOUT         = 1;
   int CLASS_TYPE_SCOUNDREL     = 2;
   int CLASS_TYPE_JEDIGUARDIAN  = 3;
   int CLASS_TYPE_JEDICONSULAR  = 4;
   int CLASS_TYPE_JEDISENTINEL  = 5;
   int CLASS_TYPE_COMBATDROID   = 6;
   int CLASS_TYPE_EXPERTDROID   = 7;
   int CLASS_TYPE_MINION        = 8; */

void main()
{
   object oPC=GetFirstPC();
   object oContainer=GetObjectByTag("containertag");
   int iClass=GetClassByPosition(1,oPC);

   switch (iClass) 
   {
      case 0:
         CreateItemOnObject("soldier",oContainer,1);
         break;  
      case 1:
         CreateItemOnObject("scout",oContainer,1);
         break;
      case 2:
         CreateItemOnObject("scoundrel",oContainer,1);
         break;
   }
}
So, there is a general example of what is going on here. I will be reserving the first post after this one, for the possibility that something actually happens here and there is a need down the road for a little organization.

Happy Modding

Credits: tk102, stoffe, beancounter, RedHawke, DarthStoney, bead-v, Varsity Puppet, Pavlos, Tupac Amaru and JdNoa - I learned it from watching you, ok?!?!?!!!


Want to play a game of ME3MP?
Qui-Gon_Glenn on the software of which we shall not name.... add me and the enemy shall fall in chunks of crimson salsa

Last edited by Qui-Gon Glenn; 09-21-2011 at 06:33 AM.
Qui-Gon Glenn is offline   you may: quote & reply,
Post a new thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > Knights of the Old Republic > Editing / Modding > Holowan Laboratories > Qui-Gon's Script Shack

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:37 PM.

LFNetwork, LLC ©2002-2011 - All rights reserved.
Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.