I have succesfully created and added several items in game. This is fine, however, the script uses a pretty basic logic to determine weather or not to add the item. (If item is not in inventory - then add X) Well this works great to get the item and use it, but what if you sell it? Store it? Destroy it? Well the script sees it's not in your inventory and gives you another. I do not want this to happen as it may encourage "cheating" (selling more or less). I also feel it takes away from what the item means.
Does anyone have additional scripting or scripts/ ideas on how to stop this?
-Thanks
-DarkZen
Add Item Script issue. Script is right, what it does is not. Need Help!
Débuté par
DarkZenLord
, déc. 08 2009 10:26
#1
Posté 08 décembre 2009 - 10:26
#2
Posté 08 décembre 2009 - 10:30
Create a new plot and check for a plot flag instead of the item.
#3
Posté 09 décembre 2009 - 12:17
I seen the plot flag script, I tried it and it actually highlighted "campaigns". I just want it to appear as DLC. Unless I did something wrong. Does the plot flag method highlight "Other Campaigns" mode?
#4
Posté 09 décembre 2009 - 03:19
Hm...
You go to the "Palette Window" and right click and select new->plot
You give your plot a name (e.g. MY_MODS_PLOT and a folder just like any other resource.
In the plot you create a flag and give it a name (e.g. DO_ONCE_ONLY)
In your script you then include wrappers.h and your plot's automatically created include:
No campaigns involved.
You go to the "Palette Window" and right click and select new->plot
You give your plot a name (e.g. MY_MODS_PLOT and a folder just like any other resource.
In the plot you create a flag and give it a name (e.g. DO_ONCE_ONLY)
In your script you then include wrappers.h and your plot's automatically created include:
#include "wrappers_h"
#include "plt_my_mods_plot"
void main()
{
if (WR_GetPlotFlag(PLT_MY_MODS_PLOT, DO_ONCE_ONLY))
return;
(...Whatever...)
WR_SetPlotFlag(PLT_MY_MODS_PLOT, DO_ONCE_ONLY,TRUE)
}
No campaigns involved.
Modifié par J.O.G, 09 décembre 2009 - 03:20 .
#5
Posté 09 décembre 2009 - 03:44
ah yes, a minor script error it seems. Got it working now. Thank you





Retour en haut






