This thread is to discuss any of the information contained in the Guide: The Complete Guide to Plugins.
Plugins up until now have been a black box, Gotthard and I over at twcenter have made some interesting discoveries on using plugins in game.
This thread is to discuss any of the information contained in the Guide: The Complete Guide to Plugins.
Plugins up until now have been a black box, Gotthard and I over at twcenter have made some interesting discoveries on using plugins in game.
Last edited by Squid; 04-02-2008 at 15:55.
Hmm, interesting stuff. So beyond existing, plugins don't affect gameplay directly, what you're saying is you can use them as a tool for scripting right?
PS, have you added this to the tutorials database?
From what we've discovered, they don't affect gameplay directly at all, according to the quote from Jerome, they don't exist at all as far as the AI is concerned, but we can use them in scripting and in any triggers (trait/advice/ancillary) that we want.
And thanks for reminding me, I'll add it to the database, I'd actually just posted the guide itself.
Thank you Squid for this guide.
Even when I believe it do not open any new scripting possibilities that were not already there due to Buildings (GovernorBuildingExists and GovernorBuildingFinished), the plugins seem to be easier to implement.
Sometimes I need a building to stop some scripts from being triggered twice, but since I do not manage the building files (I'm just the scripter), I need other people in the modding team to include the new building, the new images, etc... It is good to know the plugins do not need extra ui files.
Wait! Does it mean it is possible to remove Plugins using scripts?, because this would indeed increase a lot the possibilities of the scripts. How do you manage to destroy the plugins?Dramatically increases the trait customization that can be done (use to add traits based on control, after x turns of control remove the original cultural plugin and replace with a new one for the new faction)
Btw, a little mistake in the guide: you wrote console_command construct_building instead of create_building.
I corrected the Guide, as of yet we can't remove plugins via script any more than buildings can be removed. I misunderstood some information Gottard was telling me, probably because it sounded so much better that way, and though building could be destoryed via script, when Gotthard was actually talking about actually destorying the building with the plugin via the UI. :DOriginally Posted by Bardo
Also fixed the typo in the create_building command.
Last edited by Squid; 04-09-2008 at 02:39.
Answering some questions from the guide thread itself. If questions could be posted here in the future it would be appreciated.
We haven't had time to do furthur research, but as of this time, we have not found a way to test for their presence in EDB. We did get some odd errors, that seemed to indicate that there might be a way to get it work.
Currently, there is no known way to add capabilities of any sort to a plugin, or to link buiding level capabilities to the presence of a plugin. Plugins' main use is as a scripting aid, as well as for traits/ancillaries and stuff.
Last edited by Squid; 07-02-2008 at 16:02.
This might be a bit of a silly question, but how would you use a script to change the level of the plugin you have on the building? and I may have misunderstood this, but can you have more than one plugin "tree" active on the same building at the same time?
Bookmarks