View Full Version : Worms 4 Mayhem lua Scripts
PerroAZUL
31 Jul 2006, 03:28
I've been looking at lua scripts in this game and I've managed to make some good stuff. I wonder if anyone knows anything about it, cause I want to know how to do this two things from the script:
- Cure worm poison. I know how to poison a worm but not how to cure :(
- Make the game so it doesn't end turn when a weapon is fired.
Maybe someone from the Worms stuff can help me out :)
I've been looking at lua scripts in this game and I've managed to make some good stuff. I wonder if anyone knows anything about it, cause I want to know how to do this two things from the script:
- Cure worm poison. I know how to poison a worm but not how to cure :(
- Make the game so it doesn't end turn when a weapon is fired.
Maybe someone from the Worms stuff can help me out :)
1: Poison can be cured by either using the Icarus Potion, getting hit by an Alien Abduction, or by getting a health crate.
2: If you dont want the game to end when the weapon is fired, you have to edit the WEAPTWK.XML file in the data\tweak folder (select "open as" and open it with Notepad). You should look for something like this, under each weapon, and change the highlighted "true" to "false". (and note the name of the weapon on the first line of this code)
<PayloadWeaponPropertiesContainer id='kWeaponHolyHandGrenade-0'>
<IsAimedWeapon>true</IsAimedWeapon>
<IsPoweredWeapon>true</IsPoweredWeapon>
<IsTargetingWeapon>false</IsTargetingWeapon>
<IsControlledBomber>false</IsControlledBomber>
<IsBomberWeapon>false</IsBomberWeapon>
<IsDirectionalWeapon>true</IsDirectionalWeapon>
<IsHoming>false</IsHoming>
<IsLowGravity>true</IsLowGravity>
<IsLaunchedFromWorm>true</IsLaunchedFromWorm>
<HasAdjustableFuse>false</HasAdjustableFuse>
<HasAdjustableBounce>false</HasAdjustableBounce>
<HasAdjustableHerd>false</HasAdjustableHerd>
<IsAffectedByGravity>true</IsAffectedByGravity>
<IsAffectedByWind>false</IsAffectedByWind>
<EndTurnImmediate>true</EndTurnImmediate>
<ColliderFlags>0</ColliderFlags>
<CameraId>PayloadTrackCamera</CameraId>
PerroAZUL
31 Jul 2006, 18:23
Thanks for the reply. I've tried what u said about the weapons but it didnt work properly. It doesn't end turn but you can't move or select other weapons either. Anyway, I think that it's controled by the game engine :/
About poison, I was curious about it cause I made a game style where your worms respawn everytime they get killed. The thing is that they respawn ill if they were poisoned, but i've found out that the same thing happens when playing Statue Defend mode, so I guess it's not too bad ;)
vBulletin® v3.8.6, Copyright ©2000-2013, Jelsoft Enterprises Ltd.