[HELP] How can I set rotation dynamically?

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
User avatar
petri
Posts: 1917
Joined: Thu Mar 01, 2012 4:58 pm
Location: Finland

Re: [HELP] How can I set rotation dynamically?

Post by petri »

You guys are CRAZY! This made my day :)
User avatar
JohnWordsworth
Posts: 1397
Joined: Fri Sep 14, 2012 4:19 pm
Location: Devon, United Kingdom
Contact:

Re: [HELP] How can I set rotation dynamically?

Post by JohnWordsworth »

@Komag: This might count as abusing petri's game engine - but it seems to be standing up to it! :p

This technique actually also has some other uses too though I guess (it might already have been done somewhere). For instance...
SpoilerShow

Code: Select all

monsters = {"crab", "crowern", "goromorg", "green_slime", ...};

for i=1, #monsters do
cloneObject {
  name = monsters[i] .. "_immune_to_fire",
  baseObject = monsters[i],
  onDamage = function(monster, damAmount, damType) 
    if ( damType == "fire" ) then 
      return false;
    end

    return true;
  end,
}
Just a handful of lines of code and (if you finish off the list of monster IDs list) you've cloned every single monster with a new version that is immune to fire. You could presumably use this technique to give all of your monsters a specific 'onDie' hook or all of your doors a new onOpen/onClose hook that means they don't work if you have a special condition (broken fingers or something).
My Grimrock Projects Page with links to the Grimrock Model Toolkit, GrimFBX, Atlas Toolkit, QuickBar, NoteBook and the Oriental Weapons Pack.
Batty
Posts: 509
Joined: Sun Apr 15, 2012 7:04 pm

Re: [HELP] How can I set rotation dynamically?

Post by Batty »

Now we need alcove overclocking competitions to see who can run the most & still have a working dungeon :lol: (throw in some LightSource objects too for the water cooled rigs) :geek:
User avatar
Neikun
Posts: 2457
Joined: Thu Sep 13, 2012 1:06 pm
Location: New Brunswick, Canada
Contact:

Re: [HELP] How can I set rotation dynamically?

Post by Neikun »

Alcoves... *sniffle* They grow up so fast~
"I'm okay with being referred to as a goddess."
Community Model Request Thread
See what I'm working on right now: Neikun's Workshop
Lead Coordinator for Legends of the Northern Realms Project
  • Message me to join in!
User avatar
Edsploration
Posts: 104
Joined: Wed Sep 19, 2012 4:32 pm

Re: [HELP] How can I set rotation dynamically?

Post by Edsploration »

Awesome awesome! I'm thrilled to see this much works. I think I can move forward with some really crazy stuff. Thanks for exploring the topic everyone :mrgreen:
Open Project -> Community FrankenDungeon: viewtopic.php?f=14&t=4276
Post Reply