Aller au contenu

Photo

moving a placeable via script


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

#1
Quilistan

Quilistan
  • Members
  • 111 messages
how might one move a placeable via script? specifically I would like to place the laval floor placeable and have it rise higher during a cutscene.

#2
Shallina

Shallina
  • Members
  • 1 011 messages
Placeable can't move.

Soyou have to cheat.

2 possibility, easiest one : destroy the placeable and make a new one.

The one you might want to use, the same used in the OC:

Use a creature with the appearance of your placeable, the creature can moves.

#3
Lugaid of the Red Stripes

Lugaid of the Red Stripes
  • Members
  • 955 messages
They can be rescaled as well. Maybe making the lava plane progressively thicker (i.e. SetScale(1,1, 1000)) will get you what you need.

#4
M. Rieder

M. Rieder
  • Members
  • 2 530 messages
I made a script that makes an icicle fall from the ceiling. Here is the logic:

Create 10-20 copies of the placeable at different heights, all set to 0.001 scale in x,y,z axis. Then you want to sequentially scale them to 1,1,1 (or whatever size you want), then shrink them again quickly. After the script runs, you can destroy them.

It takes some trickery to adjust the timing of the resizing and I don't recommend more than 20-30 copies because it will bog down, but it works.

#5
PJ156

PJ156
  • Members
  • 2 983 messages
You might also let the camera do the work for you, though in this instance it may not work.

Use an invisible person then move them towards the object using a static camera set to follow. As the camera move towards the object it will fill the screen and appear to rise.

PJ

#6
Morbane

Morbane
  • Members
  • 1 883 messages
Yep - I would guess you could do it with waypoints as well and spawn the lava floor in 20 times in successively higher positions - you can createobjectvoid do delay create object on a delay of like 0.5 for each layer.

you will need to #include "nw_i0_2q4luskan" (it hides in the campaign folder of the OC)

#7
M. Rieder

M. Rieder
  • Members
  • 2 530 messages
It sounds like a really neat idea. Best of luck getting it to work. If you get hung up, PM me and I will try to help. I know it can be done.

#8
painofdungeoneternal

painofdungeoneternal
  • Members
  • 1 799 messages
Take a look at my CSL library, i have a rising water effect which works the same way in the environment include, triggered via a chat command. It actually keeps track of how hard the rain is falling and will slowly rise based on that. I also a have code to handle being in a fiery area like a lava flow, and make it affect all a casters spells appropriately. Its a set of placed effects, distributed across the area, but you sure can position them as needed like you describe.

I always thought of magma coming laterally at you, more like a tidal wave or slow moving river, than filling up an entire area, but i imagine if you are inside a magma pool which starts out empty this could happen.

Basically that is all the pieces you need i've got working, just reworking things so it's magma instead of water. Technically i'd assume if you are under magma you'd also have to deal with not being able to breath as well, but i'd imagine the heat would make that more of a distraction. I'd probably want to make fire and earth elementals very happy in such terrain, and make things like iron body and stone skin useful defenses as well.

( there is also a rising water thing on the vault, which is a similar idea and far less sophisticated than what i've done, might eventually implement this myself at some point, a DM would love to have the option of destroying an area by water and then by magam :) )

Modifié par painofdungeoneternal, 03 octobre 2011 - 09:41 .


#9
Quilistan

Quilistan
  • Members
  • 111 messages
Thanks all for the replies. I started working with M. Rieders idea which was my first thought also. Then I found this:
http://www.sunjammer...eload_coolmenus
which I think does a similar thing just all through scripting(over my head scripting). Though after testing it I fear it doesn't work on the Z axis (though not totally sure yet).
Pain I will be looking at your CSL Library next.

#10
Quilistan

Quilistan
  • Members
  • 111 messages
Just an fyi: Sunjammer's script set linked above worked great for this idea! and does work on the Z axis also.

I now have a deep pitted room that fills with lava !!!