• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

[SOLVED] cmd

Status
Not open for further replies.
Take a look at https://www.hiveworkshop.com/forums/jass-functions-413/string-parser-170574/

No actual cmd has been built for wc3 yet, but with that you can do it.

However, it can't handle arithmetic like 1+1, so you'd have to do like an add(1,1) and a subtract(5,4)

The reason is that special characters would add extra overhead with no real benefit.


Be warned that learning StringParser is like learning a new programming language.

I am assuming that you are talking about being able to do like call DisplayTextToPlayer(GetLocalPlayer(), 0, 0, "hello world") in-game.

Cmd in JASS section is actually for writing Commands for wc3, not an actual cmd prompt. It's just short for Command, as in Command library = ). It's rather limited and needs updating.


However, if you needed something for being able to easily write commands like -kick and so on, then I can prioritize updating Cmd for you ; P.
 
You're going to need to rephrase your question because every person who has tried to respond to this thread has interpreted the original post differently.

He wants cheats

god map then you can make god spells and commands

keyword god

He wants a map where he can type in a command that makes him godly as well as use insano spells =), or in other words op spells and cheats.
 
I know that but I want like something mic bob which people can create and you can type what you want like for example if you wanted cheats in a game you just type it in and done.

There are already cheats.

greedisgood 99999 will give you enough gold for the whole game so you can kick those Insane computers butts!
 
There are already cheats.

greedisgood 99999 will give you enough gold for the whole game so you can kick those Insane computers butts!

That won't work since I imagine he's unprotecting a multiplayer map and adding cheats and secret op characters to it that only he and his friends can use =).

Cheating is no fun, rather boring actually -.-... being a lot better at something than most anyone else also isn't any fun either (just about as fun as cheating is ;\ ).
 
He wants cheats



keyword god

He wants a map where he can type in a command that makes him godly as well as use insano spells =), or in other words op spells and cheats.

Yes Thats What I Required something like that but this isn't for me I am making it but giving it to someone who doesn't know everything in the world editor, he teaches me and I teach him back about the world editor, I wanted some useful god commands for example (I Type in a command and it sends a meteor to earth and everyone on the map dies...)

Something like that no cheats just commands...
 
TriggerRegisterPlayerChatEvent

pretty easy ;P

JASS:
struct Bleh extends array
    private static method kill takes nothing returns nothing
        call KillUnit(GetFilterUnit())
        return false
    endmethod

    private static method run takes nothing returns boolean
        local rect r = GetWorldBounds()
        local group g = CreateGroup()
        //meteor code?
        call GroupEnumUnitsInRect(g, r, Condition(function thistype.kill))
        call RemoveRect(r)
        call DestroyGroup(g)
        set g = null
        set r = null
        return false
    endmethod

    private static method onInit takes nothing returns nothing
        local trigger t = CreateTrigger()
        call TriggerRegisterPlayerChatEvent(t, Player(0), "chaos", true) //not sure if I got params right here, doing it off top of my head
        call TriggerAddCondition(t, Condition(function thistype.run))
    endmethod
endstruct


Don't know if above has syntax errors or not, coded that in this post ; P. Other than the effect, that should kill all units on the map. You can also store the trigger player and make sure owning player of filter unit isn't the trigger player to keep trigger player's units alive. Pretty simple stuff.
 
Not Really Cheats More Like Type Of Different Commands Like If you want to create a god map then you can make god spells and commands.

if this is the case, just make a hero called god(or perhaps just a regular unit), then give him abilities, make him used by that god player, and make some other heroes(or perhaps just regular units) called angels and they can also have abilities and basically all the abilities will do your commands for you. you can then trigger a message as if the player was saying something to everyone if that's what you want to do, which can make it look like a chat message command without it actually being one.

sure you can think you're limited to the number of commands god can give because the god unit will have limited number of spells to cast.

but you can use angels and they can carry out various commands from god themselves with the abilities they would have. so no matter how many commands as you need, new angel units can be made to have a set commands from god that they can carry out.

so the number of commands can be unlimited.
 
but you can use angels and they can carry out various commands from god themselves with the abilities they would have. so no matter how many commands as you need, new angel units can be made to have a set commands from god that they can carry out.

I didn't know God was limited by the size of the UI. :smile:
 
I didn't know God was limited by the size of the UI. :smile:

you cannot contain god in a warcraft 3 map. actually it might be a good idea to skip the god unit altogether and only use angel units. an archangel might not be a bad idea, though, if you wanted one.

of course the god in the warcraft 3 map might be like a god from xena or hercules like the god of war or something...in that case i'm sure there's nothing wrong with having a god unit. but those gods don't have lots of angels, maybe, haha. still, you could have like various gods for the god player instead of one god, if that's what you wanted to do. like god of wind and god of trees or whatever. in that case you might even be able to have multiple god players...not that you couldn't have like a good god player and bad god player for 2 players anyways. that could be an interesting idea.
 
Status
Not open for further replies.
Back
Top