Scripts / [SOLVED] Add/Set PlayerPower

Author
Message
Flatlander
GameGuru Master
17
Years of Service
User Offline
Joined: 22nd Jan 2007
Location: The Flatlands
Posted: 10th Nov 2020 17:48
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:


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
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 10th Nov 2020 18:00 Edited at: 10th Nov 2020 18:03
This post has been marked by the post author as the answer.
it adds to spell power so the wizard staff becomes more deadly
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
GubbyBlips
5
Years of Service
User Offline
Joined: 14th Jan 2019
Location:
Posted: 10th Nov 2020 18:56
...oooh. Mind blown. ?lol?
Something like "SetStaffDamage" seems like it would
have answered all questions instead of this enigmatic name.
PM
Flatlander
GameGuru Master
17
Years of Service
User Offline
Joined: 22nd Jan 2007
Location: The Flatlands
Posted: 11th Nov 2020 20:29
When I searched the forums, I only searched for "AddPlayerPower" which didn't give me any results. I should have then searched "SetPlayerPower". However, if I wouldn't have brought this up, then GubbyBlips wouldn't have known about it. Thanks smallg for being patient with this old-timer who sometimes acts as a noobie.

And glad we helped out another developer.
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
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 11th Nov 2020 23:27
no worries, it's what we're here for

Quote: "Something like "SetStaffDamage" seems like it would have answered all questions instead of this enigmatic name. "

well the spells were originally cast without a staff when the fantasy pack was made so i guess Lee just threw any semi-appropriate name in... with some better documentation it would be fine
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11

Login to post a reply

Server time is: 2024-12-22 01:42:45
Your offset time is: 2024-12-22 01:42:45