Page 2 of 4

Re: ~Advanced Scripting and Editor Help

Posted: Tue Oct 21, 2014 11:51 pm
by [SMUG]Ipecac
Hello again guys,

I want to add the "secret found" sound to my "secret found" text pop up. I tried making a sound on the map and having the trigger activate it, but the game wen't tits up when I did.

How do I add the sound to my trigger? Thanks :)

Re: ~Advanced Scripting and Editor Help

Posted: Wed Oct 22, 2014 4:06 am
by MoreDread
can traits be added/removed?

Re: ~Advanced Scripting and Editor Help

Posted: Wed Oct 22, 2014 5:27 am
by SnowyOwl47
MoreDread wrote:can traits be added/removed?
yes

Re: ~Advanced Scripting and Editor Help

Posted: Wed Oct 22, 2014 9:01 pm
by Rubilax
You should revise the boss section. I fumbled around with scripts for 10 minutes with no luck, and Skugga's video solved my problems in 5 minutes.

Re: ~Advanced Scripting and Editor Help

Posted: Wed Oct 22, 2014 9:03 pm
by Rubilax
[SMUG]Ipecac wrote:Hello again guys,

I want to add the "secret found" sound to my "secret found" text pop up. I tried making a sound on the map and having the trigger activate it, but the game wen't tits up when I did.

How do I add the sound to my trigger? Thanks :)
Just place a floor_trigger where you want a secret to activate, then place the asset 'Secret' somewhere and connect the trigger to it. Be sure to check disable_self.

Re: ~Advanced Scripting and Editor Help

Posted: Thu Oct 23, 2014 2:52 am
by [SMUG]Ipecac
Ha okay, thanks!

I have just been adding playSound("secret") to the display text function. I play with the secret asset as well. Thanks :)

Re: ~Advanced Scripting and Editor Help

Posted: Fri Oct 24, 2014 12:12 am
by Rubilax
Is there any way to modify an enemy's damage output? I want to make my boss do a bit less damage for difficulty reasons.

Re: ~Advanced Scripting and Editor Help

Posted: Fri Oct 24, 2014 12:53 am
by NutJob
SnowyOwl47 wrote:
JohnWordsworth wrote:Having said that, the following will clone the "Tome of Wisdom" with a new title and description!

Code: Select all

defineObject{
	name = "jw_tome_of_wisdom",
	baseObject = "tome_wisdom",
	components = {
		{
			class = "Item",
			uiName = "Boo Yah!",
			gfxIndex = 30,
			description = "A mysterious tome that will give you a skill point!",
		}
	},
}
Be sure to add weight or you'll crash the game if you throw an item that's supposed to interact with gravity.

Code: Select all

defineObject{
   name = "jw_tome_of_wisdom",
   baseObject = "tome_wisdom",
   components = {
      {
         class = "Item",
         uiName = "Boo Yah!",
         gfxIndex = 30,
         weight = 1.0,
         description = "A mysterious tome that will give you a skill point!"
      }
   }
}

Re: ~Advanced Scripting and Editor Help

Posted: Fri Oct 24, 2014 1:16 am
by JohnWordsworth
Nicely spotted NutJob! I've not really put anything into practice yet (beyond just playing around), so apologies for letting the bug slip in!

Re: ~Advanced Scripting and Editor Help

Posted: Fri Oct 24, 2014 8:17 am
by akroma222
Thanks for sharing the scripty info folks!!
Much appreciated :D