Aller au contenu

Photo

Creating new companions


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

#1
Dystopian Dream

Dystopian Dream
  • Members
  • 20 messages
How do you create new companions to join you in the game? Is there a tutorial on how to do so?

#2
TheGreenLion

TheGreenLion
  • Members
  • 513 messages
That would be one hell of a project, just thinking about all the processes makes my brain squeal in agony.

#3
Dystopian Dream

Dystopian Dream
  • Members
  • 20 messages
I was looking to possibly add Sarevok to the game.

#4
invaderzem

invaderzem
  • Members
  • 19 messages
I am also interested to know how to do this.

#5
ladydesire

ladydesire
  • Members
  • 1 928 messages
I could write up a tutorial on this once I've finished adding some companions for my custom class and its specializations.

#6
IronVanguard

IronVanguard
  • Members
  • 620 messages
That would be helpful, if you could.

#7
DLAN_Immortality

DLAN_Immortality
  • Members
  • 481 messages
I'm in the early steps. I'm able to add a guy to the party and whatnot, but of course I'd be interested in knowing how someone else did it. :-)



Also I'd be interested to know how to add him to the roster of companions (when you have to choose the 3 that will accompany you in your adventures).



So, yeah. That would be very helpful. :-)

#8
Ginggis Khan

Ginggis Khan
  • Members
  • 71 messages
Its possible to add an NPCs through the plot and script - UT_HireCompanion or something like that. DEMO module does that, its very clear how. What I am wondering is that how to make them level up and gain more skills like in single player campaign. Probably a hell lot of scripting including a lot of RW_ functions and what not. I'll subscribe in case someone we'll post some very detailed tutorial with extra options like leveling and skill gaining.

#9
ArnX

ArnX
  • Members
  • 12 messages
Actually you add NPCs to your party through scripts via a Conversation. A sample script would be:

// Script Start

#include "utility_h"     // Must have this "include" file to map the UT_ Hire/FireFollower()
#include "hr_constants_h"    // This contains all my CONSTANTS used in other scripts

void main()
{
    object oCompanion =GetObjectByTag("yasgur",0);
    UT_HireFollower(oCompanion,TRUE);
}
// End script

The parameters for the  UT_HireFollower()  are the  NPC and TRUE or FALSE to toggle if the Companion auto- levels up.

You then change some variables in your NPCs resource settings:
Packaging / Scaling > Package AI 
Set the varialble to   AIP_Follower_  or choose one of the OC Followers
ie:  AIP_Follower_Sten   gets you Sten's abilities.
I hope this helps.

As a side note:  Whe I fire the companion he shows up naked, I need to look into that ;)
Looked into it:
What I found was that the NPC spawned as a level 1 and he is equipped with equipment that requires stats he does not yet have.  He has 16 STR and cannot use the items I put in his inventory that require level 18 STR.  So on the initial spawn he is equiped but on the respawn after firing him he is nekid.... and cannot re-equip those items ...back to the drawing board ;)

Modifié par ArnX, 30 novembre 2009 - 10:38 .


#10
Talisander

Talisander
  • Members
  • 173 messages
So ArnX, using your piece of scripting there, a companion is added who gains experience and can be manually leveled up by the player?

#11
AustrianAndI

AustrianAndI
  • Members
  • 159 messages
subscribing to this topic in hopes of finding a tutorial on creating custom companions who are added to the roster much like the others =]

#12
ArnX

ArnX
  • Members
  • 12 messages

Talisander wrote...

So ArnX, using your piece of scripting there, a companion is added who gains experience and can be manually leveled up by the player?


Actually I am still learning the fine points of setting up companions / followers. The " UT_hire/fire..." is to be used for those temporary followers, such as an escort quest, etc.  The
WR_SetFollowerState(oCompanion,FOLLOWER_STATE_SUSPENDED);    should be used for companions.
                                                                                                      <_ACTIVE >  <AVAILABLE> <UNAVAILABLE>
I am tying to figure out how to re-invite a companion back after removing them from the party. Once they are removed from the party thier Conversation no longer works. Also if you travel to a different zone, after removing a party member,  that member disappears.  I am currently using a script for each character's conversation, but there must be a better way using EVENT_TYPE  handlers.
The problem with the follower getting naked is handled by:
UT_FireFollower(oFollower,FALSE,FALSE);     Where the second int FALSE is a toggle for their equipment.
So it would seem that when removing a party member, I would need to create on in a differents area like a camp then re-invite them there...  I hope this makes sense.. and if anyone can make this clearer please feel free.

#13
Pilsberimann

Pilsberimann
  • Members
  • 12 messages
I there



i´m pretty intrested in adding new companions to the game, but these a now real new companions e.g. i want to add Gorim as a companion for the whole game and not only for the drawfen noble origin. Would this make it easier in my way, furthermore is it yet possible ?



