okay I never really worked with this kind of scripting before so any help would be appreciated!
so basically what I want is that the PC is able to feed animals at the zoo, though with the sharks there is a change they will bite!
I am honestly confused with how this work so I really hope to get some help here with this script so thanks in advance for those who help me figure this out
void main(){// Get the PC who is in this conversation.object oPC = GetPCSpeaker();// Decide what to do based on a die roll.switch ( d20() ){case 1:{// Take "b_feed_Fish" from the PC.DestroyObject(GetItemPossessedBy(oPC, "b_feed_Fish"));} break;default:{}}}
I know I probably did it wrong, so this is a very good learning experience





Retour en haut







