Post new topic    
Liquid Metal Slime
Send private message
I'm having trouble making a choice box.... 
 PostWed Jul 02, 2014 6:19 am
Send private message Reply with quote
I'm trying to make a choice box. So far I have created textbox #19 which make an NPC ask a question, to which your character can reply "yes" or "no." If yes, the NPC will reply with textbox #20. If no, the NPC will reply
with textbox #21. Currently under the choice menu I have the choice "yes" set tag #1 to ON, and "no" does nothing. Therefore I believe the code below should result in either the "yes" or the "no" case.... So far only the "no" case comes up when testing either choice answer. Can anyone point out my flaw? Or perhaps show me a more systematic way of coding choices.

Code:
  show text box (19)
  wait for text box
  If (check tag (1) == true) then(
    show text box (20)
    )
    else(
    show text box (21)
  )
  set tag (1, off)

⊕ P E R S O N A L M U S I C: https://open.spotify.com/album/6fEo3fCm5C3XhtFRflfANr
⍠ C O L L A B M U S I C: https://dustpuppets.bandcamp.com/releases
Metal King Slime
Send private message
 
 PostWed Jul 02, 2014 8:52 am
Send private message Reply with quote
Tags 0 and 1 can't be changed. It says so. Obviously, it's bad UI to even let you select that tag; I'll look at fixing that.
Liquid Metal Slime
Send private message
 
 PostWed Jul 02, 2014 6:09 pm
Send private message Reply with quote
TMC wrote:
Tags 0 and 1 can't be changed. It says so. Obviously, it's bad UI to even let you select that tag; I'll look at fixing that.


Got it. Thanks. So what exactly are tags 1 and 0 used for? Is one just defaulted to "on" and the other to "off" both unchangeable? I just want to know if they're ever used for anything in coding.
⊕ P E R S O N A L M U S I C: https://open.spotify.com/album/6fEo3fCm5C3XhtFRflfANr
⍠ C O L L A B M U S I C: https://dustpuppets.bandcamp.com/releases
Liquid Metal King Slime
Send private message
 
 PostThu Jul 03, 2014 12:43 am
Send private message Reply with quote
Tag 0 was meant to really be just "no tag here at all"

Tag 1 was meant as a way to be able to test for something that was always true or always false... but that isn't really a useful or important feature, because then why use a tag at all?

I think it was just bad planning on my part, but now we are stuck with it (because changing it now could break any games that actually do check tag 1 expecting it always be off)
Metal King Slime
Send private message
 
 PostThu Jul 03, 2014 1:54 am
Send private message Reply with quote
There is however the possibility of just hiding tag 1 everywhere using some incomprehensible z/xintgrabber magic
Liquid Metal King Slime
Send private message
 
 PostThu Jul 03, 2014 2:58 am
Send private message Reply with quote
I just remembered the place where it always gets used. Text box conditionals. Those default to unused, so tag 1 is used for all the "Always" text boxes.

I think we should leave it how it is for tag checks, but hiding it from any place that does tag-setting sounds great.
Metal Slime
Send private message
 
 PostFri Jul 04, 2014 1:18 pm
Send private message Reply with quote
Try using a different tag. Like 2 or 3, if they're not already used.

If they are, make a new tag and use it instead. Problem solved! V
"One can never improve enough nor should one stop trying to improve."
Display posts from previous: