Aller au contenu

Photo

[solved] custom character background + disabling import


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

#1
LukaCrosszeria

LukaCrosszeria
  • Members
  • 1 304 messages
Hello everyone,

I followed this tutorial here:
http://social.biowar...rounds_tutorial

to create custom backgrounds for my standalone campaign. Everything worked perfectly, except I want different origins to spawn in diferent places and that's a one thing the tutorial doesn't go into.

I quote: "if you wanted different origins to spawn in different places then you can use the next two columns to specify this (AFAIK you have to write your own scripts to accomplish this though). "

I'm assuming I will have to write those scripts because even though I specified the correcct areas and waypoints in "background_defaults" and then exported it as a gda, when I load the module, it keeps jumping to the default starting area that I specified for the campaign. It's not the gda, because the templates that tell the game which utc to use for character gen work fine.

When I removed the starting area from the module, it said "Unable to load area". Does anyone know what scripts I need? I searched the forums but I couldn't find information about it.

My second problem is, i want to disable the option to import your character, because this is a standalone campaign that is meant to start with players at the same level as the start of Origins. If a level 18-30 Warden is imported, she/he would raze everyone to the ground :P

Modifié par LukaCrosszeria, 03 septembre 2011 - 09:39 .


#2
LukaCrosszeria

LukaCrosszeria
  • Members
  • 1 304 messages
 Well, solved both things myself ><
Just a matter of disabling the import, which I found here:

http://social.biowar...cter_generation

Looking through a plethora of single player scripts, I finally found that this case "EVENT_TYPE_MODULE_CHARGEN_DONE" wasn't being handled in my module script, which called upon this function "Campaign_ChargenDone", which I found in campaign_h. A matter of making my own "campaign_h", deleting all the scripting content except the function, including it in the module script and calling on the Campaign_ChargenDone function. Everything worked like a charm :)

I'll add this to the backgrounds tut on the wiki.

#3
Sunjammer

Sunjammer
  • Members
  • 925 messages
Nice addition.

I've taken the liberty of bringing it in line with the rest of that tutorial (i.e. using the "bdm_" prefix) so I'd be grateful if you could give it a quick look to ensure your are happy with the changes and that I haven't inadvertently broken anything.

I also added a couple of heading to give the reader an idea of the structure. If you can think of any other improvements we can do let me know.

Thanks.

#4
LukaCrosszeria

LukaCrosszeria
  • Members
  • 1 304 messages
 Looks good to me, good that it's in line with the rest of the tutorial :)
I've tested it for all my character backgrounds and everyone gets transported to the right place :wizard:

Modifié par LukaCrosszeria, 03 septembre 2011 - 02:14 .