Search found 2 matches

by GigaChonker9000
Tue May 05, 2020 11:35 pm
Forum: Ren'Py Questions and Announcements
Topic: How to make defaultdict work with rollback [SOLVED]
Replies: 3
Views: 492

How to make defaultdict work with rollback [SOLVED]

Here's a short game script that shows my problem: init python: from collections import defaultdict default test_dict = defaultdict(int) label start: "Test A" $ test_dict["key"] += 1 $ num = test_dict["key"] "Current value: [num]" "Test B" Between the...