Author Topic: [Help Needed] Scripting in dig deep  (Read 6973 times)

0 Members and 1 Guest are viewing this topic.

Rev Elevenclaw

  • Sr. Member
  • ****
  • Posts: 372
  • Awards 2 years on site 1 year on site
    • View Profile
    • Awards
  • Xbox: Rev Elevenclaw
[Help Needed] Re: Scripting in dig deep
« Reply #15 on: December 16, 2015, 08:08:57 PM »
Yes I believe that be correct. Shouldn't be a problem. I intend a lot of scripts to take over admin duties, so I can focus on other things while hosting. I have my RPG designed to take awhile to get thru. I try to host as much as I can, but get little expansion done unless I'm offline. So I need to bridge that gap. My ultimate goal is to build the best DD RPG ever! And that is gonna take a lot of scripts...
Focus determines reality...

Rev Elevenclaw

  • Sr. Member
  • ****
  • Posts: 372
  • Awards 2 years on site 1 year on site
    • View Profile
    • Awards
  • Xbox: Rev Elevenclaw
Re: Scripting in dig deep
« Reply #16 on: January 06, 2016, 09:31:59 AM »
TM is back! So let the scripting begin...
Focus determines reality...

TM Charles

  • Supreme Member
  • *****
  • Posts: 2101
  • Awards Donated a giveaway prize. (Must be a prize of cash value.) 3 years on site 2 years on site 1 year on site Was in the top 10 of the forum stats page as of 4/12/15
    • View Profile
    • ::)
    • Awards
  • Xbox: ETTP & Mr Zincy
Re: Scripting in dig deep
« Reply #17 on: January 06, 2016, 10:24:46 AM »
I think Teleport and ItemSwing are usable in DD.
Health command only allows damage in DD.
Guns are also possible!



Rev Elevenclaw

  • Sr. Member
  • ****
  • Posts: 372
  • Awards 2 years on site 1 year on site
    • View Profile
    • Awards
  • Xbox: Rev Elevenclaw
Re: Scripting in dig deep
« Reply #18 on: January 06, 2016, 10:16:30 PM »
I figured out teleportation, easy. But I don't think itemswing works for DD. I tried to make the 'wand' act as a catalyst. Need verification...
Focus determines reality...

Rev Elevenclaw

  • Sr. Member
  • ****
  • Posts: 372
  • Awards 2 years on site 1 year on site
    • View Profile
    • Awards
  • Xbox: Rev Elevenclaw
Re: Scripting in dig deep
« Reply #19 on: January 07, 2016, 09:47:32 AM »
Ok. So itemswing works on DD, sorta. I have to manually run the script once from my list, then it works for the item.  I have tested it a few times by reloading my map, and always have to "run script", to make it work. I doubt this is normal. Bugs?
Focus determines reality...

Spark

  • Sr. Member
  • ****
  • Posts: 410
  • I'm Italian and I love scripting
  • Awards Top contributors to the forum downloads. 2 years on site 1 year on site
    • View Profile
    • Awards
  • Xbox: ShoppingSpark3
  • Steam: Bananatelli
Re: Scripting in dig deep
« Reply #20 on: January 07, 2016, 09:57:19 AM »
Ok. So itemswing works on DD, sorta. I have to manually run the script once from my list, then it works for the item.  I have tested it a few times by reloading my map, and always have to "run script", to make it work. I doubt this is normal. Bugs?
Yes, it is normal.
Just put this script on the event driven script menu, when "player join" ^-^
Amazing Scripter!

Rev Elevenclaw

  • Sr. Member
  • ****
  • Posts: 372
  • Awards 2 years on site 1 year on site
    • View Profile
    • Awards
  • Xbox: Rev Elevenclaw
Re: Scripting in dig deep
« Reply #21 on: January 07, 2016, 08:14:50 PM »
Yes, it is normal.
Just put this script on the event driven script menu, when "player join" ^-^
It's a strange thing to be normal. But whatever. As far as event player join, that spot is already used. Could I use an entering zone script? So it auto runs once upon my entering the map? I have 2 large zones that, between them both, cover the entire world. 1 for upper down to 130, and 131 down for lower.
Focus determines reality...

Craig

  • Developer
  • Extreme Member
  • ******
  • Posts: 6650
  • Dig Deep
  • Awards Developer 5 years on site 4 years on site 3 years on site 2 years on site Was in the top 10 of the forum stats page as of 4/12/15 Members who have unlocked the robotic avatar 1 year on site Day 1 w/25+ posts (4/12/13)
    • View Profile
    • Twitter
    • Awards
  • Steam: tota1miner
