Aller au contenu

Photo

Help please:


  • Veuillez vous connecter pour répondre
4 réponses à ce sujet

#1
dickel

dickel
  • Members
  • 72 messages
Ok. My latest area has three separate circular rooms spread through-out it. What I had initially hoped was to have a trigger in each of them, that when stepped on, highlights the floor (perhaps with a different coloured arcane circle) and if all three are being stood on at the same time, then another portal (the way out) appears elsewhere in the same area.
To do this is beyond my capabilities, sadly. I can't script.
Please help.

ps- is there a place somewhere on the net that has a bunch of pre-made scripts that just need variables inserted to make them work? I have gotten a few of these scripts from various places, and I reckon they are epic! Especially since I can't script worth a damn.
Examples of ones I have at the moment are
-a script that destroys a placeable and gives the pc an item based off of an local string variable.
-another one similar to above, except it gives gold. Based on a local int variable.
Got a couple of others. Not sure if these sort of scripts have a name I don't know about, but if anyone has any others, please share them. .....I got side-tracked :)
Peace. :wizard:

#2
Morbane

Morbane
  • Members
  • 1 883 messages
http://nwcitadel.for...splay.php?f=153

Modifié par Morbane, 06 avril 2011 - 08:24 .


#3
dethia

dethia
  • Members
  • 146 messages
if this is for a single player module all you want is when a trigger is entered, to apply an area of effect, and remove it when the trigger is exited. You can store on the module a local variable when a trigger is active or not, and when all three are active spawn the portal placeable.

#4
Dann-J

Dann-J
  • Members
  • 3 161 messages
Here's how I would do it:

Three triggers around three waypoints. Each trigger has a unique tag, and each waypoint a similar tag with "WP" in front. On each waypoint I would store a string variable for the ResRef of the arcane circle I wanted to spawn there. I would also store integer variables on each waypoint; 1, 2 and 4 respectively.

Each trigger has an OnEnter and OnExit script. OnEnter gets the trigger's tag, calculates the corresponding waypoint tag by adding "WP" to the front, and gets the location of that waypoint. It gets the ResRef string off the waypoint and spawns the arcane circle, and gets the integer variable (1, 2 or 4). It then adds that integer variable to a global variable.

The OnExit script on each trigger would do the reverse; search for the nearest object by type (ie placeable) from the corresponding waypoint, destroy it, and then subtract that waypoint's integer variable from the global variable.

All you'd need them is a check at the end of the OnEnter script that spawns the portal when the global variable equals 7 (ie. circles 1, 2 and 4 are all active at the same time). You may also want to deactivate the OnExit scripts of the three triggers to prevent the arcane circles from disappearing again once all three are active. Destroying the triggers would do the trick.

Modifié par DannJ, 07 avril 2011 - 11:13 .


#5
dickel

dickel
  • Members
  • 72 messages
DannJ that is huge! thanks dude for that.
It's all part of the learning curve, but this is great because you explain each step nicely.
Thanks everyone else too, for your replies.
I have almost completed the area now and some modifications were made to my initial design and I'm quite stoked with the end result. Possibly the best interior area I think i've ever made. Anyway. thanks and peace.