Hiya, this is my first time post so forgive any flaws in my conventions.
Im trying to develop a window that keeps constant track of a characters inventory, after this is done i might link the inventory to a database for each item.
This some of the suedocode i've developed so far for the different scripts required
Parts Involoved:
101 Variable
-> 50 Items, @InvA Where A is a number from 1 to 50
-> 50 Contents, @InvCA Where A is a number from 1 to 50
-> 2 Temps, @Temp1 and @Temp2
1 Screen: Inven
Inventory Updator Scripts:
Get (From Ground) Script
On trigger {You Get %1 %2.} {
@Temp1 = %1
@Temp2 = %2
If @Temp1 = Integer Then
For A = 1 to 50
If @Inv(A) = "" Then
@Inv(A) = @Temp2
@InvC(A) = 1
Else
If @Inv(A) = @Temp2 Then
@InvC(A) = @InvC(A) + @Temp1
End
Else
End If
End If
Next A
Else
For A = 1 to 50
If @Inv(A) = "" Then
@Inv(A) = @Temp2
@InvC = 1
End
Else
If @Inv(A) = @Temp2 Then
@Inv(A) = Inv(A) + 1
End
Else
End If
End If
Next A
End If
Well Thats The First Of My Four SeudoCodes Developed So Far.
If anyone would know a way of altering them to fit Zmuds Script language please send me an email.