Re: Scripting in dig deep
« Reply #22 on: January 07, 2016, 08:21:12 PM »
As far as event player join, that spot is already used. Could I..
No, either just add all the SetEventScript commands to the end of your current PlayerJoins script, or put them all into their own script and call that script from your current PlayerJoins script.

I personally prefer the 2nd option because if you change a script once it's already been set to an event, you need to reset it to the event. Which is a nuisance while developing/testing the scripts. So if they're all in say a script called 'SetItemSwingEvents', then I can just manually run that script immediately after changing one of the item swing scripts to reset, without having to worry about anything else that the PlayerJoins script might be doing.
« Last Edit: January 07, 2016, 08:32:03 PM by Craig »

Rev Elevenclaw

  • Sr. Member
  • ****
  • Posts: 372
  • Awards 2 years on site 1 year on site
    • View Profile
    • Awards
  • Xbox: Rev Elevenclaw
Re: Scripting in dig deep
« Reply #23 on: January 08, 2016, 02:54:00 AM »
TY for the insight. It didn't occur to me to combine scripts into a 'packet'. A lot of scripting is still a mystery to me. But I am learning...
Focus determines reality...

Lord Leo

  • Legendary Member
  • *****
  • Posts: 1171
  • Aka Cat
  • Awards 3 years on site 2 years on site 1 year on site
    • View Profile
    • Awards
  • Xbox: Circle cat113
Re: Scripting in dig deep
« Reply #24 on: January 08, 2016, 07:38:51 AM »
I wish you could put more when player joins scripts in '-'

Craig

  • Developer
  • Extreme Member
  • ******
  • Posts: 6650
  • Dig Deep
  • Awards Developer 5 years on site 4 years on site 3 years on site 2 years on site Was in the top 10 of the forum stats page as of 4/12/15 Members who have unlocked the robotic avatar 1 year on site Day 1 w/25+ posts (4/12/13)
    • View Profile
    • Twitter
    • Awards
  • Steam: tota1miner
Re: Scripting in dig deep
« Reply #25 on: January 08, 2016, 08:25:54 AM »
I wish you could put more when player joins scripts in '-'
Use the script command to call other scripts from your main PlayerJoin script.

Rev Elevenclaw

  • Sr. Member
  • ****
  • Posts: 372
  • Awards 2 years on site 1 year on site
    • View Profile
    • Awards
  • Xbox: Rev Elevenclaw
Re: Scripting in dig deep
« Reply #26 on: January 08, 2016, 09:09:06 AM »
I use a script block to autorun on admins only when they enter the map. I used it for my new script, and it has 3 others on it aswell. It works perfectly. But it isn't very organized. Craig's way seems better for sure, and I plan to change mine up.
Focus determines reality...

Rev Elevenclaw

  • Sr. Member
  • ****
  • Posts: 372
  • Awards 2 years on site 1 year on site
    • View Profile
    • Awards
  • Xbox: Rev Elevenclaw
Re: Scripting in dig deep
« Reply #27 on: January 13, 2016, 03:53:28 AM »
I'm figuring out a lot of DD scripts. So if anyone needs help, just ask here.
« Last Edit: January 13, 2016, 04:07:35 AM by Rev Elevenclaw »
Focus determines reality...

Zoidberg

  • Legendary Member
  • *****
  • Posts: 1445
  • Awards Awarded for extraordinary testing services to our game. Awarded to exemplary forum members 1 year on site
    • View Profile
    • Awards
  • Xbox: v Zoidberg v
  • Steam: v_Zoidberg_v
Re: Scripting in dig deep
« Reply #28 on: January 13, 2016, 04:01:29 AM »

Script grinder;

   Health -1
   Loop [1000]

Script grinderend;

   Script [grinder] [cancel]

This is set to active when my hunger script hits 0. Then deactivate upon using the edible item. What am I doing wrong...

The example you posted works for me in Dig Deep. Perhaps the problem lies in the script you mentioned that is supposed to deactivate it upon using the edible item. I'd try testing the script syntax in the related scripts to see if there was just a simple mistake.


Rev Elevenclaw

  • Sr. Member
  • ****
  • Posts: 372
  • Awards 2 years on site 1 year on site
    • View Profile
    • Awards
  • Xbox: Rev Elevenclaw
Re: Scripting in dig deep
« Reply #29 on: January 13, 2016, 04:18:53 AM »
Yeah it somehow started working... Right after that post.
Focus determines reality...