Take the 2-minute tour ×
Arqade is a question and answer site for passionate videogamers on all platforms. It's 100% free, no registration required.

I'm making a custom map for myself where I can play certain battle simulations out to see how units fare against each other (and practice micro).

I would love to prompt the player for text input like this "which units do you want created this time?", and then have a string parser parse input like "2 zeal, 4 marine" and automatically create an army with whatever I textually ask for. I can think of no faster way.

So my question is: is there any trigger which can receive textual input from user?

If you can think of a better way to do what I want, then please place that as a comment, not an answer.

share|improve this question
    
You may want to look around the map-making community at the open RPG maps. I know they make heavy use of text based commands to script units, upgrades, etc. Unfortunately the only mapping resource I know about is sc2mapster.com I'm sure that someone there will have the answer you're looking for. –  Sorean Dec 19 '11 at 3:10
    
Have you tried one of the unit test maps? Typically there will be two halves of the map with every building from every race on each side. All units and upgrades build very quickly (less than one second), so it's easy to create two opposing armies and have them go at each other. –  Jay Dec 19 '11 at 3:15
1  
There are some unit testing maps (can't remember right now sorry) that give you a picture of the units on the left side of the screen and you click on the portrait to create one or shift-click to create 5 of the unit. Something like sc2mapster.com/maps/unit-tester –  Mike Dec 19 '11 at 20:36
1  
as mentioned in the faq, mod development is considered off topic. Try gamedev.stackexchange.com instead –  chobok Apr 18 '12 at 16:30
add comment

closed as off topic by Wipqozn, Bora, Jupotter, Mark Trapp, Oak Jun 16 '12 at 7:12

Questions on Arqade are expected to relate to gaming within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

2 Answers

up vote 5 down vote accepted

Just create a trigger on the event (Player) types a chat message containing (list of strings)

This is how maps like Nexus Word Wars or YABOT accept textual input. There is no other way to accept textual input besides through the chat window.

share|improve this answer
add comment

There's a typing game called Nexus Word Wars where you have to type the word above approaching units to destory them.


If the map is unlocked, you can directly open it up in the editor and see what triggers and code they use.

If it's locked, then hopefully it has the creator's contact info and you can ask the map author directly.

share|improve this answer
    
Closest answer so far –  Bora Jun 14 '12 at 16:25
    
@Bora Yeah I've only made BW maps, so I don't know the exact answer –  Atav32 Jun 14 '12 at 18:04
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.