Toolset problems

Moderator: Event DM

Post Reply
User avatar
Nighthawk4
Assist DM
Assist DM
Posts: 25898
Joined: Fri Feb 07, 2003 8:32 pm
Timezone: GMT
DM Avatar: DruEl
Location: The Home of the Bard of Avon
Contact:

Toolset problems

Post by Nighthawk4 » Mon Aug 18, 2003 10:31 pm

I am trying to teach myself how to use the Toolset. At the moment I have two main problem scripts, one of which I have seen elsewhere. However, I can't get them to work correctly.
-----------
1) When a new character joins the module, all items are stripped and then certain items, plus some Gold and a level up are granted instead. The second part I can do successfully. However, I have seen this on another PW, where everything just goes at once. How is this done?

When I try it, I have a loop which gets the next item in the inventory and destroys it. This continues until the next item is not valid. All equipped items are unequipped first.

The problems are that this takes some time to complete and only loops about four or five times. So I have to use several triggers to repeat it, in order to ensure that everything is removed.

I did try using a check that the weight was zero before allowing the character to proceed, but one of the Avlis HAKs removes the GetWeight script - I don't see why.
----------
2) I want an NPC or an animal to patrol in a circle (not an exact circle, but a loop). However, when I select all of the Waypoints, it does not let me select the first one again to complete the loop. Therefore, the NPC or animal walks along the track, turns and walks back again.

Any ideas please?
Life is never as bad as you think it is, although that doesn't help at the time.
Orleron wrote:I think it's a fun idea if you can idiot-proof it. Problem is God always builds a better idiot. :P
Actually
Sage
Posts: 1823
Joined: Sat Dec 14, 2002 10:11 pm
Location: Red Zone: Cuba

Post by Actually » Mon Aug 18, 2003 10:34 pm

Ask JollyOrc what his results on the second one were. He was working on it.

I still say you could place the final waypoint right on top of the first one, then use a JumpTo command to restart the waypoint cycle w/o any noticable sprite flicker related to the teleport.

But I could be wrong.

Bye Now,
Jerry Cornelis - Could be wrong.
User avatar
Neve
Prince of Bloated Discourse
Posts: 192
Joined: Mon Apr 14, 2003 4:09 pm
Location: The Netherlands
Contact:

Post by Neve » Mon Aug 18, 2003 10:36 pm

For the first part, you could try something like this :

Code: Select all

void GetEquipped(object oPlayer, int sSlot){
    object oItem;

    if(GetIsObjectValid(GetItemInSlot(sSlot, oPlayer))==TRUE){
        oItem = GetItemInSlot(sSlot, oPlayer);
        if(!GetPlotFlag(oItem)) DestroyItem(oItem));
    }
}

void main()
{
    object oPC     = GetEnteringObject();
    object oMyItem = GetFirstItemInInventory(oPC);

    GetEquipped(oPC, INVENTORY_SLOT_ARMS     );
    GetEquipped(oPC, INVENTORY_SLOT_ARROWS   );
    GetEquipped(oPC, INVENTORY_SLOT_BELT     );
    GetEquipped(oPC, INVENTORY_SLOT_BOLTS    );
    GetEquipped(oPC, INVENTORY_SLOT_BOOTS    );
    GetEquipped(oPC, INVENTORY_SLOT_BULLETS  );
    GetEquipped(oPC, INVENTORY_SLOT_CARMOUR  );
    GetEquipped(oPC, INVENTORY_SLOT_CHEST    );
    GetEquipped(oPC, INVENTORY_SLOT_CLOAK    );
    GetEquipped(oPC, INVENTORY_SLOT_CWEAPON_B);
    GetEquipped(oPC, INVENTORY_SLOT_CWEAPON_L);
    GetEquipped(oPC, INVENTORY_SLOT_CWEAPON_R);
    GetEquipped(oPC, INVENTORY_SLOT_HEAD     );
    GetEquipped(oPC, INVENTORY_SLOT_LEFTHAND );
    GetEquipped(oPC, INVENTORY_SLOT_LEFTRING );
    GetEquipped(oPC, INVENTORY_SLOT_NECK     );
    GetEquipped(oPC, INVENTORY_SLOT_RIGHTHAND);
    GetEquipped(oPC, INVENTORY_SLOT_RIGHTRING);

    while(GetIsObjectValid(oMyItem)){
            DestroyObject(oMyItem);
        oMyItem = GetNextItemInInventory(oPC);
    }
}
The second part... I think there has been a similiar post in which someone else suggested to teleport the creature to the first waypoint, just after it reached the last one. the first and last waypoint should be on top of eachother...
Last edited by Neve on Tue Aug 19, 2003 5:52 am, edited 2 times in total.
- As you gaze unknowingly into the seemingly infinite depths of the optics of this altogether passionate embodiment of insatiability, you experience a gradual realisation that the heavily-embellished vocabulary scattered lavishly throughout the sentence you are currently reading is indisputably nothing greater than a generous ration of masculine bovine faeces.
User avatar
4x4_Ender
Sage
Posts: 1782
Joined: Wed Jun 04, 2003 11:26 pm
Location: Woodbury, MN (GMT -6)
Contact:

