Username:    Password:    Remember Me?         

Reverie World Studios Forums - View Single Post - Helms Deep
Thread: Helms Deep
View Single Post
  #6  
Old 03-12-2014, 10:59 AM
nightovizard nightovizard is offline
Member
 
Join Date: May 2013
Location: Spain
Posts: 71
nightovizard has a default reputation
Default

Quote:
Originally Posted by Konstantin Fomenko View Post
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
wowowowoWOW AWESOME REPLY, I'm going to try all that right now

EDITED:
Scripts didnt work, i writted

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

the 3 doors were named MainGateA, MainGateB and MainGateC

Do i have to delete the Objects. part?

Also i dont get the resources.

EDIT 2:
But overall the visuals have improved a lot, i tried deleting the object. part of the script but it didnt work neither. you can see the script yourself attached on a screenshoot.
Attached Images
File Type: jpg door&scripts.jpg (302.7 KB, 3 views)
File Type: jpg 2014-03-12_00001.jpg (268.8 KB, 11 views)

Last edited by nightovizard : 03-12-2014 at 12:12 PM.
Reply With Quote