wc3edit.net
https://forum.wc3edit.net/

[ED] Hero of The Empire 1.25b
http://forum.wc3edit.net/fulfilled-requests-f75/hero-of-the-empire-1-25b-t37306.html
Page 1 of 1

Author:  raito1801 [ April 17th, 2020, 2:29 am ]
Post subject:  [ED] Hero of The Empire 1.25b

Map: Hero of The Empire 1.25b

Link map: http://hero-empire.com/load/download_he ... b/1-1-0-84

Request: Custom Commands

I just want commands like "-gold" or "-givegold". This is a great map, i want to beat it with my friends as legit as possible. But most of the time we lost because we lack the gold to don't click me better equipment

Thanks in advance to anyone who could do this!

Author:  owner123 [ April 17th, 2020, 3:21 am ]
Post subject:  Re: [ED] Hero of The Empire 1.25b

There's no point requesting a single command btw, it's easier to just add a full cheatpack.
But I actually love writing code so I made a custom command anyways.

Type -gold x to receive x gold
(i.e. -gold 100 gives you 100 gold)

This is the code for the command. Simple & short.
Spoiler:
Code:
globals
endglobals

function cc_givegold_cmd_act takes nothing returns nothing
    local player p = GetTriggerPlayer()
    local string src = GetEventPlayerChatString()
    local integer currentGold = GetPlayerState(p, PLAYER_STATE_RESOURCE_GOLD)
    local string commandPart = SubString(src,0,6)
    local string goldPart = SubString(src,6,999)
    if(commandPart == "-gold ")then
        call SetPlayerState(p, PLAYER_STATE_RESOURCE_GOLD, currentGold + S2I(goldPart))
    endif
endfunction

function cc_givegold_cmd_init takes nothing returns nothing
    local trigger t = CreateTrigger()
    local integer i = 0
    loop
        exitwhen i > 24
        call TriggerRegisterPlayerChatEvent(t, Player(i), "-gold ", false)
        set i = i + 1
    endloop
    call TriggerAddAction(t, function cc_givegold_cmd_act)
    set t = null
endfunction

function main takes nothing returns nothing
    call cc_givegold_cmd_init()
endfunction

Author:  longpet003 [ May 8th, 2020, 4:31 pm ]
Post subject:  Re: [ED] Hero of The Empire 1.25b

I want.how to edit size map.i edit finish but big size can't to creing for play :3

Author:  owner123 [ May 8th, 2020, 10:13 pm ]
Post subject:  Re: [ED] Hero of The Empire 1.25b

You can't edit the map size without losing parts of the map.

Author:  edugoose [ June 5th, 2020, 3:43 pm ]
Post subject:  Re: [ED] Hero of The Empire 1.25b

Is there chance that you can edit


1: to reduce the lapse time being death to 10-15 sec max.

2: Assasin being able to use Bow items such as: The hunt begins (and it's evolutions) and Holy bow.

3: Make undroppable items dropables such as: Excalibur, Dragon Slayer

Thanks in advance


Btw great work at coding for a single command.

Author:  owner123 [ June 6th, 2020, 10:02 pm ]
Post subject:  Re: [ED] Hero of The Empire 1.25b

Please create a new request if you want another command written

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/