Problem with removing text tag

MissKerrigan

Active Member
Reaction score
23
Hello,

I made a trigger:

action: create a text tag with the text WELCOME with size 40
action: wait 1 game seconds
action: create a text tag with the text TO with size 40
action: wait 1 game seconds
action: create a text tag with the text GARDEN DEFENCE with size 40
action: wait 1 game seconds
action: create a text tag with the text 2 with size 200
action: wait 1 game seconds

action: remove last 4 created text tags??


MissKerrigan
 

X-maul

AKA: Demtrod
Reaction score
201
Create a local variable of the type Text Tag. Set the variables to Last Created Text Tag after you create the text tags (1 for each text tag ofcourse, or a variable with an array size of 4). Then when you want to remove them, refer to the variable.
 

MissKerrigan

Active Member
Reaction score
23
thank you x

(I always thought it wasn't possible to store more than 1 text tag in a variable)



edit: ok it's not working, my trigger brings me an error after add the text tag to the variable, but when I set array to 1 there is no error

(I mean the red diamond in the trigger)
 

X-maul

AKA: Demtrod
Reaction score
201
hm, should be pretty much straight forward. You create the text tag, set the variable and so on.

You can set to the same variable, but it will overwrite the old state, so you will need to do it like Variable[0], Variable[1], Variable[2] and so on..
 

MissKerrigan

Active Member
Reaction score
23
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA!!

NOW I KNOW what this number means !!

THANK YOU


(can I do this with all variables?)
 

X-maul

AKA: Demtrod
Reaction score
201
hah ;) you're welcome :)

The array size means the amount of different states a variable can be set to. Meaning that you can refer to YourVariable[array number]. The number goes from 0 and up.

You can do this with all variable types.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top