Scripting/Coding
2 posters
Page 1 of 1
Scripting/Coding
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
Re: Scripting/Coding
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.
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.
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.
zDarkShadowz- Posts : 27
Join date : 2011-06-12
Age : 33
Location : Not playing here, indefinitely.
Paired Portal Script
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);
}
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);
}
zDarkShadowz- Posts : 27
Join date : 2011-06-12
Age : 33
Location : Not playing here, indefinitely.
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|