How to manually custom attributes?
Reidolol
20 Jan 2014, 13:07Im making a game with many custom attributes, but i cannot manually it, how i manually like:
Hunger= Every 1 minute= Increases 2%
Ill only use online version,no desktop version.
Hunger= Every 1 minute= Increases 2%
Ill only use online version,no desktop version.
Entropic Pen
20 Jan 2014, 13:20Online version? Ooo.... kay I never used the online version before but here it goes:
Use a timer, paste this into the game's start script; it'll create the timer for you, set the interval, and enable it. Tweak it if need be:
Use a timer, paste this into the game's start script; it'll create the timer for you, set the interval, and enable it. Tweak it if need be:
// Create Timer
create timer ("hunger_timer")
// Set interval
SetTimerInterval (hunger_timer, 60)
// Set Timer Script
hunger_timer.script => {
player.hunger = player.hunger + 2
// this is to loop the timer
EnableTimer (hunger_timer)
}
// this will enable the timer
EnableTimer (hunger_timer)
Reidolol
20 Jan 2014, 18:13Ok,but some other attributes like money or food
Work= get money
Buy food= get food
Work= get money
Buy food= get food
Reidolol
23 Jan 2014, 14:08Im posting more one to see if peoples dont ignore this topic