function conv takes integer int , string abc returns string
local string ausgabe = ""
local integer eingabe = int
loop
exitwhen eingabe == 0
set ausgabe = SubStringBJ(abc,ModuloInteger(eingabe,StringLength(abc)),ModuloInteger(eingabe,StringLength(abc))) + ausgabe
set eingabe = (eingabe - ModuloInteger(eingabe,StringLength(abc))) / StringLength(abc)
endloop
loop
exitwhen SubStringBJ(ausgabe,1,1) != "0"
set ausgabe = SubStringBJ(ausgabe,2,StringLength(ausgabe))
endloop
return ausgabe
endfunction
function unconv takes string str , string abc returns integer
local integer ausgabe = 0
local string eingabe = str
local integer i = 1
local integer j = 1
local integer array mal
set mal[1] = StringLength(abc) * StringLength(abc) * StringLength(abc) * StringLength(abc) * StringLength(abc) * StringLength(abc) * StringLength(abc) * StringLength(abc) * StringLength(abc) * StringLength(abc)
set mal[2] = StringLength(abc) * StringLength(abc) * StringLength(abc) * StringLength(abc) * StringLength(abc) * StringLength(abc) * StringLength(abc) * StringLength(abc) * StringLength(abc)
set mal[3] = StringLength(abc) * StringLength(abc) * StringLength(abc) * StringLength(abc) * StringLength(abc) * StringLength(abc) * StringLength(abc) * StringLength(abc)
set mal[4] = StringLength(abc) * StringLength(abc) * StringLength(abc) * StringLength(abc) * StringLength(abc) * StringLength(abc) * StringLength(abc)
set mal[5] = StringLength(abc) * StringLength(abc) * StringLength(abc) * StringLength(abc) * StringLength(abc) * StringLength(abc)
set mal[6] = StringLength(abc) * StringLength(abc) * StringLength(abc) * StringLength(abc) * StringLength(abc)
set mal[7] = StringLength(abc) * StringLength(abc) * StringLength(abc) * StringLength(abc)
set mal[8] = StringLength(abc) * StringLength(abc) * StringLength(abc)
set mal[9] = StringLength(abc) * StringLength(abc)
set mal[10] = StringLength(abc)
set mal[11] = 1
loop
exitwhen SubStringBJ(eingabe,i,i) == ""
loop
exitwhen SubStringBJ(abc,j,j) == ""
if SubStringBJ(eingabe,i,i) == SubStringBJ(abc,j,j) then
set ausgabe = ausgabe + (j * mal[i + (11 - StringLength(eingabe))])
endif
set j = j + 1
endloop
set j = 1
set i = i + 1
endloop
return ausgabe
endfunction
Name | Type | is_array | initial_value |
acquireditem | item | No | |
Button1 | button | Yes | |
Button2 | button | Yes | |
Charges | integer | Yes | |
ChargeSFX1 | effect | Yes | |
ChargeSFX2 | effect | Yes | |
ChargeSFX3 | effect | Yes | |
Class | integer | Yes | |
Deaths | integer | No | |
DyingHero | unit | No | |
Fly | real | No | |
fx1 | effect | No | |
fx2 | effect | No | |
HaveArmour | boolean | Yes | |
HaveHeal | boolean | Yes | |
HaveShield | boolean | Yes | |
HaveSpecial | boolean | Yes | |
HaveWeapon | boolean | Yes | |
Hero | unit | Yes | |
Holyangereffect | effect | No | |
Integer | integer | Yes | |
Integer1 | integer | Yes | |
Itemtype | itemcode | No | |
Kills | integer | No | |
Load_Code | string | No | |
Load_Primaer | string | No | |
Load_Primaer_Int | integer | No | |
Load_Sekundaer | string | Yes | |
Map | boolean | Yes | |
Meteor | effect | Yes | |
Multiboard | multiboard | No | |
Purge | effect | No | |
QuestID | integer | Yes | 1 |
QuestString | string | Yes | |
QuestString2 | string | Yes | |
Save_Primaer | string | Yes | |
Save_Quartaer | string | Yes | |
Save_Sekundaer | string | Yes | |
Save_Tertiaer | string | Yes | |
Save_Tertiaer2 | string | No | |
Save_Tertiaer3 | string | No | |
Select | dialog | Yes | |
Spieler | integer | No | |
String | string | No | |
String2 | string | No | |
Vieh | unit | Yes | |
WP1 | button | Yes | |
WP2 | button | Yes | |
WP3 | button | Yes | |
WP4 | button | Yes | |
WP5 | button | Yes | |
WP6 | button | Yes | |
WPCancel | button | Yes | |
WPPunkt | location | Yes | |
wps | dialog | Yes |