Scripting/Coding

View previous topic View next topic Go down

Scripting/Coding

Post  Earthmire on Wed Jun 08, 2011 4:51 am

I am willing to do some basic scripting/coding for those things that need it? All work will stay with the ZS team, I will merely right the scripts with no actual access to the physical module. Just thought I'd volunteer my services.

Earthmire

Posts : 4
Join date : 2011-06-08

View user profile

Back to top Go down

Re: Scripting/Coding

Post  zDarkShadowz on Sun Jun 12, 2011 11:03 pm

I can also create and splice scripts if needed. I'm not fond of doing cutscene scripts though... they just take ages for me to do. Smile

Some cheap examples of my skill are on www.createforum.com/landofchaos, in the off-topic section under the "Simple Scripts" thread. Though I can do far better.
avatar
zDarkShadowz

Posts : 27
Join date : 2011-06-12
Age : 26
Location : Not playing here, indefinitely.

View user profile

Back to top Go down

Paired Portal Script

Post  zDarkShadowz on Sat Jun 25, 2011 10:53 am

My OnUsed paired portal script. Place this on a placeable object in the palette, then a DM can spawn it in one location, and again in another, and the two objects will act like portals, linked to each other.

The same script can be used on multiple, different tagged objects and not clash, so this script can be used to make multiple "paired portals". This will help a hell of a lot in any DM event, when a DM opens a portal to another realm, or wants to link event areas up to regular areas in general.


void main()
{
string sSelf = GetTag(OBJECT_SELF);
object oPortal = GetObjectByTag(sSelf, 0);
location lPortal = GetLocation(oPortal);
if(oPortal == OBJECT_SELF)
{
object oPortal = GetObjectByTag(sSelf, 1);
location lPortal = GetLocation(oPortal);
DelayCommand(1.0, AssignCommand(GetLastUsedBy(),JumpToLocation(lPortal)));
}
else
{
DelayCommand(1.0, AssignCommand(GetLastUsedBy(),JumpToLocation(lPortal)));
}
ApplyEffectToObject(DURATION_TYPE_INSTANT,EffectVisualEffect(VFX_IMP_LIGHTNING_M),OBJECT_SELF);
}
avatar
zDarkShadowz

Posts : 27
Join date : 2011-06-12
Age : 26
Location : Not playing here, indefinitely.

View user profile

Back to top Go down

Re: Scripting/Coding

Post  Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum