Dimmi 19 Posted April 15, 2015 Share Posted April 15, 2015 Hi guys, I need some help, I tried to develop a new quest and I got a problem: I can't save in a global flag (game.set_event_flag) a variable (string). I tried: game.set_event_flag("spiderowner", pc.get_name()) and didn't work, in global flag it saves "0". So, I tried: d.setf("spiderowner", pc.get_name()) and same thing. I can save in those flags only integer variables... How can I save a string variable? Thanks! Link to comment Share on other sites More sharing options...
FakedMan 14 Posted April 15, 2015 Share Posted April 15, 2015 Save the player id instead of player name ^^ Link to comment Share on other sites More sharing options...
Dimmi 19 Posted April 15, 2015 Author Share Posted April 15, 2015 Save the player id instead of player name ^^ I put some global variables in translate.lua and use them. Not it works perfectly. But I've other problem, d.spawn_mob function dosen't spawn mobs. Why? And something, somehow, I changed the sd3 type, this is not anymore dungeon because if I put this function in quest pc.in_dungeon() it returns false... So... I think that's why... Link to comment Share on other sites More sharing options...
Premium MrLibya 554 Posted April 16, 2015 Premium Share Posted April 16, 2015 thos function and even function ..etc just take number not string If you're going to do something, then do it right. Link to comment Share on other sites More sharing options...
Dimmi 19 Posted April 16, 2015 Author Share Posted April 16, 2015 I got it... So I tried to put some global variables. The only chance to do this was to put variables in translate.lua. How can I put global variables inside the quest? Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now