I've been working on a total inventory script. Part of this inventory is four different potions:
-- A potion to cure all poisons
-- An elixir to cure all ills except poisons
-- A potion to add temporary super strength
-- Obtain wizardry (exceptional creative abilities)
In regard to the potion "Wizardry", I was searching through the scripts that might be related so I can steal some of the code ( to possibly use
) when I happened on the following script:
function magic_main(e)
PlayerDist = GetPlayerDistance(e)
if PlayerDist < 80 and g_PlayerHealth > 0 then
Prompt("Collected magic")
PlaySound(e,0)
AddPlayerPower(e,g_Entity[e]['health'])
Destroy(e)
ActivateIfUsed(e)
end
end
I looked in the global "script" and sure enough it was there. However, I can't figure out how to use it. It's neither in "gameplayercontrol' script. Apparently the power added is the amount of health as indicated in the script. However, what exactly is it added to? It shows that it would be added to the current/selected entity. If so why is it destroyed?
After all of this time thinking and writing down the detail of this query, I personally have come to the conclusion that at this point in the GG classic development: It does nothing.
If anybody has an actual way of using this, please give me the facts and nothing but the facts.
Alienware Aurora R7 with SSD 256GB boot drive ( C: ) and a secondary drive ( D: ) that is 2TB
Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz 3.19 with Intel Turbo-burst
Installed RAM 16.0 GB
64-bit operating system, x64-based processor
Windows 10 Home
NVIDIA GeForce GTX 1070 with 8192 MB GDDR5 and 8095 MB shared system memory
The author of this post has marked a post as an answer.
Go to answer