Hi all, I've figured out most of the issue I had with the Dragon Age toolset, inlcuding the VO thing. I am still hung up on one major issue though.
Does anyone happen to know if it is possible to make a script or if there are scripts out there that upon enterting an area level up the player and give them some talent points and unlock specializations?
Also I have custom content specilizations in the single player game that I am unsure how to get into my own custom module, i.e. paladin, necromancer, etc. How can I transfer those to my module?
Thanks in advance.
On area enter script
Débuté par
Lucrane
, févr. 25 2011 07:02
#1
Posté 25 février 2011 - 07:02
#2
Posté 25 février 2011 - 10:17
Create a script for your area that captures EVENT_TYPE_ENTER, and put your level up script in there.
You'll probably want to create a plot flag to set when that happens, so you can make sure this only happens once. That way you won't get the player levelling many times from re-entering the area.
You'd have a block of code in your area script that would look like:
case EVENT_TYPE_ENTER: {
if (!(WR_GetPlotFlag(PLT_LEVEL_UP, FLAG_LEVELLED_UP))) {
WR_SetPlotFlag(PLT_LEVEL_UP, FLAG_LEVELLED_UP, TRUE, TRUE);
//Then your level-up code, or put that code in the plot script, whichever suits.
}
}
I'm leaving out a lot of details as to how to make an area script and which header files you'll need to include, but I'm pretty sure between the scripting tutorials and the character creation page on the wiki you should be able to piece it together easily.
You'll probably want to create a plot flag to set when that happens, so you can make sure this only happens once. That way you won't get the player levelling many times from re-entering the area.
You'd have a block of code in your area script that would look like:
case EVENT_TYPE_ENTER: {
if (!(WR_GetPlotFlag(PLT_LEVEL_UP, FLAG_LEVELLED_UP))) {
WR_SetPlotFlag(PLT_LEVEL_UP, FLAG_LEVELLED_UP, TRUE, TRUE);
//Then your level-up code, or put that code in the plot script, whichever suits.
}
}
I'm leaving out a lot of details as to how to make an area script and which header files you'll need to include, but I'm pretty sure between the scripting tutorials and the character creation page on the wiki you should be able to piece it together easily.
#3
Posté 26 février 2011 - 09:19
Ah thank you fantastic. I was working towards something in that direction but wasn't sure how to put it together. This works. Thanks very much.
Lucrane
Lucrane





Retour en haut






