Integers

pride2518

New Member
Reaction score
4
How do I make it so that I can use these integers in another trigger?
I mean, a trigger like the second trigger I'm about to post.

Trigger:
  • Integers
    • Events
    • Conditions
    • Actions
      • Set Red = 10
      • Set Blue = 10
      • Set Teal = 10
      • Set Purple = 10
      • Set Yellow = 10
      • Set Orange = 10
      • Set Green = 10
      • Set Pink = 10


Trigger:
  • Untitled Trigger 001
    • Events
      • Player - Player 1 (Red) types a chat message containing display integer red as An exact match
    • Conditions
    • Actions
      • Game - Display to (All allies of Player 1 (Red)) the text: (String(Red))
 

xAnaMorphine

Active Member
Reaction score
43
How do I make it so that I can use these integers in another trigger?
I mean, a trigger like the second trigger I'm about to post.

Trigger:
  • Integers
    • Events
    • Conditions
    • Actions
      • Set Red = 10
      • Set Blue = 10
      • Set Teal = 10
      • Set Purple = 10
      • Set Yellow = 10
      • Set Orange = 10
      • Set Green = 10
      • Set Pink = 10


Trigger:
  • Untitled Trigger 001
    • Events
      • Player - Player 1 (Red) types a chat message containing display integer red as An exact match
    • Conditions
    • Actions
      • Game - Display to (All allies of Player 1 (Red)) the text: (String(Red))

Store the Integers at Map Initialization
 

sentrywiz

New Member
Reaction score
25
No unless you apply some periodic event like unit dies, timer expires and the timer keeps refreshing, every X seconds of game time etc etc

If you only set them at one period of time, they will be good. Because that event passed and its not coming back. So map initialisation is a good call, you can also use Game time is X seconds. and thats it.


So set the variables once to some value and never do it again. They won't change
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      • Ghan
        Administrator - Servers are fun

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top