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!
Re: [ED] Hero of The Empire 1.25b
Posted: April 17th, 2020, 3:21 am
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)
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
Re: [ED] Hero of The Empire 1.25b
Posted: May 8th, 2020, 4:31 pm
by longpet003
I want.how to edit size map.i edit finish but big size can't to creing for play :3
Re: [ED] Hero of The Empire 1.25b
Posted: May 8th, 2020, 10:13 pm
by owner123
You can't edit the map size without losing parts of the map.
Re: [ED] Hero of The Empire 1.25b
Posted: June 5th, 2020, 3:43 pm
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.
Re: [ED] Hero of The Empire 1.25b
Posted: June 6th, 2020, 10:02 pm
by owner123
Please create a new request if you want another command written