[ED] Hero of The Empire 1.25b

This is where fulfilled requests go. You can make a new thread here if you edit a map and want to share it, such as if you cheat a new map without anybody actually requesting it.

Moderator: Cheaters

raito1801
Newcomer
Posts: 2
Joined: September 20th, 2018, 10:50 am

[ED] Hero of The Empire 1.25b

Post by raito1801 »

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!
owner123
Super Moderator
Posts: 1943
Joined: February 3rd, 2009, 11:28 pm

Re: [ED] Hero of The Empire 1.25b

Post by owner123 »

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: Select all

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
You do not have the required permissions to view the files attached to this post.
longpet003
Newcomer
Posts: 6
Joined: February 17th, 2020, 12:31 pm

Re: [ED] Hero of The Empire 1.25b

Post by longpet003 »

I want.how to edit size map.i edit finish but big size can't to creing for play :3
owner123
Super Moderator
Posts: 1943
Joined: February 3rd, 2009, 11:28 pm

Re: [ED] Hero of The Empire 1.25b

Post by owner123 »

You can't edit the map size without losing parts of the map.
edugoose
Newcomer
Posts: 2
Joined: June 3rd, 2020, 11:51 pm

Re: [ED] Hero of The Empire 1.25b

Post by edugoose »

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.
owner123
Super Moderator
Posts: 1943
Joined: February 3rd, 2009, 11:28 pm

Re: [ED] Hero of The Empire 1.25b

Post by owner123 »

Please create a new request if you want another command written