Auto-translated
What does the console display?
New here? I'm Roha — want a quick tour?
fast foken read `=' in line 18 to string "DoString script"
(Script) ERROR: expected
Script failed, unknown error
GetPlayerRecource (1, 6, >=10000)
SetPlayerResource (6, -10000, 5, 10);
number GetPlayerResource( nPlayerID, nResID )
Returns the current amount of resource nResID for player nPlayerID. Resource IDs are listed in /scripts/advmap-startup.lua and are as follows:
WOOD = 0
ORE = 1
MERCURY = 2
CRYSTAL = 3
SULFUR = 4
GEM = 5
GOLD = 6
void SetPlayerResource( nPlayerID, nResID, nCount )
Sets the current amount of resource nResID to nCount for player nPlayerID. Based on this function, a higher-level primitive is implemented in the /scripts/advmap-startup.lua file – void SetPlayerStartResource( nPlayerID, nResID, nCount ), which distributes starting resources to the player depending on the difficulty level.
I AM COMPLETELY CONFUSED ABOUT WHAT TO DO???:confused: :confused: :confused: :smile33: :smile33: :smile33:
Added 5 minutes later
A map for the original 1.6. Can you handle it?
I can't send it in a private message...
The map isn't quite ready yet.
SetObjectEnabled("rinok_samocvetov", nil);
MessageBox (GetMapDataPath().."zasada.txt");
---
function Zasada1 ()
MessageBox (GetMapDataPath().."napadenie_zasady.txt", "zasada_napadenie");
end;
---
function zasada_napadenie ()
StartCombat("Diraya", nil, 3, 30, 50, 32, 30, 34, 20, nil, nil, nil);
Trigger (REGION_ENTER_AND_STOP_TRIGGER, "zasada1", nil);
end;
---
Trigger (REGION_ENTER_AND_STOP_TRIGGER, "zasada1", "Zasada1");
---
function Samocveti ()
if GetPlayerResource(1, 6) >= 10000 then
QuestionBox (GetMapDataPath().."pokupka.txt", "pokupka");
else
MessageBox (GetMapDataPath().."malo_many.txt");
end;
end;
---
Trigger (OBJECT_TOUCH_TRIGGER, "rinok_samocvetov", "Samocveti");
--
function pokupka ()
SetPlayerResource(1,6,GetPlayerResource(1, 6) - 10000);
MessageBox (GetMapDataPath().."poterya.txt");
end;Instead of GetMapDataPath().."malo_many.txt", you can also write "/Maps/SingleMissions/ELO/malo_many.txt"
It seems like nothing will work anyway, even if you don't use the editor.
Ah, I'll try to restore the previous file and modify the scripts... Maybe it will work...
Added 5 minutes later
The battle still won't start.
I need the gem market to not have resources stolen (-10000 gold and nothing is given to you), but instead, 10 gems should be given in exchange.
The battle still doesn't start.
Why is it so difficult... here's a file that works on 1.6 (a friend checked it). I copied the files myself (it's not hard to copy 6 files ;) scripts + txt), as I wrote above.
It still won't launch. Does your acquaintance definitely have version 1.6?
I have a rather simple question. How can I make it so that after a creature plays a certain animation when it loses, it continues to move as it should? I have the following situation: a hero enters zone 1, and a trigger is activated, playing a "joy" animation for the griffin. Everything works correctly, but for some reason, after the animation plays, the griffin freezes in place. What needs to be done so that it continues to move after the animation? And why don't any of the animations work for my fire demon, even though I write the same thing for other creatures, and it works for them? Thank you in advance.