[Script] Strategy script (girder and other things end turn) (DISCONTINUED)

3 replies [Last post]
Wuzzy
Wuzzy's picture
User offline. Last seen 28 weeks 1 day ago. Offline
Joined: 2012-06-20
Posts: 1304

NOTE: This script has been discontinued in favor of my new script, Game Hacks. Game Hacks includes an improved version of this script. Strategic mode can be enabled by adding “strategictools=true” to the script parameter.


I have made a simple script which makes Hedgewars more “strategic” by putting the emphasis on turn-based play. More weapons and tools will end the turn, so using those isn’t “cheap” anymore.

The following weapons which would normally not end a turn will end the turn when using this script (retreat time in brackets):

  • Girder (5s)
  • Rubber (5s)
  • Dirt Ball (3s)
  • Land Spray (4s)
  • Resurrection (3s)
Currently, the retreat time is fixed and can not be modified by the game scheme.

This script only works with latest experimentals (pre 0.9.21)!

Here you can download and try it:
http://hh.unit22.org/addons/Script/Strategy_v1/

You can combine this script with any game and weapon scheme you like and it should cause no problems.

This script (softly) recommends to use the Strategy weapon scheme and game scheme and selects it as default, when available. You can find said schemes here (scroll down):
http://www.hedgewars.org/node/3857#comment-29047

But this is entirely optional.

Please share any opinions and comments here. Smile

Hi, I am a Hedgewars developer. Smile

sheepluva
sheepluva's picture
User offline. Last seen 2 weeks 4 days ago. Offline
Joined: 2009-07-18
Posts: 563

I hope this will become a regular game modifier.

Like a Button in settings that turns "everything ends turn" on/off.

Or maybe a tri-state button (combined with infinite attack), that switches between those states:

  • "Weapons/utilities never end turn"
  • "Most weapons/utilities end turn [default]"
  • "All weapons/utilities end turn"

  sheepluva <- me  my code stats -> 
a Hedgewars Developer


   <- where I'm from  what I speak -> 

Wuzzy
Wuzzy's picture
User offline. Last seen 28 weeks 1 day ago. Offline
Joined: 2012-06-20
Posts: 1304

My favourite option would be this: Make this configurable in weapon schemes on a per-weapon basis. Add a new tab “Ends turn” in the weapon scheme editor and for the weapons and tools, there is a simple yes/no switch.

However, there should be some utilities which never end turn and it should be not be possible to disable this behaviour for technical reasons:

  • Extra Time
  • Switch Hog
  • Low Gravity
  • Extra Damage
  • Vampirism
  • Laser signt
  • Invunerability
  • (similar tools)

It would be really confusing if low gravity could end your turn. Wink Smiley

But if sheepluva’s suggestion gets implemented, that would be also cool.

Hi, I am a Hedgewars developer. Smile

Wuzzy
Wuzzy's picture
User offline. Last seen 28 weeks 1 day ago. Offline
Joined: 2012-06-20
Posts: 1304

This script is now officially deprecated, my new script “Game Hacks” has consumed it and I made some improvements.

The retreat time percentage works now.

Hi, I am a Hedgewars developer. Smile

User login

Copyright © 2004-2024 Hedgewars Project. All rights reserved. [ contact ]