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?
How to clone potions.
Re: How to clone potions.
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
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!
Re: How to clone potions.
Ok, but maybe i can increase attackpower for those 2 minutes?
Re: How to clone potions.
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.
onUseItem = function (self, champion)
champion:setCondition("rage", 120)
end,
Or something very similar.
I don't know if 120 is in seconds.
Re: How to clone potions.
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
Re: How to clone potions.
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:
if it won't works, you can always add a function inside the hook:
an ingame add a script with an ID 'potions'
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.
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,
for i = 1, 4 do
party:getChampion(i):setCondition("rage", 120)
end
return true
end,
SpoilerShow
onUseItem = function (self, champion)
potions.violence()
return true.
end
potions.violence()
return true.
end
SpoilerShow
function violence()
for i = 1, 4 do
party:getChampion(i):setCondition("rage", 120)
end
end
for i = 1, 4 do
party:getChampion(i):setCondition("rage", 120)
end
end