HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Help!!!

10-06-2004, 08:11 AM#1
tinytaurus
You know in DMMOD when you type the command !createunit then it asks you to type in the units name, then the number of those units you want.

What events and actions would u use to do that??
10-06-2004, 01:02 PM#2
Dead-Inside
That's more then one trigger. Well it doesn't have to be really now when I think about it but if you want it in several steps. It would probably be easier to use dialogs and then create them beneath a flying unit (A "Placer").

Someone else will have to explain this because it's really really long.

The event would be "Player X types a chat message" or alike, and then you'd check the string for -spawn or -unit or any other command you'd like to use. The you check the rest of the text for number of units and what sort.
10-07-2004, 04:46 AM#3
tinytaurus
thanx for ur response
i know how to do everything such as placing the units and converting strings to unittypes but how do i choose the unittype with a chat message??

i mean if i use "player enters a chat message containing "blah blah blah" as an exact match" then i have to specify a message, as there is no event that is simply "Player enters a chat message"

i hope u can understand that cuz its really hard to explain

is there using the substring chat message to say the substring is from a certain character to the end of the string? ie 13-END

and can u use spaces to separate substrings ie "createunit footman 6"

where u would have three different strings

createunit
which activates the trigger

footman
the unit type

6
the number of units to be created

o_O
10-07-2004, 10:37 AM#4
Dead-Inside
You can check the string in different places. It's in my PM.

If you have any more questions just reply here or send me another PM.

Edit: I almost forgot; To make people unable to spam units or alike make a cap at maybe 25 units (Or less even). Check the string if it's equal to or less then 25, do nothing, if it's greater, then I suggest you set a message to the player which says something like "You can only spawn/create a max of 25 units at a time"