The created widget responds with the error: does not exist

Twine Version:
[also choose a Story Format tag above]

I’ve just started trying to use the sugercube, and when I create a widget it always says “does not exist”. I’ve checked it many times and it doesn’t seem to be a syntax problem, but I can’t pinpoint the error at all!

<<nobr>>
<<widget "actionbus">>
	<<if $way eq true>>
    突然迎面走来一群看起来不怀好意的人
    <</if>>
    <<if $bus eq true>>
    车上很挤
    <</if>>
<</widget>>
  <</nobr>>

and this is my used:

<<actionbus>>

Did you define it in its own passage with a “widget” tag?

I think used “<<widget>> ………<</widget>>”.

From the documentation:

WARNING: Widgets should always be defined within a widget -tagged passage—any widgets that are not may be lost on page reload—and you may use as few or as many such passages as you desire. Do not add a widget tag to any of the specially named passages and attempt to define your widgets there.

To add a tag in a passage:
image
Click on the button Tag, then fill in the form!

1 Like

So that’s what the label means!thanks!