bizao030188
Member
- Joined
- Jun 4, 2012
- Messages
- 50
- Solutions
- 2
- Reaction score
- 7
Hi all!
I am trying to increase the strength of monsters that players summon on TFS 1.2. I want they stronger than normal spawned monsters (more attack damage and defense).
I know it is possible to create new xml for these monsters but I wanna do directly on the script.
To summon monsters I am using:
I was thinking on something like this:
The problem is that these skills does not work for monsters.
So I started to search on sources what I can change but did not find anything.
I appreciate any kind of help.
I am trying to increase the strength of monsters that players summon on TFS 1.2. I want they stronger than normal spawned monsters (more attack damage and defense).
I know it is possible to create new xml for these monsters but I wanna do directly on the script.
To summon monsters I am using:
Lua:
local monster = Game.createMonster(name, player:getPosition())
if monster ~= nil then
monster:setMaster(player)
end
I was thinking on something like this:
Lua:
local condition = createConditionObject(CONDITION_ATTRIBUTES)
condition:setParameter(CONDITION_PARAM_TICKS, -1)
condition:setParameter(CONDITION_PARAM_SKILL_MELEE, -100)
condition:setParameter(CONDITION_PARAM_SKILL_SHIELD, -100)
doAddCondition(monster, condition)
The problem is that these skills does not work for monsters.
So I started to search on sources what I can change but did not find anything.
I appreciate any kind of help.