Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Fri 03/10/2003 17:19:10

Title: Fatal error after removing in and adding 2 inventory items
Post by: on Fri 03/10/2003 17:19:10
i really duno what to tell u it has something to do with what i did
ok heres all the details im on hotspot number 17 its black
and so are the last 3 hotpot colurs right. and i make my guy rope a rope off this razor sharp statue to cut it in 2
i went to hotspots . made him loose the inventory and gain
the 2 seprete peises of the rope and now i get a fatal error
wow it toled me the numbers before but then it sopeed
and then the error was gone when i del the action
and it came back :( :( i need help my game is getting cool ??? ???
Title: Re:Fatal error after removing in and adding 2 inventory items
Post by: taryuu on Sat 04/10/2003 07:37:54
i don't undrestand the problem, can you elaborate a bit?
Title: Re:Fatal error after removing in and adding 2 inventory items
Post by: Scummbuddy on Sat 04/10/2003 20:10:01
Quote from: matty on Fri 03/10/2003 17:19:10
i really duno what to tell you it has something to do with what i did
ok heres all the details I'm on hotspot number 17 its black
and so are the last 3 hotpot colurs right. and i make my guy rope a rope off this razor sharp statue to cut it in 2
i went to hotspots . made him loose the inventory and gain
the 2 seprete peises of the rope and now i get a fatal error
wow it toled me the numbers before but then it sopeed
and then the error was gone when i del the action
and it came back :( :( i need help my game is getting cool ??? ???


Okay, I got through halfway of trying to rewrite it, but then I just will say this.
(Pseudo Code)Have a hotspot be ontop of the razor sharp statue.  Then do room interactions.  

If
Use Inventory (whatever the long rope numbers number is)
Then
LoseInventory(whatever the long rope inv number is);
AddInventory(whatever the first piece of rope is);
AddInventory(whatever the second piece of rope is);