Editing
User:Gem
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Bad Luck=== It is possible to add script support for Bad Luck if you are playing the WoG/ERA expansion. Simply add the following to an active WoG script or a timed event at day 500+ in your custom map. Note you should use different v variables if 9000-9014 are already used. (Check the Usage358.txt file in your /Data/s/ directory) You can extract the BADLUCK.WAV sound with a tool such as ResEdit2. For more information, read this topic: ZVSE *note: only add this once at the very beginning (all WoG scripts already have it)* !?BG; [pre action trigger] !!BG:N?v9010 A?v9014; [get current stack # and action type] !!BMv9010:N?v9005; [get acting monster type, quantity, position, side] !!BG|v9014=6/v9014=7:E?v9002; [if creature is attacking or shooting get destination stack] !?MF1; [engaging monster trigger] !!MF:D?y-2; [get damage done] !!BMv9010&v9010>-1:G213/?y-60/d; [get attacker luck] !!BMv9002&v9002>-1:G213/?y-60/d; [get retaliator luck] !!VRy-60&y-60<-3:S-3; [min luck of -3] !!VRy-60: *-8; [luck modifier of 8] !!VRy-61:S0 R99; [random roll] !!VRy-2&y-60>y-61: :2; [bad luck = half damage] !!MF&y-60>y-61:Fy-2; [set half damage] !!VRz1&y-60>y-61:S^BADLUCK.WAV^; [set sound] !!SN&y-60>y-61:Pz1; [play now] !!BMv9010&v7010>-1/v9010<>y-1/y-60>y-61:V48; [show bad luck animation - attacker] !!BMv9002&v7002>-1/v9002<>y-1/y-60>y-61:V48; [show bad luck animation - retaliator] !!VRz-1&y-60>y-61:S^Bad luck causes the attack to fail and do half damage.^; [set combat message for bad luck] !!MM&y-60>y-61:Sz-1; [display combat message for bad luck]
Summary:
Please note that all contributions to Heroes 3 wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
User page
Discussion
English
Views
Read
Edit
View history
More
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
User contributions
Logs
View user groups
Special pages
Page information