HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Help with my custom map...

07-31-2003, 07:20 PM#1
General Tekno
OK, 2 questions.

First of all, at one point, I want to have a unit die once it stops. What event and condition triggers do I use? I can't figure it out.

Second, how do I get the game to recognize an inputted message, recognize it as a number, and then store it as a variable? Please respond ASAP.
07-31-2003, 07:36 PM#2
35263526
This is your Stop-Die trigger:
stopdie
Events
Unit - A unit Is issued an order with no target
Conditions
(Issued order) Equal to (Order(stop))
Actions
Unit - Kill (Ordered unit)

I dont understand your second question. Perhaps if you were clearer..........
07-31-2003, 07:50 PM#3
General Tekno
I tried your solution for the first problem, it doesn't want to work for the "Last Created Unit".
07-31-2003, 07:54 PM#4
35263526
This trigger should work for that:
stopdie
Events
Unit - A unit Is issued an order with no target
Conditions
(Issued order) Equal to (Order(stop))
(Ordered unit) Equal to (Last created unit)
Actions
Unit - Kill (Ordered unit)

Next time, be abit more specific. dont know about the 2nd q. yet though.
07-31-2003, 09:03 PM#5
General Tekno
I tried that too, and it didn't work.
07-31-2003, 09:20 PM#6
theJ89
Ok, for your second question:

lets say you typed word ### (where ### is a 3 digit number)
Events:
Player 1 types a chat message containing (word)
Player 2 types a chat message containing (word)
Player 3 types a chat message containing (word)
Player 4 types a chat message containing (word)
Player 5 types a chat message containing (word)
Player 6 types a chat message containing (word)
Player 7 types a chat message containing (word)
Player 8 types a chat message containing (word)
Player 9 types a chat message containing (word)
Player 10 types a chat message containing (word)
Player 11 types a chat message containing (word)
Player 12 types a chat message containing (word)

Conditions:
Substring(Entered Chat String, 1, 4) equal to word
(so the trigger wont activate when someone doesnt type it at the start of the message. As for the two numbers, they say where to check the entered chat string for the word "word" [between character 1 and character 4].)

Action
Set IntegerVariable = Integer(Entered Chat String, 6, 9)
(between character 6 and character 9)
07-31-2003, 09:41 PM#7
Newhydra
Unless they fixed it that will crash the game if someone enters only enters word
08-01-2003, 12:19 AM#8
General Tekno
What I was wanting to do is set it up so that when you enter a number, the "power" of the unit increases. For example, if you type in 800, the power would be changed to 800.

Besides, I'm no longer putting that system into my map, as I have thought up an easier to control idea. However, I still have no solution to my previous problem. What I have done in my triggers previously is given the Last Created Unit an order to move to a polar point with offset. Once it reaches that point, it should die, but it won't.
08-01-2003, 02:57 AM#9
theJ89
Well hmm...

Aha! I might have your answer.

Make a reigon variable.
When the move order is issued, do this:
Set ReigonVar to Conversion - Point with size.

Point - Whatever point the unit is moving to.
Size - 200.

Happy triggering.
08-01-2003, 06:17 PM#10
General Tekno
Still no luck.