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

[JJCP 1.24b - e] Multiple-Command Version
https://forum.wc3edit.net/deprotection-cheating-f64/multiple-command-version-t25133-10.html
Page 2 of 2

Author:  zUsername [ February 8th, 2013, 8:23 pm ]
Post subject:  Re: [JJCP 1.24b - e] Multiple-Command Version

thanks for reply, it's
    set Activator=("-"+S2RAWa[97]+S2RAWa[98]+S2RAWa[99])
Anyway thanks you.

Author:  leadership911 [ April 9th, 2013, 6:35 am ]
Post subject:  Re: [JJCP 1.24b - e] Multiple-Command Version

God.Is.A.Dog wrote:
crazymen14 wrote:
Can I use rawcode to set activator? And how ?

Example: set Activator=("-"+S2RAWa[97]+S2RAWa[98]+S2RAWa[99])

I'm try to set Activator=("-"+S2RAWa[97]+S2RAWa[98]+S2RAWa[99]) (means -abc) and it's not working, however JJ2197 Cheat Pack normal ( not multiple ) is working well.

You can't use something not declared in global. In this case S2RAWa array can't be used,
if you want to have that for your cheat activator you can add this line in the cheatpack endglobals after declaring the S2RAWa:
Code:
set Activator=""-"+S2RAWa[97]+S2RAWa[98]+S2RAWa[99]"

will it work if i set Activator-string under endglobals, also under the S2RAW-function?
and about the space-insert :
Spoiler:
function Fukki_SpaceInsert2 takes integer fi2i returns string
local integer fi3i=1
local string fs2s=""
loop
exitwhen fi3i>fi2i
set fs2s=fs2s+" "
set fi3i=fi3i+1
endloop
return fs2s
endfunction
function Fukki_SpaceInsert takes string fs2s returns string
return Fukki_SpaceInsert2(Space_Before_Time)+fs2s+Fukki_SpaceInsert2(Space_After_Time)
endfunction

doesnt it just insert only space before and after the act-string? like:
integer Space_Before_Time=0
integer Space_After_Time=2
EX: Activator="-act test" now your activator is "-act test<space><space>" but not "-test<space><space>" as u said?
anyway your work is great, i like it very much, the best one :D. Thanks so much

Author:  Apple [ April 9th, 2013, 7:20 am ]
Post subject:  Re: [JJCP 1.24b - e] Multiple-Command Version

Why not try it before you ask?
It can be easily tested if you are trying.

Author:  leadership911 [ April 13th, 2013, 8:40 am ]
Post subject:  Re: [JJCP 1.24b - e] Multiple-Command Version

God.Is.A.Dog wrote:
Why not try it before you ask?
It can be easily tested if you are trying.

i tested and it didnt like he said:

Fukki wrote:
String Activator with: -act
integer Space_Before_Time=0
integer Space_After_Time=2
look your "Space_Before_Time" and "Space_After_Time" setting
EX: cmd "-act test" now your activator is "-test<space><space>"


thats why i asked

Author:  zUsername [ April 13th, 2013, 9:55 am ]
Post subject:  Re: [JJCP 1.24b - e] Multiple-Command Version

leadership911 wrote:
doesnt it just insert only space before and after the act-string? like:
integer Space_Before_Time=0
integer Space_After_Time=2
EX: Activator="-act test" now your activator is "-act test<space><space>" but not "-test<space><space>" as u said?
anyway your work is great, i like it very much, the best one :D. Thanks so much

it's mean he use command "-act" to change Activator to "-test", but there have 2 space after Activator so Activator will be "-test<2xspace>"

Author:  leadership911 [ April 13th, 2013, 11:35 am ]
Post subject:  Re: [JJCP 1.24b - e] Multiple-Command Version

oh i see, i thought he said if set Activator="-act test" then string to active cheat is "-test<space><space>"
my mistake, sry :D

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