View Single Post
Old 05-03-2012, 08:35 PM   #189
Fallen Guardian
Wandering the Galaxy...
 
Fallen Guardian's Avatar
 
Join Date: Aug 2010
Location: Unknown Regions
Posts: 1,154
Current Game: Fallout: New Vegas
Quote:
Originally Posted by Hassat Hunter View Post
Don't have ; after the if (after all, it's no end).

Also pretty sure JC's posts tells to use GetBaseItemType(BASE_ITEM_BLASTER_PISTOL), not GetBaseItemType(12), though not sure on that one...
Quote:
Originally Posted by JCarter426 View Post
Either one works.
Code:
int StartingConditional() {
object oWeap = GetItemInSlot(INVENTORY_SLOT_RIGHTWEAPON, GetPartyLeader());

if ( GetBaseItemType(oWeap) == 12 ) {
        return TRUE;
    }
return FALSE;
}
That should do it.
Thanks both of you.

EDIT: I've made conditional script for all weapons in the game, I'll test them out and report back whether it works.


The truly fallen cannot return to the light. If someone "falls" and "returns," they never really, truly fell.

Current Work in Progress: Dantooine Tension

Released Works
Ebon Hawk Texture Enhancement
Gaffi Stick Improvement
KotOR 1 Restoration Demo (Group collaboration with many team members)
Sunry Murder Recording Enhancement
VP's Hi Poly Tin Cans - KotOR 1 Version (Most of the work done by Varsity Puppet)

Last edited by Fallen Guardian; 05-03-2012 at 11:33 PM.
Fallen Guardian is offline   you may: quote & reply,