Jump to content
×
×
  • Create New...
  • 0

How can I save in a global flag a string variable?


Dimmi

Question

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

  • Answers 4
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

4 answers to this question

Recommended Posts

  • 0

Save the player id instead of player name ^^

 

I put some global variables in translate.lua and use them. Not it works perfectly. :D

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.