want to make a trigger which spawns every x seconds units for a player. the problem is that i cant select a variable in the "Periodic Event" part.
Events
- - -Timer - Every (variable) seconds of Game Time - - -
Conditions
- - - Conditions- - -
Actions
- - - Actions - - -
i created some global variables like integer or real but i cant select any of them. so my question is how i create a useable variable for a "Periodic Event" event?
The way it works is that it starts a timer at the map init, which runs the trigger every time it expires.
The only way you can use variables with it is by having them be constants, which means you can't change them ingame. If you wanted to be able to specify the duration ingame, have a custom action which is executed at the beginning of a map, spawns units, and waits a variable amount of time before executing itself again.
If you wanted to be able to specify the duration ingame, have a custom action which is executed at the beginning of a map, spawns units, and waits a variable amount of time before executing itself again.
Tried this workaround before and got the same problem.
The Trigger looked like this:
Events
- Game - Map initializing
Conditions
- None
Actions
- Unit - Create unit..... -
- General - Wait (Variable) Game Time seconds
- Trigger - Run (this Trigger)(Check Conditions, Don't Wait until it finishes)
hello,
want to make a trigger which spawns every x seconds units for a player. the problem is that i cant select a variable in the "Periodic Event" part.
i created some global variables like integer or real but i cant select any of them. so my question is how i create a useable variable for a "Periodic Event" event?
greets kollegna
The way it works is that it starts a timer at the map init, which runs the trigger every time it expires.
The only way you can use variables with it is by having them be constants, which means you can't change them ingame. If you wanted to be able to specify the duration ingame, have a custom action which is executed at the beginning of a map, spawns units, and waits a variable amount of time before executing itself again.
Tried this workaround before and got the same problem.
The Trigger looked like this:
which type of variable i need for this to work?
greets kollegna
Use the convert function to real function, to use an integer. (or just use a real)
NEVER MIND US A REAL
EDIT: NO USE A INTERGER