i hope so : O

#14
SeveQ

SeveQ
  • Members
  • 2 messages
Agreed. Anything new here? I'd like to have Lanaya as Companion. :)

#15
astrobot702

astrobot702
  • Members
  • 41 messages
It would be awesome to recruit Cullen... He rocks...LAWL

#16
Keviant

Keviant
  • Members
  • 23 messages
I too would want a tutorial for this, if anyone can message me a tutorial to make my own companions, please do.

#17
jack of the night

jack of the night
  • Members
  • 12 messages
meto sombody put this on rush delivery!!!!!!!!!!!!!!!!!!!!!!!!!!

#18
RGC_Ines

RGC_Ines
  • Members
  • 604 messages
here You have tutorials: http://social.biowar...x.php/Tutorials

#19
Narrsan

Narrsan
  • Members
  • 274 messages
http://social.biowar...llower_tutorial
For the lazy.

Modifié par Narrsan, 13 juin 2010 - 05:52 .


#20
Balmondt

Balmondt
  • Members
  • 32 messages
i tried this tutorial and got stuck on one specific point... dragging and dropping the partypicker excel files into the ExcelProcessor. I get a message saying: bad variable type definition '12.000000...etc
I can't go any further without this. Can anyone help me?

also, on a side note. Can someone direct me to the location of a tutorial for creating rewards and finishing quests?
I'm trying to make it so once I have a certain object in my inventory, a plot flag will be raised. I know how to start a quest, I am just unsure of how to add updates and finish them. lol.
---------------------------------------------------
Oh, and one more thing before I go in one of my conversations between two different people my second guy doesn't show up. He's invisible... :blush:

Modifié par Balmondt, 16 décembre 2010 - 01:19 .


#21
Proleric

Proleric
  • Members
  • 2 343 messages

Balmondt wrote...

i tried this tutorial and got stuck on one specific point... dragging and dropping the partypicker excel files into the ExcelProcessor. I get a message saying: bad variable type definition '12.000000...etc
I can't go any further without this. Can anyone help me?

also, on a side note. Can someone direct me to the location of a tutorial for creating rewards and finishing quests?
I'm trying to make it so once I have a certain object in my inventory, a plot flag will be raised. I know how to start a quest, I am just unsure of how to add updates and finish them. lol.
---------------------------------------------------
Oh, and one more thing before I go in one of my conversations between two different people my second guy doesn't show up. He's invisible... :blush:

I haven't seen this ExcelProcessor message, but it sounds as though the heading rows are missing from your .xls. At minimum, each sheet needs the two heading rows from the original, plus at least one data row.

Rewards are easy. In the rewards.xls spreadsheet, you give each reward a meaningful quest-related name and define the money, XP and/or items the player will receive. You can also define a "reward" that takes money from the player by specifying a negative amount.

Reopen the toolset and open the plot. You can now use the Reward column to associate a reward with a plot flag. When that flag is set (in conversation or whatever), the player gets the reward. If the Final column is set to Yes, the quest closes in the journal.

There's a tutorial on campaign items. WR_SetPlotFlag can be used to do what you need when the item is acquired.

There are many reasons why someone doesn't show up in conversation. Is the creature tag in conversation the same as the instance in the area? Is the creature inactive or otherwise invisible? If the problem is neither of those, it might help to post screenshots.

#22
Balmondt

Balmondt
  • Members
  • 32 messages
i made another line in the .xls file and the reward doesn't show up when i try to add it to the plot flag.

#23
Proleric

Proleric
  • Members
  • 2 343 messages
There is a toolset bug which affects several 2DA files, including rewards.

Can you see the custom reward if you re-open the toolset then try to edit the plot before doing anything else?

If not, your custom 2DA isn't right. The custom line number has to be unique. Try double-checking the spreadsheet for format errors, then ensure that the latest Excel processor output is in your module override.

#24
Balmondt

Balmondt
  • Members
  • 32 messages
No i can not see it, even then. Also i am unsure of where exactly to place the EVENT_TYPE_MODULE_GETCHARSTAGE. I tried to place it in my chargen main module script but it wouldn't compile.

#25
Proleric

Proleric
  • Members
  • 2 343 messages
Your module event script needs to be structured something like this:

[dascript]
// This is a snippet, not the whole script
switch(nEventType)
{
// MODULE START - Character Generation
case EVENT_TYPE_MODULE_START:
{
/* do stuff */
break;
}
// GETCHARSTAGE - overlay our Party Picker stage
case EVENT_TYPE_MODULE_GETCHARSTAGE:
{
SetPartyPickerStage("coc_char_stage", "partypicker");
break;
}
// CHARGEN IMPORT HERO
case EVENT_TYPE_CHARGEN_IMPORT_HERO:
{
/* do stuff */
break;
}
// and so on...
[/dascript]


Can you post your rewards table?