Started by jayje, August 31, 2019, 10:45:56 pm
Quote from: jayje on August 31, 2019, 10:45:56 pmI was talking with KK20, with this, but it seemed like it was a bad time to talk then. No big hurry just wanted to get help with this if possible. Here's what the conversation was at that point:Spoiler: ShowHideAl CheddahToday at 12:00 AMsay i have a limit on stat boosting itemsand once a certain number is reached, the bonuses don't workpink b0iToday at 12:01 AMlike the pokemon IV items?Al CheddahToday at 12:02 AMthat might e the best way to explain it, yespink b0iToday at 12:02 AMyeah you're better off going another routeAl CheddahToday at 12:02 AMi have a CE that just says "You've reached your limit", but I wanna makes sure it doesn't do anythingi seewhat would/should i do?pink b0iToday at 12:03 AMdo you want the item to call a common event?Al CheddahToday at 12:04 AMyesall the stat boster call the same eventthat adds 1 to a variale when there usedpink b0iToday at 12:05 AMhow are you determining what item was usedAl CheddahToday at 12:05 AMi got an item ID catcher from LittleDrago awhile backthat gets the item IDpink b0iToday at 12:08 AMand your item use counter is stored in game variablesAl CheddahToday at 12:08 AMyesonce it reaches a set number it should stop giving a bonuspink b0iToday at 12:09 AMthen make the item itself add nothing, and do all the stat manipulation in the eventAl CheddahToday at 12:09 AMokay. how would I go about that?using the code from earlier?pink b0iToday at 12:10 AMconditional branch: if not reached limit actor stat+else message "can no longer boost" add item back to partyAl CheddahToday at 12:11 AMok, but would I wo do that for the item target?pink b0iToday at 12:12 AMmaybe you can make another variable for Game_Party, like last_item_targetAl CheddahToday at 12:13 AMin a script call?:thinking:pink b0iToday at 12:14 AMclass Game_Party attr_accessor :last_item_targetendAl CheddahToday at 12:14 AMaahhhin the actual scriptokpink b0iToday at 12:14 AM # If single target if @target_window.index >= 0 # Apply item use effects to target actor target = $game_party.actors[@target_window.index] $game_party.last_item_target = target used = target.item_effect(@item) endAl CheddahToday at 12:15 AMok so make last_item_target a variablelike in that codeAl CheddahToday at 12:34 AMwait i thought we were adding/removing the item effects in the event instead of the item itself?pink b0iToday at 12:35 AMi had written code that i have since deletedyou can ignore thanks again and I hope all is well with all parties involved.