Search found 33 matches

by DoubleProlix
Thu Oct 19, 2017 10:15 pm
Forum: Ren'Py Questions and Announcements
Topic: Random events via objects and methods?
Replies: 20
Views: 4246

Random events via objects and methods?

I'd like to create a random event system that runs through a list of potential events, checking to see if they're currently possible, and against each's probability. One method to do this would be a list with two items per event, one label with each event's requirements and probability (returning tr...
by DoubleProlix
Thu Oct 19, 2017 8:13 pm
Forum: Ren'Py Questions and Announcements
Topic: Problems calling array in text - index is unicode?
Replies: 2
Views: 635

Problems calling array in text - index is unicode?

I'm trying to use a simple list to store the days of the week, cycling through them with an index. However, when I try and display the current day's name, I get an error, "list indices must be integers, not unicode." Here's my code: init: $ day = 1 python: dayName = ["Sunday", &q...