Post by 4x4_Ender » Tue Aug 19, 2003 12:56 am

Im very new to the toolset and im just finishing up designing my house for my character. I just had one question that im sure has been answered somewhere, but i cant seem to find it:

I put invisible objects on the crappy tileset chairs that you cant modify (because they come with the tile) in order to make someone able to sit in them by adding the sitdown script to "onused". But, i noticed when i tested them that you always face east when a PC sits down in them no matter how you orient the placable. Anyone have a fix for this?? Or can it not be done??
"Many make a trade of delusions and false miracles, deceiving the stupid multitude." -Leonardo Da Vinci
User avatar
Jordicus
Team Member; Retired with Honors
Posts: 8042
Joined: Tue Jan 21, 2003 3:46 pm
Location: Whitehall, PA (GMT -4)
Contact:

Post by Jordicus » Tue Aug 19, 2003 2:33 am

It has to do with making sure the invisible onject actually rests on the ground. If it is off the ground at all, there are facing issues.
User avatar
Reinstag
Sage
Posts: 2841
Joined: Thu Sep 12, 2002 12:09 am
Location: Somewhere between here and there

Post by Reinstag » Tue Aug 19, 2003 3:19 am

Jordicus wrote:It has to do with making sure the invisible onject actually rests on the ground. If it is off the ground at all, there are facing issues.
Yeah, what he said. Same goes for placable stools. Got to drop the invis object below them and add the sitdown script to it. Otherwise your stools face people east.
Thankfully, my dad had a stroke. - Unnamed Hostess

http://silver-spire.com
User avatar
Olaf
Team Member; Retired with Honors
Posts: 2555
Joined: Tue Jan 07, 2003 10:37 pm
DM Avatar: Titania
Location: Somewhere over the rainbow
Contact:

Post by Olaf » Tue Aug 19, 2003 3:25 am

Reinstag wrote:
Jordicus wrote:It has to do with making sure the invisible onject actually rests on the ground. If it is off the ground at all, there are facing issues.
Yeah, what he said. Same goes for placable stools. Got to drop the invis object below them and add the sitdown script to it. Otherwise your stools face people east.
Damn it.. your quote is going to bother me.. until its.. no longer the flavor of the month... reinstag.. lol :lol:
*hums the pirate song*
User avatar
Reinstag
Sage
Posts: 2841
Joined: Thu Sep 12, 2002 12:09 am
Location: Somewhere between here and there

Post by Reinstag » Tue Aug 19, 2003 3:30 am

Olaf wrote:Damn it.. your quote is going to bother me.. until its.. no longer the flavor of the month... reinstag.. lol :lol:
*hums the pirate song*
Love the pirate song!
Thankfully, my dad had a stroke. - Unnamed Hostess

http://silver-spire.com
User avatar
Fuzz
Elder Sage
Posts: 4648
Joined: Fri Jul 04, 2003 4:36 am
Location: Kayvareh
Contact:

Post by Fuzz » Tue Aug 19, 2003 4:18 am

Reinstag wrote:
Jordicus wrote:It has to do with making sure the invisible onject actually rests on the ground. If it is off the ground at all, there are facing issues.
Yeah, what he said. Same goes for placable stools. Got to drop the invis object below them and add the sitdown script to it. Otherwise your stools face people east.
Which is why the stools in most inns in avlis all face east.
User avatar
Jordicus
Team Member; Retired with Honors
Posts: 8042
Joined: Tue Jan 21, 2003 3:46 pm
Location: Whitehall, PA (GMT -4)
Contact:

Post by Jordicus » Tue Aug 19, 2003 11:55 am

which is why I alwys use chairs instead of stools... :P
User avatar
SlicerDicer
Apprentice Scholar
Posts: 544
Joined: Fri Mar 07, 2003 9:45 am
Location: Rio Rancho NM

Post by SlicerDicer » Tue Aug 19, 2003 7:47 pm

the only stool i use is in the shitter room! :roll: hope thats the same with you guys hate to see ya shittin in a chair
Post Reply