Is it possible to create a trigger that will run user input code using substrings?
Ex:
Command Line
Events
Player - Player 1 (Red) types a chat message containing ~ as A substring
Conditions
(Substring((Entered chat string), 1, 1)) Equal to ~
Actions
Set code...
im creating a jump kill ability and it either goes too fast or too slow. does anyone know how to fix this problem?
for reference here's my code so far (just started)
Melee Initialization
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast)...
I'm trying to create a stacking item that will extend the range of sight per unit, and the goblin night scope does this by applying the ultravision ability, but i'm unable to find a value that adds the line of sight to the unit. I'm assuming that the ability simply changes the unit to only...
how do you make an item sell for the amount of charges remaining
and does this work when adding charges to the item via triggers?
EDIT: you set the item classification to charged then give it a charge of something greater than 0
does anyone think that this code i made for a double kill multi kill ultra kill monster kill trigger will cause my game to crash?
Other Bloods Backup
Events
Unit - A unit Dies
Conditions
((Triggering unit) is A Hero) Equal to True
Actions
If (All...
hey i've been triggerin this map for about two weeks now and it has started crashing when i've tested it on bnet with more than 6 people
it only crashes when a player causes quick deaths in the other players hero.
anyways this is the code that runs on death
Team1 Unit Dies
Events...
i'm having trouble making a trigger that will only decrease the charges in an item when a unit is windwalking or being a ward
Trusite Charged
Events
Unit - A unit Dies
Conditions
((Item carried by (Killing unit) of type Gem of True Seeing) is owned) Equal to True...
I've created some code that displays the multiboard for all active players and stuff, but i want to add two more lines when certain victory conditions are selected.
It will not display the victory condition string in column 1 row w\e
anyone have some advice?
here is my code
Create
Events...
here is a map that i worked on forever, then lost 6 hours of work on a world edit crash so i didnt finish it
if anyone wants to use it they can
originally it was going to be a "life of a hero builder" that was a loap with skill builing and then i was going to add some hero wars elements...
I was wanting to make a two dimensional array to attach hero level, hero kills, hero deaths, total gold, and various other bits of data to each player in a game.
I have heard of people using two dimensional arrays to do this. Anyone know how?
something like
ARRAY_VARIABLE[(for each integer...
hey my tree killing trigger looks good, but doenst work
I indexed my trees so that if i want to add more it will all be done with one trigger. Right now when a unit walks in the region it will not remove the tree, but it will revive the tree if you kill it then walk out of the region with the...
Do specified regions with an offset say
UpSpawn
Events
Player - Player 1 (Red) Presses the Up Arrow key
Player - Player 2 (Blue) Presses the Up Arrow key
Player - Player 3 (Teal) Presses the Up Arrow key
Player - Player 4 (Purple) Presses the Up...
I don't see any errors in my code, but there are glitches that i'm finding in the game while testing.
I am making a guitar hero like game for warcraft. The delay is horrible with a slow connection...BUT i'm doing it cus i like to program. :]
Can someone please take a look at this code and...