Chaos Project

RPG Maker => RPG Maker Scripts => Script Troubleshooting => Topic started by: iv00w on February 17, 2008, 09:22:44 am

Title: [RESOLVED] Set a script/game var to Text and display trough a script
Post by: iv00w on February 17, 2008, 09:22:44 am
I was wondering how this can be done?

I tried:
@>Script: @txt = "Text"

self.contents.draw_text(4, 0, 120, 32, @txt)


But that won't work.

Anyone help me out :) ?

EDIT:
I also tried this:


@>Script: @txt = 1

case @txt
when 0
self.contents.draw_text(4, 0, 120, 32, "Text")
return
end
Title: Re: Set a script/game var to Text and display trough a script
Post by: Blizzard on February 18, 2008, 08:05:28 am
Use $ instead of @. Keep in mind that it will not be saved with the game.