Username:    Password:    Remember Me?         

Reverie World Studios Forums - View Single Post - Helms Deep
Thread: Helms Deep
View Single Post
  #5  
Old 03-12-2014, 10:04 AM
Konstantin Fomenko's Avatar
Konstantin Fomenko Konstantin Fomenko is offline
Reverie World Studios - Producer & Design Director
 
Join Date: Mar 2007
Posts: 4,704
Konstantin Fomenko has extremely good reputationKonstantin Fomenko has extremely good reputationKonstantin Fomenko has extremely good reputationKonstantin Fomenko has extremely good reputation
Default

Making AI attack is very complicated and requires some sophisticated scripting, but closing the gate is rather simple.

You`d need to execute this script:

Trigger.WhateverTriggerName=function()
Objects.MainGateA:Close()
DisableSelf()
end

Please see pictures attached for details.

If you have more than one gate, lets say 3 gates total, just name them like MainGateB, Main GateC, and use this script instead:

Trigger.WhateverTriggerName=function()
Objects.MainGateA:Close()
Objects.MainGateB:Close()
Objects.MainGateC:Close()
DisableSelf()
end


Another thing I`d recommend is using these values for light - on the attached picture.


Also if you want to have Trebuchets firing, you might wanna add these commands- that gives Player 1 and 2 Stone.

Player[1].Resource[ResourceType.Stone]=5000
Player[2].Resource[ResourceType.Stone]=5000

You might as well fit it into the same Trigger

Trigger.WhateverTriggerName=function()
Objects.MainGateA:Close()
Player[1].Resource[ResourceType.Stone]=5000
Player[2].Resource[ResourceType.Stone]=5000
DisableSelf()
end


One more thing - I`m guessing Units can pass through these mountains? If so, click on View - Show Hidden Objects. And place this object Other - Collision - there are several objects there - of various size, that can help you block off mountains.


Also if you want to add some Wall Upgrades - user Men - Fortifications - Upgrade objects - you can place Wall Mounted Trebuchets, Oil Pots e.t.c
Attached Images
File Type: jpg 1.jpg (193.0 KB, 4 views)
File Type: jpg 2.jpg (109.3 KB, 1 views)
File Type: jpg 3.jpg (127.7 KB, 4 views)
Reply With Quote