help changing map color via code. [Quest]

0 votes
33 views
asked Aug 8 in Authoring by RanDumSocks (28 points)
edited Aug 8 by RanDumSocks

I am newer to the syntax of Quest so forgive me if I as a lot of questions.

I am looking to change the gridfill color of a specific room's map. I have tried changing the color via interacting with an object withing the room which gridfill color I want to change.

I have tries this:
exampleRoom.grid_fill="Green"

no error pops up but the room color ceases to change. I have also tried RGB numbers and hex, thought I might try everything before I ask. I am obviously referring incorrectly to the specific attribute I want to change, or Quest is giving me the bird so to speak :D

EDIT: I have fount that this code works, but the map color won't update. Is there some type of refresh or reload function for maps that will still keep the user's map data?

Help would be much appreciated!

1 Answer

0 votes
answered Aug 8 by RanDumSocks (28 points)
 
Best answer

Sorry let me answer my own question in case someone has the same. I fixed the issue. I had to manually call the function:

Grid_Redraw() 

to update the color then:

Grid_DrawPlayerInRoom() 

to add the player dot. I am clueless why this doesn't just update automatically, must be some type of error.

This site is now closed.
As of 1st November 2015, this site is a read-only archive. For more information see the intfiction forum post

Welcome to IF Answers, a site for questions and answers about Interactive Fiction.

Technical questions about interactive fiction development tools such as Inform, Twine, Quest, QuestKit, Squiffy, Adrift, TADS etc. are all on-topic here.

Non-technical questions about interactive fiction are also on-topic. These questions could be about general IF design, specific games, entering the IF Comp etc.
...