Changing NPC attitude
Posted 08 September 2013 - 07:08 AM Changing NPC attitude
Currently I've tried creating a scen state that sets a flag, once the flag is set, I created a call in the creature script to change the attitude.
Everything works, up until the creature script. This is what it looks like:
if (get_flag(50,1) == 1)
For some reason, START_STATE doesn't recognise the get_flag call. So it wont work in there.
This seems to work in the INIT_STATE, but only before entering a town with that creature. But if I enter a town, and then use the supposed item which changes the flag, it won't have an effect on the creature's attitude until i leave and come back.
Does anyone have a work around? or solution to this matter? perhaps an alternative method? or even a cookie?
Posted 08 September 2013 - 04:10 PM Changing NPC attitude
Posted 09 September 2013 - 11:45 AM Changing NPC attitude
SoT: You'd be happy, too, if you were such a clever spider.
Ephesos: In conclusion, yarr.
Kelandon's Pink and Pretty Page!!
Posted 09 September 2013 - 12:42 PM Changing NPC attitude
Posted 09 September 2013 - 07:46 PM Changing NPC attitude
EDIT: Ok I realise now that in the START_STATE it only recognises get_sdf rather than get_flag. Thanks for that guys.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users