PDA

View Full Version : Spell.cast and XML



stormtov
05-24-2012, 04:18 PM
After having a script warning me the script was waiting for game feed but it was set to unique even though i never turned wanting unique on i found out the problem so thought i would post here case anyone else was having problems and psoibly have the awsome Tilmen see to change the spell.cast routine slightly.

When using status tags it sets want_downstream off and want_downstream_xml on. When you call Spell.cast it saves whether want_downstream_xml is off or on, but does dont turn want_downstream on. So you end up with both feeds turned off!

Work around is turn status_tags off before using Spell.cast and back on again after.

lines 3795 and 3796 are where the problems start:


save_xml_state = script.want_downstream_xml
script.want_downstream_xml = false

just need to save want_downstream state and toggle it on if needed and then back off again at the end.

subzero
05-24-2012, 07:27 PM
Hrm, I wonder if this had something to do with my illusion script utterly failing to determine which demon was summoned. Probably not, but something to ponder anyway.