Jump to content

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


Recommended Posts

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

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



  • Similar Content

  • Activity

    1. 3

      Crystal Metinstone

    2. 3

      Feeding game source to LLM

    3. 113

      Ulthar SF V2 (TMP4 Base)

    4. 3

      Feeding game source to LLM

    5. 0

      Target Information System

    6. 3

      Feeding game source to LLM

    7. 2

      anti exp explanation pls

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • Create New...

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.