Aller au contenu

Photo

Randomazery!


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

#1
Leurnid

Leurnid
  • Members
  • 271 messages
I am working on having some placeables randomly appear and disappear via script. I found several scripts/demo-mods in the vault that do things similar enough to what I want that I can make it work, but I have found a lot of variety in their methodology: some via triggers, others use onHB, and probably some other ways too... I haven't looked under the hood of all of them yet.

I thought before I dug in too far onto one particular solution, I would tap the collective smarts here and ask for strategies and pitfalls for 'stuff randomly appearing and vanishing'.  This seems like a common enough dungeon trick/trap that at least a few of you have probably done something with it, and I am hoping to learn from others before I learn the hardway (by mistake) on my own.

#2
Baragg

Baragg
  • Members
  • 271 messages
Hb scripts are a bit more resource intensive.

#3
ehye_khandee

ehye_khandee
  • Members
  • 855 messages
The area on_enter and on_exit scripts are good places to put the scripts that make/destroy the randomized items imho.

#4
Leurnid

Leurnid
  • Members
  • 271 messages
I was planning on using tagged WPs, then have triggers or proximity checks (and area's on-enter, thanks for that e_k) roll some dice, and based on that, spawn placeables at tagged WPs and/or destroy others already spawned.

Only PC's will fire the script, and it will store the time locally to the area when the spawns-destroy loop fires, and check that to make sure enough time has passed before it does it again.

#5
nwnsmith

nwnsmith
  • Members
  • 67 messages
On enter set the appearance of the placeable. Name their tags to increment up placeable_1, placeable_2, etc. Then loop through them and set their appearance to a list that you predefine and make one an invisible object that way you don't need to create items at waypoints. The on enter can tie in to your clean up script if you have one. That way they wont change if any PCs are already in the area. I run the same system to randomize all sorts of things in my areas including randomized commoners.

Modifié par nwnsmith, 02 juin 2012 - 09:08 .


#6
Leurnid

Leurnid
  • Members
  • 271 messages

nwnsmith wrote...

On enter set the appearance of the placeable. Name their tags to increment up placeable_1, placeable_2, etc. Then loop through them and set their appearance to a list that you predefine and make one an invisible object that way you don't need to create items at waypoints. The on enter can tie in to your clean up script if you have one. That way they wont change if any PCs are already in the area. I run the same system to randomize all sorts of things in my areas including randomized commoners.


How would you script the appearance shifting?