How to clone potions.

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
Post Reply
Obyvvatel
Posts: 30
Joined: Mon Sep 17, 2012 11:21 pm
Location: Poznań, Poland

How to clone potions.

Post by Obyvvatel »

I already have many informations here http://www.grimrock.net/modding/asset-d ... reference/ ,but I don't know how to apply all those parameters. For example I want to make potion that adds stronger rage effect to all party members for about 2 minutes and i just typed that:

cloneObject{
name = "Ultra_violence_potion"
baseObject = "rage_potion" (this probably have diffrent name)

And what I can do next? :?
User avatar
Neikun
Posts: 2457
Joined: Thu Sep 13, 2012 1:06 pm
Location: New Brunswick, Canada
Contact:

Re: How to clone potions.

Post by Neikun »

I think rage is a hard coded game effect D: Just like speed.
"I'm okay with being referred to as a goddess."
Community Model Request Thread
See what I'm working on right now: Neikun's Workshop
Lead Coordinator for Legends of the Northern Realms Project
  • Message me to join in!
Obyvvatel
Posts: 30
Joined: Mon Sep 17, 2012 11:21 pm
Location: Poznań, Poland

Re: How to clone potions.

Post by Obyvvatel »

Ok, but maybe i can increase attackpower for those 2 minutes?
User avatar
crisman
Posts: 305
Joined: Sat Sep 22, 2012 9:23 pm
Location: Italy

Re: How to clone potions.

Post by crisman »

I think is (haven't tested):

onUseItem = function (self, champion)
champion:setCondition("rage", 120)
end,

Or something very similar.
I don't know if 120 is in seconds.
Obyvvatel
Posts: 30
Joined: Mon Sep 17, 2012 11:21 pm
Location: Poznań, Poland

Re: How to clone potions.

Post by Obyvvatel »

I read some texts and i figured out how to do this, but i don't know how to make the effect running on every party member. LoL, you probably wouldn't understand me :D
User avatar
crisman
Posts: 305
Joined: Sat Sep 22, 2012 9:23 pm
Location: Italy

Re: How to clone potions.

Post by crisman »

Oh, sorry, did not understand that part :S

I'm not sure this will work inside a hook. But you can give it a try:
SpoilerShow
onUseItem = function (self, champion)
for i = 1, 4 do
party:getChampion(i):setCondition("rage", 120)
end
return true
end,
if it won't works, you can always add a function inside the hook:
SpoilerShow
onUseItem = function (self, champion)
potions.violence()
return true.
end
an ingame add a script with an ID 'potions'
SpoilerShow
function violence()
for i = 1, 4 do
party:getChampion(i):setCondition("rage", 120)
end
end
Right now I cannot test anything - I always do something wrong, like a " missing or something similar - , so sorry if this crashes your editor, but later I'll give it a try too.
Post Reply