Control script

Get Help on scripting in POL with configurations, config setups, script trouble shooting, etc.
Post Reply
Nightson
Neophyte Poster
Posts: 33
Joined: Mon Apr 02, 2007 1:13 pm

Control script

Post by Nightson »

When i start control script for some item then shutdown pol and start it again did i have to run this script again or is it running?
User avatar
CWO
POL Expert
Posts: 1160
Joined: Sat Feb 04, 2006 5:49 pm

Re: Control script

Post by CWO »

If its set in itemdesc.cfg as the ControlScript for the item, it should run for that item on item creation and system start for that item.
Nightson
Neophyte Poster
Posts: 33
Joined: Mon Apr 02, 2007 1:13 pm

Re: Control script

Post by Nightson »

well it isnt it starts when someone identify item then is start_script(":magic:MagicControl",item)
User avatar
CWO
POL Expert
Posts: 1160
Joined: Sat Feb 04, 2006 5:49 pm

Re: Control script

Post by CWO »

Well you're starting it with start_script which could be a control script but isn't by POL's definition. If you always want a script to run for a certain objtype, you can use the setting in itemdesc.cfg -> ControlScript :magic:MagicControl otherwise any other way you would always have to start it yourself. You can use a start.src to start when POL starts but if you're doing it on every one of a certain item, you should use the itemdesc.cfg setting.
Nightson
Neophyte Poster
Posts: 33
Joined: Mon Apr 02, 2007 1:13 pm

Re: Control script

Post by Nightson »

thx
Post Reply